diff --git a/flake.nix b/flake.nix index 6748377..54b5618 100644 --- a/flake.nix +++ b/flake.nix @@ -55,7 +55,11 @@ ] ++ boilerplate; }; + nixosConfigurations.seele = nixpkgs.lib.nixosSystem { + specialArgs = { inherit inputs; }; +modules = [./modules/hosts/seele/configurations.nix] ++ boilerplate; +}; }; } diff --git a/modules/hosts/seele/configuration.nix b/modules/hosts/seele/configuration.nix new file mode 100644 index 0000000..0deafc7 --- /dev/null +++ b/modules/hosts/seele/configuration.nix @@ -0,0 +1,16 @@ +# 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`). + +{ config, lib, pkgs, ... }: + +{ + imports = + [ # Include the results of the hardware scan. + ./hardware-configuration.nix + ../base/configuration.nix + ]; + + networking.hostName = "seele"; # Define your hostname. +} + diff --git a/modules/hosts/seele/hardware-configuration.nix b/modules/hosts/seele/hardware-configuration.nix new file mode 100644 index 0000000..b7b2863 --- /dev/null +++ b/modules/hosts/seele/hardware-configuration.nix @@ -0,0 +1,33 @@ +# 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 + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "sdhci_pci" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/8e26be6b-4dff-4c85-9ab8-4765e1b2b581"; + fsType = "xfs"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/9472-595A"; + fsType = "vfat"; + options = [ "fmask=0022" "dmask=0022" ]; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/db947ed5-ae76-4cd6-8430-5fd4d3efab5f"; } + ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +}