-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
executable file
·65 lines (58 loc) · 2.05 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
{
description = "NixOS configuration";
inputs = {
sops-nix.url = "github:Mic92/sops-nix";
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
stylix = {
url = "github:danth/stylix";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-23.11";
nur.url = "github:nix-community/NUR";
};
outputs = inputs:
with inputs;
let
system = "x86_64-linux";
specialArgs = { inherit inputs self; };
mkNixos = system: config: nixpkgs.lib.nixosSystem {
inherit specialArgs system;
modules = [
./overlays.nix
./modules/nixos config
sops-nix.nixosModules.sops
];
};
mkHome = config: home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
extraSpecialArgs = specialArgs;
modules = [ ./overlays.nix ./modules/home config ];
};
in {
nixosConfigurations = {
comet = mkNixos "x86_64-linux" ./hosts/comet;
femboybattlerig = mkNixos "x86_64-linux" ./hosts/femboybattlerig;
citadel-core = mkNixos "x86_64-linux" ./hosts/citadel-core;
baha-blast = mkNixos "x86_64-linux" ./hosts/baha-blast;
stardust = mkNixos "x86_64-linux" ./hosts/stardust;
borealis = mkNixos "x86_64-linux" ./hosts/borealis;
};
homeConfigurations = {
"kyle@comet" = mkHome ./home/kyle/comet.nix;
"deacon@femboybattlerig" = mkHome ./home/deacon/femboybattlerig.nix;
"george@citadel-core" = mkHome ./home/george/citadel-core.nix;
"luna@baha-blast" = mkHome ./home/luna/baha-blast.nix;
"kyle@stardust" = mkHome ./home/kyle/stardust.nix;
"kyle@borealis" = mkHome ./home/kyle/borealis.nix;
"jon@borealis" = mkHome ./home/jon/borealis.nix;
};
};
}