diff options
| -rw-r--r-- | modules/hosts/sol/configuration.nix | 3 | ||||
| -rw-r--r-- | modules/hosts/sol/disko.nix | 4 | ||||
| -rw-r--r-- | modules/hosts/sol/hardware.nix | 36 |
3 files changed, 36 insertions, 7 deletions
diff --git a/modules/hosts/sol/configuration.nix b/modules/hosts/sol/configuration.nix index 242257e..5316372 100644 --- a/modules/hosts/sol/configuration.nix +++ b/modules/hosts/sol/configuration.nix @@ -45,7 +45,8 @@ users.users.dk = { isNormalUser = true; extraGroups = [ "wheel" ]; - hashedPasswordFile = "/persistent/passwd"; + # hashedPasswordFile = "/persistent/passwd"; + initialPassword = "1234"; }; home-manager.users.dk = self.homeModules.solHome; diff --git a/modules/hosts/sol/disko.nix b/modules/hosts/sol/disko.nix index e110cdd..1021a02 100644 --- a/modules/hosts/sol/disko.nix +++ b/modules/hosts/sol/disko.nix @@ -14,7 +14,7 @@ flake.nixosModules.solDisko = { pkgs, lib, ... }: { }; disko.devices.disk.hdd = { - device = ""; + device = "/dev/disk/by-id/ata-WDC_WD10EZEX-08WN4A0_WD-WCC6Y1ZAVV89"; type = "disk"; content.type = "gpt"; @@ -23,7 +23,7 @@ flake.nixosModules.solDisko = { pkgs, lib, ... }: { content = { type = "filesystem"; format = "ext4"; - mountpoint = "/hdd"; + mountpoint = "/mnt/hdd"; }; }; }; diff --git a/modules/hosts/sol/hardware.nix b/modules/hosts/sol/hardware.nix index 8c00011..ed34e41 100644 --- a/modules/hosts/sol/hardware.nix +++ b/modules/hosts/sol/hardware.nix @@ -1,19 +1,47 @@ { self, inputs, ... }: { - flake.nixosModules.lunaHardware = { config, lib, pkgs, modulesPath, ... }: + flake.nixosModules.solHardware = { config, lib, pkgs, modulesPath, ... }: { imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; - boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; + boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-intel" ]; + boot.kernelModules = [ ]; boot.extraModulePackages = [ ]; + fileSystems."/" = + { device = "tmpfs"; + fsType = "tmpfs"; + }; + + fileSystems."/nix/.rw-store" = + { device = "tmpfs"; + fsType = "tmpfs"; + }; + + fileSystems."/iso" = + { device = "/dev/mapper/ventoy"; + fsType = "iso9660"; + }; + + fileSystems."/nix/.ro-store" = + { device = "/iso/nix-store.squashfs"; + fsType = "squashfs"; + options = [ "loop" ]; + }; + + fileSystems."/nix/store" = + { device = "overlay"; + fsType = "overlay"; + }; + + swapDevices = [ ]; + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; } ; |
