mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-06-08 10:09:04 +02:00
feat: better handling of nixos version depending on the machine
This commit is contained in:
parent
1117ecff61
commit
dce1df08e3
5 changed files with 172 additions and 8 deletions
|
@ -90,7 +90,7 @@ in
|
|||
|
||||
|
||||
|
||||
luj = import ./luj.nix final;
|
||||
luj = import ./luj.nix inputs final;
|
||||
|
||||
}
|
||||
|
||||
|
|
12
lib/luj.nix
12
lib/luj.nix
|
@ -1,4 +1,4 @@
|
|||
lib: with lib; let
|
||||
inputs: lib: with lib; let
|
||||
modules = [
|
||||
{
|
||||
options.machines = mkOption {
|
||||
|
@ -26,23 +26,23 @@ lib: with lib; let
|
|||
machines = {
|
||||
lisa = {
|
||||
arch = "x86_64-linux";
|
||||
nixpkgs_version = "nixpkgs";
|
||||
nixpkgs_version = inputs.nixpkgs;
|
||||
};
|
||||
newton = {
|
||||
arch = "x86_64-linux";
|
||||
nixpkgs_version = "nixpkgs";
|
||||
nixpkgs_version = inputs.nixpkgs;
|
||||
};
|
||||
macintosh = {
|
||||
arch = "aarch64-linux";
|
||||
nixpkgs_version = "nixos-apple-silicon.inputs";
|
||||
nixpkgs_version = inputs.nixos-apple-silicon.inputs.nixpkgs;
|
||||
};
|
||||
lambda = {
|
||||
arch = "aarch64-linux";
|
||||
nixpkgs_version = "nixpkgs";
|
||||
nixpkgs_version = inputs.nixpkgs;
|
||||
};
|
||||
tower = {
|
||||
arch = "x86_64-linux";
|
||||
nixpkgs_version = "nixpkgs";
|
||||
nixpkgs_version = inputs.nixpkgs;
|
||||
};
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue