From 6b02c9ebfd37d05a5467a29263509d91fd258e60 Mon Sep 17 00:00:00 2001 From: serenity-F Date: Thu, 12 Dec 2024 03:06:22 +1000 Subject: [PATCH] more tidying in `hosts/hades` --- hosts/hades/configuration.nix | 53 -------------------------- hosts/hades/hardware-configuration.nix | 50 ------------------------ 2 files changed, 103 deletions(-) delete mode 100755 hosts/hades/configuration.nix delete mode 100755 hosts/hades/hardware-configuration.nix diff --git a/hosts/hades/configuration.nix b/hosts/hades/configuration.nix deleted file mode 100755 index 8712bc1..0000000 --- a/hosts/hades/configuration.nix +++ /dev/null @@ -1,53 +0,0 @@ -# Edit this configuration file to define what should be installed on -# your system. Help is available in the configuration.nix(5) man page, on -# https://search.nixos.org/options and in the NixOS manual (`nixos-help`). - -{ pkgs, ... }: - -{ - imports = [ - - ./hardware-configuration.nix - - ./default.nix - - ]; - - boot = { - - kernelPackages = pkgs.linuxPackages_latest; - - supportedFilesystems = [ "vfat" "ext4" ]; - - loader.grub = { - enable = true; - device = "/dev/nvme0n1"; - enableCryptodisk = true; - }; - - initrd.luks.devices = { - root = { - # Use https://nixos.wiki/wiki/Full_Disk_Encryption - device = "/dev/disk/by-uuid/5526aab7-b779-4fc8-95bd-9452bc3a9232"; - preLVM = true; - }; - }; - - }; - - hardware.enableAllFirmware = true; - - nixpkgs.config.allowUnfree = true; - - networking = { - - hostName = "hades"; # Define your hostname. - - networkmanager = { - enable = true; # Easiest to use and most distros use this by default. - }; - - }; - -} - diff --git a/hosts/hades/hardware-configuration.nix b/hosts/hades/hardware-configuration.nix deleted file mode 100755 index 9526d90..0000000 --- a/hosts/hades/hardware-configuration.nix +++ /dev/null @@ -1,50 +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, modulesPath, ... }: - -{ - - imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; - - boot = { - - initrd = { - availableKernelModules = - [ "xhci_pci" "ehci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ]; - - kernelModules = [ "dm-snapshot" ]; - - }; - - kernelModules = [ "kvm-intel" ]; - - extraModulePackages = [ ]; - - }; - - fileSystems."/" = { - device = "/dev/disk/by-uuid/ad648423-7aa4-4f0f-b157-2f6b458130f7"; - fsType = "ext4"; - }; - - fileSystems."/boot" = { - device = "/dev/disk/by-uuid/552D-851F"; - fsType = "vfat"; - options = [ "fmask=0022" "dmask=0022" ]; - }; - - swapDevices = - [{ device = "/dev/disk/by-uuid/b7ccf8c3-3641-4035-b91f-f7e54c6dd380"; }]; - - # 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; - - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - - hardware.cpu.intel.updateMicrocode = - lib.mkDefault config.hardware.enableRedistributableFirmware; -}