use haumea
This commit is contained in:
parent
f44f1a3a46
commit
caa2a3d7c5
2 changed files with 30 additions and 9 deletions
22
flake.lock
generated
22
flake.lock
generated
|
@ -518,6 +518,27 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"haumea": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1685133229,
|
||||||
|
"narHash": "sha256-FePm/Gi9PBSNwiDFq3N+DWdfxFq0UKsVVTJS3cQPn94=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "haumea",
|
||||||
|
"rev": "34dd58385092a23018748b50f9b23de6266dffc2",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"ref": "v0.2.2",
|
||||||
|
"repo": "haumea",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"hercules-ci-effects": {
|
"hercules-ci-effects": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-parts": "flake-parts_4",
|
"flake-parts": "flake-parts_4",
|
||||||
|
@ -824,6 +845,7 @@
|
||||||
"firefox-addons": "firefox-addons",
|
"firefox-addons": "firefox-addons",
|
||||||
"flake-parts": "flake-parts",
|
"flake-parts": "flake-parts",
|
||||||
"hardware": "hardware",
|
"hardware": "hardware",
|
||||||
|
"haumea": "haumea",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"impermanence": "impermanence",
|
"impermanence": "impermanence",
|
||||||
"nix-gaming": "nix-gaming",
|
"nix-gaming": "nix-gaming",
|
||||||
|
|
17
flake.nix
17
flake.nix
|
@ -3,17 +3,13 @@
|
||||||
self,
|
self,
|
||||||
flake-parts,
|
flake-parts,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
|
haumea,
|
||||||
...
|
...
|
||||||
} @ inputs: let
|
} @ inputs: let
|
||||||
_loadProfiles = dir:
|
systemProfiles = haumea.lib.load {
|
||||||
b.readDir dir
|
src = ./sys/profiles;
|
||||||
|> b.mapAttrs (categoryName: _:
|
loader = haumea.lib.loaders.path;
|
||||||
b.readDir /${dir}/${categoryName}
|
};
|
||||||
|> l.mapAttrs' (profileName: _: {
|
|
||||||
name = l.removeSuffix ".nix" profileName;
|
|
||||||
value = /${dir}/${categoryName}/${profileName};
|
|
||||||
}));
|
|
||||||
systemProfiles = _loadProfiles ./sys/profiles;
|
|
||||||
homeProfiles = ./home;
|
homeProfiles = ./home;
|
||||||
vars = import ./vars;
|
vars = import ./vars;
|
||||||
l = nixpkgs.lib;
|
l = nixpkgs.lib;
|
||||||
|
@ -80,6 +76,9 @@
|
||||||
sops-nix.url = "github:Mic92/sops-nix";
|
sops-nix.url = "github:Mic92/sops-nix";
|
||||||
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
|
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.url = "github:Mic92/nix-index-database";
|
||||||
nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
|
nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue