summaryrefslogtreecommitdiff
path: root/machines
diff options
context:
space:
mode:
authorMike Vink <ivi@vinkies.net>2023-12-02 20:40:21 +0100
committerMike Vink <ivi@vinkies.net>2023-12-02 20:42:56 +0100
commit41ebf219c1f715fd597a9ec70f57887094ff3241 (patch)
treebb4ff1135508271ae1c5b43e6e2fb94e5a6327f2 /machines
parentcf0591eef668852bece4285514b4ad64837ee9df (diff)
box
Diffstat (limited to 'machines')
-rw-r--r--machines/cal.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/machines/cal.nix b/machines/cal.nix
new file mode 100644
index 0000000..99b114e
--- /dev/null
+++ b/machines/cal.nix
@@ -0,0 +1,16 @@
+{ modulesPath, config, pkgs, lib, ... }: with lib; {
+ imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
+
+ boot.loader.grub.device = "/dev/sda";
+ boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ];
+ boot.initrd.kernelModules = [ "nvme" ];
+ fileSystems."/" = { device = "/dev/sda1"; fsType = "ext4"; };
+
+ sops.age.sshKeyPaths = ["/etc/ssh/ssh_host_ed25519_key"];
+ system.stateVersion = "23.11";
+ boot.tmp.cleanOnBoot = true;
+ zramSwap.enable = true;
+ networking.hostName = "vinkies";
+ networking.domain = "net";
+ services.openssh.enable = true;
+}