diff options
| author | seth <[email protected]> | 2023-05-02 01:14:01 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-05-02 01:14:01 -0400 |
| commit | f9dbd3f12fb1f3db18f301790d922ff158bdb44b (patch) | |
| tree | 9a16a8f8c8d4ba489e6d339c04db6b05524ae223 | |
| parent | a9bc767f03a04aae4a8161c2948f68aaee5f0f3f (diff) | |
atlas: reinstall with systemd-boot
| -rw-r--r-- | hosts/atlas/default.nix | 6 | ||||
| -rw-r--r-- | hosts/atlas/hardware-configuration.nix | 28 |
2 files changed, 21 insertions, 13 deletions
diff --git a/hosts/atlas/default.nix b/hosts/atlas/default.nix index a6201fe..3a087f6 100644 --- a/hosts/atlas/default.nix +++ b/hosts/atlas/default.nix @@ -11,7 +11,11 @@ server.enable = true; - boot.cleanTmpDir = true; + boot = { + cleanTmpDir = true; + loader.systemd-boot.enable = true; + loader.efi.canTouchEfiVariables = true; + }; environment.systemPackages = with pkgs; [ hercules-ci-agent.packages.aarch64-linux.hercules-ci-cli diff --git a/hosts/atlas/hardware-configuration.nix b/hosts/atlas/hardware-configuration.nix index f3a929f..46b295b 100644 --- a/hosts/atlas/hardware-configuration.nix +++ b/hosts/atlas/hardware-configuration.nix @@ -1,18 +1,22 @@ {modulesPath, ...}: { - imports = [(modulesPath + "/profiles/qemu-guest.nix")]; - boot.loader.grub = { - efiSupport = true; - efiInstallAsRemovable = true; - device = "nodev"; + imports = [ + (modulesPath + "/profiles/qemu-guest.nix") + ]; + + boot.initrd.availableKernelModules = ["virtio_pci" "usbhid"]; + boot.initrd.kernelModules = []; + boot.kernelModules = []; + boot.extraModulePackages = []; + + fileSystems."/" = { + device = "/dev/disk/by-uuid/f0c84809-83f5-414b-a973-496d25d74c6d"; + fsType = "ext4"; }; + fileSystems."/boot" = { - device = "/dev/disk/by-uuid/EC6B-53AA"; + device = "/dev/disk/by-uuid/A253-0826"; fsType = "vfat"; }; - boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "xen_blkfront"]; - boot.initrd.kernelModules = ["nvme"]; - fileSystems."/" = { - device = "/dev/sda1"; - fsType = "ext4"; - }; + + swapDevices = []; } |
