diff options
| author | Max Audron <audron@cocaine.farm> | 2023-09-27 12:49:16 +0200 |
|---|---|---|
| committer | Max Audron <audron@cocaine.farm> | 2023-09-27 12:49:16 +0200 |
| commit | 7f30f1c9d8b6b885081ad81e3fa3c6849b3f3548 (patch) | |
| tree | 857bde9b44f25cb321b6d4831e6db99fba3888cb /machines/nixbuilder | |
| parent | add secrets submodule (diff) | |
test kubernetes deployment
Diffstat (limited to 'machines/nixbuilder')
| -rw-r--r-- | machines/nixbuilder/default.nix | 24 | ||||
| -rw-r--r-- | machines/nixbuilder/hardware-configuration.nix | 9 |
2 files changed, 33 insertions, 0 deletions
diff --git a/machines/nixbuilder/default.nix b/machines/nixbuilder/default.nix new file mode 100644 index 0000000..afbfa1c --- /dev/null +++ b/machines/nixbuilder/default.nix @@ -0,0 +1,24 @@ +{ config, lib, pkgs, ... }: + +{ + imports = [ + ./hardware-configuration.nix + ]; + + boot.tmp.cleanOnBoot = true; + zramSwap.enable = true; + networking.hostName = "cke-nix-builder"; + networking.domain = ""; + services.openssh.enable = true; + users.users.root.openssh.authorizedKeys.keys = [ + ''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO2eIUtbt7RM75ThjKfUjm24QkzkzCSj7hs+GLaaxMeH cardno:12_767_512'' + ]; + + _module.args.nixinate = { + host = "10.49.214.164"; + sshUser = "audron"; + buildOn = "remote"; + substituteOnTarget = true; + hermetic = false; + }; +} diff --git a/machines/nixbuilder/hardware-configuration.nix b/machines/nixbuilder/hardware-configuration.nix new file mode 100644 index 0000000..850f51f --- /dev/null +++ b/machines/nixbuilder/hardware-configuration.nix @@ -0,0 +1,9 @@ +{ modulesPath, ... }: +{ + 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/sda2"; fsType = "ext4"; }; + +} |
