summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Kaiser2026-06-13 13:24:37 +0200
committerDominik Kaiser2026-06-13 13:24:37 +0200
commit0d7ee6f1a248a0e13a42c0db8ad8a8dd8125ccab (patch)
tree9569709a8194ce663afd8805bdbfb0d1274c1f38
parentd6dc581b9c8e5caff8e9f05879c59ad59e176644 (diff)
downloadnixos-0d7ee6f1a248a0e13a42c0db8ad8a8dd8125ccab.tar.gz
nixos-0d7ee6f1a248a0e13a42c0db8ad8a8dd8125ccab.zip
Fix sol
-rw-r--r--modules/hosts/sol/configuration.nix3
-rw-r--r--modules/hosts/sol/disko.nix4
-rw-r--r--modules/hosts/sol/hardware.nix36
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;
}
;