From 394a24567bc014385189db8d5daa00dcfa99a787 Mon Sep 17 00:00:00 2001 From: mrsu Date: Sun, 14 Jul 2024 21:04:36 +0100 Subject: [PATCH] removed test hosts fileserver & nixdev --- hosts/fileserver/default.nix | 50 --------------------- hosts/fileserver/hardware-configuration.nix | 31 ------------- hosts/nixdev/default.nix | 34 -------------- hosts/nixdev/hardware-configuration.nix | 33 -------------- 4 files changed, 148 deletions(-) delete mode 100644 hosts/fileserver/default.nix delete mode 100644 hosts/fileserver/hardware-configuration.nix delete mode 100644 hosts/nixdev/default.nix delete mode 100644 hosts/nixdev/hardware-configuration.nix diff --git a/hosts/fileserver/default.nix b/hosts/fileserver/default.nix deleted file mode 100644 index ddbc415..0000000 --- a/hosts/fileserver/default.nix +++ /dev/null @@ -1,50 +0,0 @@ -{ inputs, config, lib, pkgs, outputs, configLib, ... }: - -{ - imports = - [ - # Import core options - ./hardware-configuration.nix - ../common/core - - # Import optional options - ../common/optional/openssh - ../common/optional/fileserver-nfs-mount.nix - - # Create users for this host - ../common/users/admin - - ]; - - nixpkgs = { - overlays = [ - outputs.overlays.additions - outputs.overlays.modifications - outputs.overlays.unstable-packages - ]; - config = { - allowUnfree = true; - }; - }; - - nix.settings.experimental-features = [ "nix-command" "flakes" ]; - - boot.loader.grub.enable = true; - boot.loader.grub.device = "/dev/vda"; - - networking = { - hostName = "fileserver"; - networkmanager.enable = true; - enableIPv6 = false; - hosts = { "192.168.122.223" = [ "fileserver" ]; }; - }; - - time.timeZone = "Europe/London"; - - programs.gnupg.agent = { - enable = true; - enableSSHSupport = true; - }; - -} - diff --git a/hosts/fileserver/hardware-configuration.nix b/hosts/fileserver/hardware-configuration.nix deleted file mode 100644 index be04803..0000000 --- a/hosts/fileserver/hardware-configuration.nix +++ /dev/null @@ -1,31 +0,0 @@ -# Do not modify this file! It was generated by ‘nixos-generate-config’ -# and may be overwritten by future invocations. Please make changes -# to /etc/nixos/configuration.nix instead. -{ config, lib, pkgs, modulesPath, ... }: - -{ - imports = - [ (modulesPath + "/profiles/qemu-guest.nix") - ]; - - boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "virtio_scsi" "sr_mod" "virtio_blk" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-intel" ]; - boot.extraModulePackages = [ ]; - - fileSystems."/" = - { device = "/dev/disk/by-uuid/9bed98b2-5ee2-4408-a9b1-6d40e9b68135"; - fsType = "ext4"; - }; - - swapDevices = [ ]; - - # Enables DHCP on each ethernet and wireless interface. In case of scripted networking - # (the default) this is the recommended approach. When using systemd-networkd it's - # still possible to use this option, but it's recommended to use it in conjunction - # with explicit per-interface declarations with `networking.interfaces..useDHCP`. - networking.useDHCP = lib.mkDefault true; - # networking.interfaces.enp1s0.useDHCP = lib.mkDefault true; - - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; -} diff --git a/hosts/nixdev/default.nix b/hosts/nixdev/default.nix deleted file mode 100644 index e4b2223..0000000 --- a/hosts/nixdev/default.nix +++ /dev/null @@ -1,34 +0,0 @@ -{ inputs, config, lib, pkgs, outputs,... }: -let - dev = "/dev/vda"; -in -{ - imports = - [ - # Import core options - ./hardware-configuration.nix - ../common/core - - # Import optional options - ../common/optional/pipewire.nix - ../common/optional/hyprland.nix - ../common/optional/displayManager/sddm.nix - ../common/optional/openssh.nix - - # Create users for this host - ../common/users/sam - - ]; - - boot.loader.grub.enable = true; - boot.loader.grub.device = "${dev}"; - - networking = { - hostName = "nixdev"; - networkmanager.enable = true; - enableIPv6 = false; - }; - - services.libinput.enable = true; -} - diff --git a/hosts/nixdev/hardware-configuration.nix b/hosts/nixdev/hardware-configuration.nix deleted file mode 100644 index 1b1b9bd..0000000 --- a/hosts/nixdev/hardware-configuration.nix +++ /dev/null @@ -1,33 +0,0 @@ -# Do not modify this file! It was generated by ‘nixos-generate-config’ -# and may be overwritten by future invocations. Please make changes -# to /etc/nixos/configuration.nix instead. -{ config, lib, pkgs, modulesPath, ... }: - -{ - imports = - [ (modulesPath + "/profiles/qemu-guest.nix") - ]; - - boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-intel" ]; - boot.extraModulePackages = [ ]; - - fileSystems."/" = - { device = "/dev/disk/by-uuid/f9abe09a-de68-4913-b6c5-ad55b473a961"; - fsType = "ext4"; - }; - - swapDevices = - [ { device = "/dev/disk/by-uuid/fe24d2ba-2fbc-4ef5-8139-a26f4fc3f3e3"; } - ]; - - # Enables DHCP on each ethernet and wireless interface. In case of scripted networking - # (the default) this is the recommended approach. When using systemd-networkd it's - # still possible to use this option, but it's recommended to use it in conjunction - # with explicit per-interface declarations with `networking.interfaces..useDHCP`. - networking.useDHCP = lib.mkDefault true; - # networking.interfaces.enp1s0.useDHCP = lib.mkDefault true; - - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; -}