fix(pilot1): complete flake migration
This commit is contained in:
parent
642f7406f6
commit
73c9dfa364
|
@ -137,7 +137,7 @@
|
|||
modules = [
|
||||
nixpkgs.nixosModules.notDetected
|
||||
(lib.createSystem "pilot1" {
|
||||
hardwareConfig = ./hardware-configuration.nix; # TODO
|
||||
hardwareConfig = ./hardware/pilot1.nix;
|
||||
config = ./work-pc.nix;
|
||||
})
|
||||
(lib.createUser "felschr" {
|
||||
|
|
25
hardware/pilot1.nix
Normal file
25
hardware/pilot1.nix
Normal 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";
|
||||
}
|
|
@ -21,8 +21,8 @@
|
|||
|
||||
hardware.enableAllFirmware = true;
|
||||
hardware.cpu.intel.updateMicrocode = true;
|
||||
hardware.logitech.enable = true;
|
||||
hardware.logitech.enableGraphical = true;
|
||||
hardware.logitech.wireless.enable = true;
|
||||
hardware.logitech.wireless.enableGraphical = true;
|
||||
|
||||
services.tlp.enable = true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue