This commit is contained in:
Dmitriy Holkin 2020-04-26 14:48:24 +04:00
parent 10944da4f0
commit ac771933c7
5 changed files with 11 additions and 7 deletions

View File

@ -71,8 +71,6 @@ in {
pywal
python27Packages.pygtk
python2
rust-stable
] ++ lib.optionals isLaptop [
# Important
acpi
@ -82,7 +80,7 @@ in {
blueman
] ++ lib.optionals (!isVM) [
libreoffice
# rust-stable
rust-stable
] ++ lib.optionals (device == "AMD-Workstation") [
xonar-fp
];
@ -97,10 +95,11 @@ in {
spicetify-cli
discord
pulseeffects
quodlibet
] ++ lib.optionals (!isVM) [
steam
steam-run
protontricks
# protontricks
lutris
# retroarch
] ++ lib.optionals (enableVirtualisation) [

View File

@ -56,7 +56,7 @@ with types; {
video = "intel";
ram = 8;
isShared = false;
enableVirtualisation = true;
enableVirtualisation = false;
hostName = "dell-ataraxia";
};
NixOS-VM = {

View File

@ -26,7 +26,7 @@
userControlled.enable = true;
};
firewall.enable = false;
# usePredictableInterfaceNames = false;
usePredictableInterfaceNames = false;
hostName = config.deviceSpecific.hostName;
};
}

View File

@ -33,6 +33,11 @@ with deviceSpecific; {
# '';
};
# TODO: obsolete?
powerManagement.cpuFreqGovernor =
lib.mkIf config.services.tlp.enable (lib.mkForce null);
services.undervolt = {
enable = (device == "Dell-Laptop");
coreOffset = "-120";

View File

@ -3,7 +3,7 @@ let
cfg = config.secrets.wireguard.${config.device};
in {
config = lib.mkIf cfg.enable {
boot.extraModulePackages = [ config.boot.kernelPackages.wireguard ];
# boot.extraModulePackages = [ config.boot.kernelPackages.wireguard ];
environment.systemPackages = [ pkgs.wireguard pkgs.wireguard-tools ];
networking.firewall.checkReversePath = false;