diff options
author | Linnnus <[email protected]> | 2023-11-14 20:24:19 +0100 |
---|---|---|
committer | Linnnus <[email protected]> | 2023-11-14 20:24:19 +0100 |
commit | 59d6325c4fe7af9c6ab813eb5ff3599e9becbadc (patch) | |
tree | 1bc70923135f57cea853d9c6ce760accd7abae55 /modules | |
parent | b34e9ee5ab32e434c4c6e15ba8a76361d66f2c98 (diff) |
ahmed: Change underlying hardware
My home computer has changed, but since it has almost exactly the same
assignments as before I decided to keep the hostname the same.
I guess I'll save "fathima" for my next computer...
Diffstat (limited to 'modules')
-rw-r--r-- | modules/nixos/disable-screen/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/nixos/disable-screen/default.nix b/modules/nixos/disable-screen/default.nix index 4a07c39..638437a 100644 --- a/modules/nixos/disable-screen/default.nix +++ b/modules/nixos/disable-screen/default.nix @@ -5,7 +5,7 @@ config, ... }: let - inherit (lib) mkEnableOption mkOption types; + inherit (lib) mkEnableOption mkOption mkIf types; cfg = config.services.disable-screen; in { @@ -25,7 +25,7 @@ in { }; }; - config = { + config = mkIf cfg.enable { # Disable sleep on lid close. services.logind = let lidSwitchAction = "ignore"; |