-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflake.nix
28 lines (27 loc) · 884 Bytes
/
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
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
eilean.url = "github:RyanGibb/eilean-nix/main";
eilean.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, eilean, ... }@inputs:
let hostname = "eilean";
in rec {
nixosConfigurations.${hostname} = nixpkgs.lib.nixosSystem {
system = null;
pkgs = null;
modules = [
./configuration.nix
eilean.nixosModules.default
{
networking.hostName = hostname;
# pin nix command's nixpkgs flake to the system flake to avoid unnecessary downloads
nix.registry.nixpkgs.flake = nixpkgs;
# record git revision (can be queried with `nixos-version --json)
system.configurationRevision =
nixpkgs.lib.mkIf (self ? rev) self.rev;
}
];
};
};
}