-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.old.nix
93 lines (80 loc) · 2.6 KB
/
flake.old.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#
# Nix flake config
# WIP
# README for guide
#
# flake.nix *
# ├─ ./hosts
# │ └─ default.nix
# ├─ ./darwin
# │ └─ default.nix
# └─ ./nix
# └─ default.nix
#
{
description = "Personal configs using nix flakes";
inputs = # All flake references used to build. - The dependencies
{
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05"; # Default Stable Nix Packages
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; # Unstable Nix Packages
home-manager = { # Nix home-manager to manage user environment
url = "github:nix-community/home-manager/release-23.05";
inputs.nixpkgs.follows = "nixpkgs";
};
darwin = { # MacOS management
url = "github:lnl7/nix-darwin/master";
inputs.nixpkgs.follows = "nixpkgs";
};
nur = { # Nix User Repository
url = "github:nix-community/NUR";
};
nix-on-droid = { # Nix on android stuff
url = "github:t184256/nix-on-droid/release-23.05";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-homebrew.url = "github:zhaofengli-wip/nix-homebrew";
# Ref github:MatthiasBenaets/nixos-config/flake.nix
# nixgl for OpenGL stuff
# hyprland
# plasma-manager
};
outputs = inputs @ { self, nixpkgs, nixpkgs-unstable, home-manager, darwin, nur, nix-on-droid, nix-homebrew, ... }: # Fn to tell flake what to do with the dependencies
let # Variables taht can be used in the conifgs
user = "nathand";
location = "$HOME/.setup"; # Hmmmm......
in
{
# overlays = {
# pkg-sets = (
# final: prev: {
# # unstable = import inputs.nixpkgs-unstable { system = final.system; };
# # nur = import inputs.nur { system = final.system; };
# }
# );
# };
nixosConfigurations = ( # NixOS Host Configs
import ./nix/nixos {
inherit (nixpkgs) lib;
inherit inputs nixpkgs nixpkgs-unstable home-manager nur user location;# hyperland etc...
}
);
linuxConfigurations = ( # Linux Host Configs
import ./nix/linux {
inherit (nixpkgs) lib;
inherit inputs nixpkgs nixpkgs-unstable home-manager user nur;
}
);
darwinConfigurations = ( # macOS Host Configs
import ./nix/darwin {
inherit (nixpkgs) lib;
inherit inputs nixpkgs nixpkgs-unstable home-manager darwin user nur nix-homebrew;
}
);
nixOnDroidConfigurations = ( # nix-on-droid Host Configs
import ./nix/android {
inherit (nixpkgs) lib;
inherit inputs nixpkgs nixpkgs-unstable home-manager nix-on-droid user nur;
}
);
};
}