add fs & state version & fixes

This commit is contained in:
asyncnomi 2025-07-18 02:32:38 +02:00
parent b153246f90
commit 662d5a9f2e
4 changed files with 26 additions and 14 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, lib, ... }:
{
options.hostName = lib.mkOption {
@ -8,8 +8,6 @@
};
config = {
hostName = "awendap";
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# Global packages
@ -25,5 +23,7 @@
curl
wget
];
system.stateVersion = "25.05";
};
}

View file

@ -1,4 +1,4 @@
{ ... }:
{ config, lib, modulesPath, ... }:
let
# Import nodes
@ -6,6 +6,15 @@ let
myNode = nodes."${config.hostName}";
in
{
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
];
fileSystems = myNode.fileSystems;
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
boot.loader.grub.enable = true;
boot.loader.grub.device = myNode.grubDevice;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}