-
Notifications
You must be signed in to change notification settings - Fork 2
/
flake.nix
30 lines (24 loc) · 1.11 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
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; # nixpkgs-unstable";
inputs.homeManager.url = "github:nix-community/home-manager";
inputs.homeManager.inputs.nixpkgs.follows = "nixpkgs";
inputs.localConfig.url = "path:/home/layus/.config/nixpkgs/local";
inputs.localConfig.inputs.nixpkgs.follows = "nixpkgs";
#inputs.dwarffs.url = "github:edolstra/dwarffs";
#inputs.dwarffs.inputs.nixpkgs.follows = "nixpkgs";
#inputs.dwarffs.inputs.nix.inputs.nixpkgs.follows = "nixpkgs";
outputs = { self, homeManager, nixpkgs, localConfig, ... }@args: {
nixosConfigurations =
nixpkgs.lib.attrsets.mapAttrs
(machine: _: import ./nixos args machine)
(builtins.readDir ./nixos/machines)
;
homeConfigurations = {
"layus@uberwald" = import ./home args "layus" "uberwald";
"layus@ankh-morpork" = import ./home args "layus" "ankh-morpork";
"layus@sto-helit" = import ./home args "layus" "sto-helit";
"gmaudoux@klatch" = import ./home args "gmaudoux" "klatch";
"gmaudoux" = import ./home args "gmaudoux" "headless";
};
};
}