fix(pilot1): complete flake migration

This commit is contained in:
Felix Schröter 2021-08-10 15:53:23 +02:00
parent 642f7406f6
commit 73c9dfa364
No known key found for this signature in database
GPG key ID: 910ACB9F6BD26F58
3 changed files with 28 additions and 3 deletions

View file

@ -137,7 +137,7 @@
modules = [ modules = [
nixpkgs.nixosModules.notDetected nixpkgs.nixosModules.notDetected
(lib.createSystem "pilot1" { (lib.createSystem "pilot1" {
hardwareConfig = ./hardware-configuration.nix; # TODO hardwareConfig = ./hardware/pilot1.nix;
config = ./work-pc.nix; config = ./work-pc.nix;
}) })
(lib.createUser "felschr" { (lib.createUser "felschr" {

25
hardware/pilot1.nix Normal file
View file

@ -0,0 +1,25 @@
{ config, lib, pkgs, ... }:
{
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/155b5acf-a0f8-4615-ae03-43a5c193f772";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/31C7-CBD1";
fsType = "vfat";
};
swapDevices =
[ { device = "/dev/disk/by-uuid/397a1a92-596f-421b-99e1-c9b2cb821309"; }
];
nix.maxJobs = lib.mkDefault 8;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
}

View file

@ -21,8 +21,8 @@
hardware.enableAllFirmware = true; hardware.enableAllFirmware = true;
hardware.cpu.intel.updateMicrocode = true; hardware.cpu.intel.updateMicrocode = true;
hardware.logitech.enable = true; hardware.logitech.wireless.enable = true;
hardware.logitech.enableGraphical = true; hardware.logitech.wireless.enableGraphical = true;
services.tlp.enable = true; services.tlp.enable = true;