diff --git a/.gitignore b/.gitignore index 577b0a0..e69de29 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +0,0 @@ -hardware-configuration.nix diff --git a/configuration.nix b/configuration.nix index 1cd2ee2..50ef733 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,18 +1,33 @@ -# Edit this configuration file to define what should be installed on -# your system. Help is available in the configuration.nix(5) man page -# and in the NixOS manual (accessible by running ‘nixos-help’). - -{ config, pkgs, ... }: +{ config, lib, pkgs, modulesPath, ... }: { imports = - [ # Include the results of the hardware scan. - ./hardware-configuration.nix + [ (modulesPath + "/installer/scan/not-detected.nix") ]; + fileSystems."/" = + { device = "/dev/disk/by-uuid/e0516457-2611-4fbd-afdd-b96618c15fc9"; + fsType = "ext4"; + }; + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/5C46-63E4"; + fsType = "vfat"; + }; + swapDevices = + [ { device = "/dev/disk/by-uuid/0bb9c031-1533-40bb-81ae-f956ba84568d"; } + ]; + + powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; + # high-resolution display + hardware.video.hidpi.enable = lib.mkDefault true; + # Use the systemd-boot EFI boot loader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; + boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usbhid" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; boot.kernelPackages = pkgs.linuxPackages_latest; nixpkgs.config.allowUnfree = true; @@ -52,17 +67,6 @@ vscode ]; - # Some programs need SUID wrappers, can be configured further or are - # started in user sessions. - # programs.mtr.enable = true; - # programs.gnupg.agent = { - # enable = true; - # enableSSHSupport = true; - # }; - - # List services that you want to enable: - - # Enable the OpenSSH daemon. services.openssh.enable = true; # Open ports in the firewall.