Add my.isLaptop variable
This commit is contained in:
parent
ec7c98dcc8
commit
160952445a
|
@ -1,14 +1,22 @@
|
||||||
{lib,...}:{
|
{lib,...}:{
|
||||||
|
|
||||||
options.my.highDPI = lib.mkOption {
|
options.my = {
|
||||||
description = "If the device has a high DPI screen";
|
highDPI = lib.mkOption {
|
||||||
default = true;
|
description = "If the device has a high DPI screen";
|
||||||
type = lib.types.bool;
|
default = true;
|
||||||
};
|
type = lib.types.bool;
|
||||||
|
};
|
||||||
|
|
||||||
options.my.includeTLP = lib.mkOption {
|
includeTLP = lib.mkOption {
|
||||||
description = "If the device should get TLP";
|
description = "If the device should get TLP";
|
||||||
default = true;
|
default = true;
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
|
};
|
||||||
|
|
||||||
|
isLaptop = lib.mkOption {
|
||||||
|
description = "If the device is a laptop";
|
||||||
|
default = false;
|
||||||
|
type = lib.types.bool;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -120,11 +120,10 @@ in
|
||||||
studio-link
|
studio-link
|
||||||
python3.pkgs.brother-ql
|
python3.pkgs.brother-ql
|
||||||
|
|
||||||
] ++ lib.optionals (config.networking.hostName == "jimbo") [
|
] ++ lib.optionals (config.my.isLaptop) [
|
||||||
networkmanager
|
|
||||||
] ++ lib.optionals (config.networking.hostName == "milhouse") [
|
|
||||||
networkmanager
|
networkmanager
|
||||||
];
|
];
|
||||||
|
|
||||||
home.stateVersion = "21.11";
|
home.stateVersion = "21.11";
|
||||||
|
|
||||||
gtk = {
|
gtk = {
|
||||||
|
|
|
@ -14,6 +14,9 @@
|
||||||
# disable the include of TLP because we get the fancy AMD one from nixos-hardwware
|
# disable the include of TLP because we get the fancy AMD one from nixos-hardwware
|
||||||
my.includeTLP = false;
|
my.includeTLP = false;
|
||||||
|
|
||||||
|
# Smithers is a laptop
|
||||||
|
my.isLaptop = true;
|
||||||
|
|
||||||
# Don't wake from sleep if plugged into AC
|
# Don't wake from sleep if plugged into AC
|
||||||
hardware.framework.amd-7040.preventWakeOnAC = true;
|
hardware.framework.amd-7040.preventWakeOnAC = true;
|
||||||
|
|
||||||
|
|
2
overlay
2
overlay
|
@ -1 +1 @@
|
||||||
Subproject commit 83947293966a99621d28fdfe05dd92ca33528574
|
Subproject commit 87e002697a0bb6883824f1ce8395a67638c6fb49
|
Loading…
Reference in a new issue