diff --git a/flake.nix b/flake.nix index 5533eaa..35a4b42 100644 --- a/flake.nix +++ b/flake.nix @@ -36,6 +36,15 @@ }; modules = mods "2maccabees"; }; + + "linode" = inputs.nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + specialArgs = { + nixpkgs = inputs.nixpkgs; + agenix = inputs.agenix; + }; + modules = mods "linode"; + }; }; }; } diff --git a/hosts/linode/default.nix b/hosts/linode/default.nix index edf9e3c..f322017 100644 --- a/hosts/linode/default.nix +++ b/hosts/linode/default.nix @@ -2,6 +2,7 @@ { imports = [ + ./hardware-configuration.nix ../../profiles/linode.nix ./nextcloud.nix ./nginx.nix diff --git a/hosts/linode/hardware-configuration.nix b/hosts/linode/hardware-configuration.nix new file mode 100644 index 0000000..844ba26 --- /dev/null +++ b/hosts/linode/hardware-configuration.nix @@ -0,0 +1,26 @@ +# 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 = [ "virtio_pci" "virtio_scsi" "ahci" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = { + device = "/dev/sda"; + fsType = "ext4"; + }; + + swapDevices = [ + { device = "/dev/sdb"; } + ]; + + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +}