From 765cc3ca49434cdd4b1eb3965a818dfa52289b20 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Fri, 28 Feb 2025 00:38:07 +0300 Subject: [PATCH] chore: decomission cube host --- .gitignore | 2 - hosts/cube/default.nix | 72 ------------------------------- hosts/cube/hardware.nix | 25 ----------- hosts/cube/id.age | Bin 721 -> 0 bytes hosts/cube/password.rgb.age | 7 --- keys.nix | 1 - modules/common/ssh/default.nix | 6 --- modules/linux/restic/default.nix | 2 +- secrets.nix | 6 +-- 9 files changed, 2 insertions(+), 119 deletions(-) delete mode 100644 hosts/cube/default.nix delete mode 100644 hosts/cube/hardware.nix delete mode 100644 hosts/cube/id.age delete mode 100644 hosts/cube/password.rgb.age diff --git a/.gitignore b/.gitignore index 503770d..d6b1677 100644 --- a/.gitignore +++ b/.gitignore @@ -15,8 +15,6 @@ !hosts/best/nextcloud/ !hosts/best/nextcloud/*.gif -!hosts/cube/ - !hosts/disk/ !hosts/nine/ diff --git a/hosts/cube/default.nix b/hosts/cube/default.nix deleted file mode 100644 index 421fae0..0000000 --- a/hosts/cube/default.nix +++ /dev/null @@ -1,72 +0,0 @@ -lib: lib.nixosSystem ({ config, keys, lib, ... }: let - inherit (lib) collectNix remove; -in { - imports = collectNix ./. |> remove ./default.nix; - - secrets.id.file = ./id.age; - services.openssh.hostKeys = [{ - type = "ed25519"; - path = config.secrets.id.path; - }]; - - services.openssh.banner = '' - _______________________________________ - / If God doesn't destroy San Francisco, \ - | He should apologize to Sodom and | - \ Gomorrah. / - --------------------------------------- - \ ^__^ - \ (oo)\_______ - (__)\ )\/\ - ||----w | - || || - ''; - - secrets.rgbPassword.file = ./password.rgb.age; - users.users = { - root.hashedPasswordFile = config.secrets.rgbPassword.path; - - rgb = { - description = "RGB"; - openssh.authorizedKeys.keys = keys.admins; - hashedPasswordFile = config.secrets.rgbPassword.path; - isNormalUser = true; - extraGroups = [ "wheel" ]; - }; - - backup = { - description = "Backup"; - openssh.authorizedKeys.keys = keys.all; - hashedPasswordFile = config.secrets.rgbPassword.path; - isNormalUser = true; - }; - }; - - home-manager.users = { - root = {}; - rgb = {}; - backup = {}; - }; - - networking = let - interface = "ens18"; - in { - hostName = "cube"; - - ipv4.address = "5.255.78.70"; - ipv4.prefixLength = 24; - - domain = "rgbcu.be"; - - defaultGateway = { - inherit interface; - - address = "5.255.78.1"; - }; - }; - - system.stateVersion = "23.05"; - home-manager.sharedModules = [{ - home.stateVersion = "23.11"; - }]; -}) diff --git a/hosts/cube/hardware.nix b/hosts/cube/hardware.nix deleted file mode 100644 index 89be440..0000000 --- a/hosts/cube/hardware.nix +++ /dev/null @@ -1,25 +0,0 @@ -{ lib, modulesPath, ... }: let - inherit (lib) enabled; -in { - imports = [(modulesPath + "/profiles/qemu-guest.nix")]; - - boot.loader.grub = enabled { - device = "/dev/vda"; - }; - - boot.initrd.availableKernelModules = [ - "ata_piix" - "sr_mod" - "uhci_hcd" - "virtio_blk" - "virtio_pci" - ]; - - fileSystems."/" = { - device = "/dev/disk/by-label/root"; - fsType = "ext4"; - options = [ "noatime" ]; - }; - - nixpkgs.hostPlatform = "x86_64-linux"; -} diff --git a/hosts/cube/id.age b/hosts/cube/id.age deleted file mode 100644 index 0d1cc974743f49c0d7d1b08e73011f109f5642aa..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 721 zcmYdHPt{G$OD?J`D9Oyv)5|YP*Do{V(zR14F3!+RO))YxHMCUFE{ZY;DOYgMEGcv? zHAo9e%1<^kPW3FS$~Ma|&ht<6F$k#2PxVSkPL9Y(i!jY{apW=&i*hs0aB{42v+(gR zPAv=Za?T0JDv3-A2@m!x3M(%tiZn1O3J5dtPe!-RxvDTJAW)&8!ZoPaz&N0)*wUjg zBQZEU!z;tJJk_W?)hj!v*vve)+|NBKtvof{HJdBQ*}yfe%)BT)JF%j`H8(rk%`-^9 zAk@jgu%aT+s5Go9%qXigInd24znDu`S63mcG~d!WD91OvvM?;z+ry$XJGs!*Cn_zs z+&ecr4H6a^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