nixpkgs: switch to read-only packages

Signed-off-by: Bloxx12 <charlie@charlieroot.dev>
Change-Id: I6a6a69641b8369b151024324d8d06f2acb790c15
This commit is contained in:
Bloxx12 2025-07-20 03:02:13 +02:00
commit 3a9e31cc88
Signed by: faukah
SSH key fingerprint: SHA256:jpYIt4Vkz1NBTQcks/N9OPTfTFxE6KF2W/rV7hrfrIw
2 changed files with 60 additions and 48 deletions

View file

@ -1,5 +1,5 @@
let
inherit (builtins) currentSystem filter mapAttrs;
inherit (builtins) filter mapAttrs;
# https://github.com/andir/npins?tab=readme-ov-file#using-the-nixpkgs-fetchers
src = import ./npins;
@ -20,10 +20,7 @@ let
modules = [
# This is used to pre-emptively set the hostPlatform for nixpkgs.
# Also, we set the system hostname here.
{
networking.hostName = hostname;
nixpkgs.hostPlatform = system;
}
{ networking.hostName = hostname; }
./hosts/common.nix
./hosts/${hostname}
]