Everybody go to Lix

This commit is contained in:
Victor Mignot 2024-07-15 10:13:33 +02:00
parent 73cc48d01d
commit a7582aee2e
Signed by: dala
GPG key ID: 5E7F2CE1BEAFED3D

View file

@ -20,6 +20,17 @@
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
# Use Lix instead of Nix
lix-module-unstable = {
url = "https://git.lix.systems/lix-project/nixos-module/archive/2.90.0.tar.gz";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
lix-module-stable = {
url = "https://git.lix.systems/lix-project/nixos-module/archive/2.90.0.tar.gz";
inputs.nixpkgs.follows = "nixpkgs-stable";
};
extra-config.url = "git+ssh://git@git.sr.ht/~dala/extra-config";
};
@ -32,6 +43,8 @@
sops-nix,
flake-utils,
extra-config,
lix-module-unstable,
lix-module-stable,
}:
let
machines = import ./machines.nix;
@ -41,6 +54,7 @@
name: value:
let
nixpkgs = if value.nixpkgsUnstable then nixpkgs-unstable else nixpkgs-stable;
lix-module = if value.nixpkgsUnstable then lix-module-unstable else lix-module-stable;
in
nixpkgs.lib.nixosSystem {
system = value.system;
@ -66,6 +80,7 @@
{ }
)
sops-nix.nixosModules.sops
lix-module.nixosModules.default
];
}
) machines;