usability improvements
This commit is contained in:
@@ -12,6 +12,20 @@
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
boot.kernelParams = [
|
||||
"quiet"
|
||||
"splash"
|
||||
];
|
||||
|
||||
# https://github.com/lwfinger/rtw89/issues/240
|
||||
boot.extraModprobeConfig = ''
|
||||
options rtw89_pci disable_aspm_l1ss=y disable_aspm_l1=y disable_clkreq=y
|
||||
options rtw89_core disable_ps_mode=y
|
||||
'';
|
||||
|
||||
|
||||
services.fwupd.enable = true;
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/1ea0784c-4eeb-46f1-a0ae-f6b311b27bd1";
|
||||
@@ -37,23 +51,26 @@
|
||||
};
|
||||
|
||||
# TODO - only enable this if the user remy exists
|
||||
fileSystems."/home/${config.nix-config.userName}/scratch" =
|
||||
fileSystems."/scratch/${config.nix-config.userName}" =
|
||||
{ device = "/dev/disk/by-uuid/1ea0784c-4eeb-46f1-a0ae-f6b311b27bd1";
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=@scratch" ];
|
||||
options = [
|
||||
"subvol=@scratch"
|
||||
# Even though the mount point is not in home, we still want to show it in gnome-related file managers
|
||||
"x-gvfs-show"
|
||||
"x-gvfs-name=scratch"
|
||||
"x-gvfs-icon=view-refresh"
|
||||
];
|
||||
# TODO make it owned by the user
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
# 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.<interface>.useDHCP`.
|
||||
# Enables DHCP on each ethernet and wireless interface.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.wireguard-home.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.wlp192s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user