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 0d1cc97..0000000 Binary files a/hosts/cube/id.age and /dev/null differ diff --git a/hosts/cube/password.rgb.age b/hosts/cube/password.rgb.age deleted file mode 100644 index 9a13973..0000000 --- a/hosts/cube/password.rgb.age +++ /dev/null @@ -1,7 +0,0 @@ -age-encryption.org/v1 --> ssh-ed25519 +rZ0Tw BqDKOhzKwsfB9r6GklGp+S3mXx+DdX09g41NXnacjl8 -70wY8mCl2g8AGtMYpav5NPF5g5u+RNGoR6JoET40FN4 --> ssh-ed25519 CzqbPQ KZzxhYghah9YxLv0Ne+eEMGArYme4QV4iKk9NIVt4kM -WSSR9XCPC/EmPZeh6xvtPTLy6f4fqLl+Xsh6WBw9htM ---- JGLEyZKYrGTH9nXuuxIF3OYpyRZyGmEVAdyju4TKRUo -1EK.A 3=D!;%{HG G:F2