Add linode host

This commit is contained in:
Greg Hellings
2022-04-20 03:10:08 +00:00
parent d84d4e06ae
commit 959ca7f323
3 changed files with 36 additions and 0 deletions
+9
View File
@@ -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";
};
};
};
}
+1
View File
@@ -2,6 +2,7 @@
{
imports = [
./hardware-configuration.nix
../../profiles/linode.nix
./nextcloud.nix
./nginx.nix
+26
View File
@@ -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;
}