From 7f30f1c9d8b6b885081ad81e3fa3c6849b3f3548 Mon Sep 17 00:00:00 2001 From: Max Audron Date: Wed, 27 Sep 2023 12:49:16 +0200 Subject: test kubernetes deployment --- machines/nixbuilder/default.nix | 24 ++++++++++++++++++++++++ machines/nixbuilder/hardware-configuration.nix | 9 +++++++++ 2 files changed, 33 insertions(+) create mode 100644 machines/nixbuilder/default.nix create mode 100644 machines/nixbuilder/hardware-configuration.nix (limited to 'machines/nixbuilder') 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"; }; + +} -- cgit v1.2.3 ff
path: root/machines/sin01/default.nix (unfollow)
Commit message (Collapse)AuthorLines
2024-10-18switch to protonvpn for illegal activitiesMax Audron-50/+240
2024-08-12move catinator secrets to be managed by secrets moduleMax Audron-1/+8
2024-08-12add pastor deploymentMax Audron-1/+296
2024-08-12remove psql ensurePermissionsMax Audron-5/+5
2024-08-12disable k8sMax Audron-5/+0
2024-08-12add catinatorMax Audron-7/+299
2024-08-12update flaresolverrMax Audron-1/+1
2024-08-12update powerdns configMax Audron-5/+5
2024-08-12update garage config to 1.0Max Audron-2/+3
2024-08-12update to nixos 24.05Max Audron-27/+21
2024-07-03add acc serverMax Audron-2/+23
2024-03-29add rtmp and laplaceMax Audron-1/+200
2024-03-29add hydra secretsMax Audron-0/+0
2024-03-29add hydra secretsMax Audron-5/+35
2024-03-19extend postgresql hpa for podman ipsMax Audron-1/+1
2024-03-02update authentikMax Audron-8/+6
2024-03-02setup gitea oidcMax Audron-5/+18
2024-02-28add giteaMax Audron-2/+39
2024-02-28remove gitlab moduleMax Audron-25/+0
2024-02-26update d3fus phone wg pubkeyMarcin Maselko-1/+1
2024-02-26added d3fus nass to wg configMarcin Maselko-0/+9
2024-02-21set minecraft memoryMax Audron-0/+1
2024-02-21add minecraft server and move palworld to games moduleMax Audron-3/+56
2024-02-21set network manually for ns serversMax Audron-0/+51
2024-02-20update nixpkgs-unstableMax Audron-3/+3
2024-02-19update d3fus fritzbox wg portMarcin Maselko-1/+1
2024-02-19add xonotic serverMax Audron-1/+10