fix initrd modules and rename host
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Hendrik Sokolowski 2023-04-11 21:40:48 +02:00
parent 366d3b1278
commit c196f5e44b
6 changed files with 15 additions and 14 deletions

View file

@ -125,7 +125,7 @@
suites = with profiles; rec { suites = with profiles; rec {
base = [ base-user users.root users.barkeeper ]; base = [ base-user users.root users.barkeeper ];
host_001_momo_koeln = base; host-001-momo-koeln = base;
}; };
}; };
}; };
@ -153,7 +153,7 @@
homeConfigurations = digga.lib.mkHomeConfigurations self.nixosConfigurations; homeConfigurations = digga.lib.mkHomeConfigurations self.nixosConfigurations;
deploy.nodes = digga.lib.mkDeployNodes self.nixosConfigurations { deploy.nodes = digga.lib.mkDeployNodes self.nixosConfigurations {
host_001_momo_koeln = { host-001-momo-koeln = {
hostname = "80.244.242.4"; hostname = "80.244.242.4";
sshUser = "barkeeper"; sshUser = "barkeeper";
}; };

View file

@ -0,0 +1,6 @@
{ suites, ... }:
{
imports = [
./host-001-momo-koeln.nix
] ++ suites.host-001-momo-koeln;
}

View file

@ -11,27 +11,28 @@
# Define on which hard drive you want to install Grub. # Define on which hard drive you want to install Grub.
boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "sd_mod" "sr_mod" ]; boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_scsi" "sd_mod" "sr_mod" "dm-snapshot" "virtio_pci" ];
boot.initrd.kernelModules = [ "dm-snapshot" ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
boot.initrd.luks.devices."cryptroot" = { boot.initrd.luks.devices."cryptroot" = {
device = "/dev/disk/by-uuid/531ee357-5777-498f-abbf-64bb4cff9a14"; device = "/dev/disk/by-label/cryptroot";
}; };
fileSystems."/" = fileSystems."/" =
{ device = "/dev/disk/by-uuid/f5b3152a-a3bd-46d1-968f-53d50fca921e"; { device = "/dev/disk/by-label/root";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/boot" = fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/1fd053f8-725b-418d-aed1-aee71dac2b62"; { device = "/dev/disk/by-label/boot";
fsType = "ext4"; fsType = "ext4";
}; };
swapDevices = swapDevices =
[ { device = "/dev/disk/by-uuid/46191ecf-244c-4445-b1c0-ae3059871a70"; } [ { device = "/dev/disk/by-label/swap"; }
]; ];
networking = { networking = {

View file

@ -1,6 +0,0 @@
{ suites, ... }:
{
imports = [
./host_001_momo_koeln.nix
] ++ suites.host_001_momo_koeln;
}