flake
This commit is contained in:
parent
427fb2c3f6
commit
e70c266659
1 changed files with 37 additions and 3 deletions
40
flake.nix
40
flake.nix
|
|
@ -2,10 +2,44 @@
|
||||||
description = "Main Flake by LuminiferousLilith";
|
description = "Main Flake by LuminiferousLilith";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = github:NixOS/nixpkgs/nixpkgs-unstable;
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||||
nixpkgs-stable.url = github:NixOS/nixpkgs/release-25.05;
|
nixpkgs-stable.url = "github:NixOS/nixpkgs/release-25.05";
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
|
|
||||||
|
home-manager = {
|
||||||
|
url = "github:nix-community/home-manager";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
|
sops-nix = {
|
||||||
|
url = "github:Mic92/sops-nix";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
inputs.nixpkgs-stable.follows = "nixpkgs-stable";
|
||||||
|
};
|
||||||
|
|
||||||
|
impermanence.url = "github:nix-community/impermanence";
|
||||||
|
|
||||||
|
helix.url = "github:pascalkuthe/helix/inline-diagnostics";
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs = {
|
||||||
|
self,
|
||||||
|
nixpkgs,
|
||||||
|
...
|
||||||
|
} @ inputs: let
|
||||||
|
hosts = builtins.attrNames (builtins.readDir ./hosts);
|
||||||
|
mkHostConfig = host:
|
||||||
|
import "./hosts/${host}" {
|
||||||
|
inherit inputs;
|
||||||
|
system = "x86_64-linux";
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
nixosConfigurations = builtins.listToAttrs (
|
||||||
|
map (host: {
|
||||||
|
name = host;
|
||||||
|
value = mkHostConfig host;
|
||||||
|
})
|
||||||
|
hosts
|
||||||
|
);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue