-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
152 lines (126 loc) · 4.82 KB
/
flake.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
{
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
sops-nix.url = "github:mic92/sops-nix";
nixos-generators = {
url = "github:nix-community/nixos-generators";
inputs.nixpkgs.follows = "nixpkgs";
};
#arc.url = "github:arcnmx/nixexprs";
#arc.url = "github:arcnmx/nvidia-patch.nix";
nvidia-patch.url = "github:icewind1991/nvidia-patch-nixos";
nvidia-patch.inputs.nixpkgs.follows = "nixpkgs";
gomod2nix = {
url = "github:tweag/gomod2nix";
inputs.nixpkgs.follows = "nixpkgs";
};
musnix = { url = "github:musnix/musnix"; };
};
outputs = { self, nixpkgs, home-manager, nixos-generators, gomod2nix, arc, ... }@inputs:
let
inherit (nixpkgs.lib) filterAttrs;
inherit (builtins) mapAttrs elem;
inherit (self) outputs;
supportedSystems = [ "x86_64-linux" ];
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
in
rec {
homeManagerModules = import ./modules/home-manager;
overlays = import ./overlays;
nixosConfigurations = rec {
# Desktop
conjoiner = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs outputs; };
modules = [ ./machines/conjoiner ];
};
# Work Laptop
polis = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs outputs; };
modules = [ ./machines/polis inputs.musnix.nixosModules.musnix ];
};
# Personal Laptop
pattern-juggler = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs outputs; };
modules = [ ./machines/pattern-juggler ];
};
# VPS
konishi = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs outputs; };
modules = [ ./machines/konishi ];
};
# VPS 2
carter-zimmerman = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs outputs; };
modules = [ ./machines/carter-zimmerman ];
};
# Landon's laptop
markedmoose = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs outputs; };
modules = [ ./machines/markedmoose ];
};
# New Work Laptop
# Work Laptop
ashton-laval = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs outputs; };
modules = [ ./machines/ashton-laval inputs.musnix.nixosModules.musnix ];
};
};
homeConfigurations = {
# Desktop
"crepe@conjoiner" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages."x86_64-linux";
extraSpecialArgs = { inherit inputs outputs; };
modules = [ ./home/crepe/conjoiner.nix ];
overlay = import ./overlays;
};
# Work Laptop
"crepe@polis" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages."x86_64-linux";
extraSpecialArgs = { inherit inputs outputs; };
modules = [ ./home/crepe/polis.nix ];
overlay = import ./overlays;
};
# New Work Laptop
"crepe@ashton-laval" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages."x86_64-linux";
extraSpecialArgs = { inherit inputs outputs; };
modules = [ ./home/crepe/ashton-laval.nix ];
overlay = import ./overlays;
};
# Personal Laptop
"crepe@pattern-juggler" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages."x86_64-linux";
extraSpecialArgs = { inherit inputs outputs; };
modules = [ ./home/crepe/pattern-juggler.nix ];
overlay = import ./overlays;
};
# VPS
"crepe@konishi" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages."x86_64-linux";
extraSpecialArgs = { inherit inputs outputs; };
modules = [ ./home/crepe/konishi.nix ];
};
# VPS 2
"crepe@carter-zimmerman" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages."x86_64-linux";
extraSpecialArgs = { inherit inputs outputs; };
modules = [ ./home/crepe/carter-zimmerman.nix ];
};
# Landon's laptop
"crepe@markedmoose" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages."x86_64-linux";
extraSpecialArgs = { inherit inputs outputs; };
modules = [ ./home/crepe/markedmoose.nix ];
};
"landon@markedmoose" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages."x86_64-linux";
extraSpecialArgs = { inherit inputs outputs; };
modules = [ ./home/landon/markedmoose.nix ];
};
};
};
}