use haumea
This commit is contained in:
parent
f44f1a3a46
commit
caa2a3d7c5
2 changed files with 30 additions and 9 deletions
17
flake.nix
17
flake.nix
|
@ -3,17 +3,13 @@
|
|||
self,
|
||||
flake-parts,
|
||||
nixpkgs,
|
||||
haumea,
|
||||
...
|
||||
} @ inputs: let
|
||||
_loadProfiles = dir:
|
||||
b.readDir dir
|
||||
|> b.mapAttrs (categoryName: _:
|
||||
b.readDir /${dir}/${categoryName}
|
||||
|> l.mapAttrs' (profileName: _: {
|
||||
name = l.removeSuffix ".nix" profileName;
|
||||
value = /${dir}/${categoryName}/${profileName};
|
||||
}));
|
||||
systemProfiles = _loadProfiles ./sys/profiles;
|
||||
systemProfiles = haumea.lib.load {
|
||||
src = ./sys/profiles;
|
||||
loader = haumea.lib.loaders.path;
|
||||
};
|
||||
homeProfiles = ./home;
|
||||
vars = import ./vars;
|
||||
l = nixpkgs.lib;
|
||||
|
@ -80,6 +76,9 @@
|
|||
sops-nix.url = "github:Mic92/sops-nix";
|
||||
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
||||
haumea.url = "github:nix-community/haumea/v0.2.2";
|
||||
haumea.inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
||||
nix-index-database.url = "github:Mic92/nix-index-database";
|
||||
nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue