Compare commits

...

2 commits

Author SHA1 Message Date
1e9d55517d pkgs/top-level: properly get inputs 2025-04-02 15:22:42 +02:00
00cbc505f3 hosts: define hostPlatform in defined systems
instead of getting them impurely from `builtins.currentSystem`
2025-04-02 15:21:29 +02:00
5 changed files with 7 additions and 1 deletions

View file

@ -83,6 +83,8 @@
OLLAMA_HOST = "127.0.0.1:${builtins.toString config.services.ollama.port}";
};
nixpkgs.hostPlatform = "x86_64-linux";
system.stateVersion = "23.05";
};
}

View file

@ -52,6 +52,8 @@
lidSwitchExternalPower = "lock";
};
nixpkgs.hostPlatform = "x86_64-linux";
system.stateVersion = "23.11";
};
}

View file

@ -20,5 +20,6 @@
virtualisation.forwardPorts = [
{ from = "host"; host.port = 2222; guest.port = 22; }
];
nixpkgs.hostPlatform = "x86_64-linux";
};
}

View file

@ -38,6 +38,7 @@ self = {
nixosSystem = import "${inputs.nixpkgs}/nixos/lib/eval-config.nix";
mkNixosSystem = path: nixosSystem {
inherit lib;
system = null;
modules = [
path
{

View file

@ -1,4 +1,4 @@
{ inputs ? import ../../inputs.nix {}
{ inputs ? (import ../../. {}).inputs
, uninitializedNixpkgs ? import "${inputs.nixpkgs}/pkgs/top-level/default.nix"
, ...
} @ args: