diff --git a/hosts/harbor/configuration.nix b/hosts/harbor/configuration.nix index c1ede65..8b0b634 100644 --- a/hosts/harbor/configuration.nix +++ b/hosts/harbor/configuration.nix @@ -1,7 +1,6 @@ {pkgs, ...}: { imports = [ - # Include the results of the hardware scan. - # ./hardware-configuration.nix + ./hardware-configuration.nix ../../modules/services/nextcloud-instance.nix ]; @@ -50,6 +49,8 @@ # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). system.stateVersion = "24.11"; # Did you read the comment? + boot.loader.grub.device = "/dev/sda"; + # Set your time zone. time.timeZone = "Europe/Berlin"; diff --git a/hosts/harbor/hardware-configuration.nix b/hosts/harbor/hardware-configuration.nix new file mode 100644 index 0000000..b864c87 --- /dev/null +++ b/hosts/harbor/hardware-configuration.nix @@ -0,0 +1,33 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = + [ (modulesPath + "/profiles/qemu-guest.nix") + ]; + + boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/8682be2b-6620-46be-9350-c7ba0adb8f34"; + fsType = "ext4"; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/ee56aac9-2977-4234-9d0e-933fc2c59fdf"; } + ]; + + # Enables DHCP on each ethernet and wireless interface. In case of scripted networking + # (the default) this is the recommended approach. When using systemd-networkd it's + # still possible to use this option, but it's recommended to use it in conjunction + # with explicit per-interface declarations with `networking.interfaces..useDHCP`. + networking.useDHCP = lib.mkDefault true; + # networking.interfaces.enp1s0.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; +}