From 59d6325c4fe7af9c6ab813eb5ff3599e9becbadc Mon Sep 17 00:00:00 2001 From: Linnnus Date: Tue, 14 Nov 2023 20:24:19 +0100 Subject: 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... --- modules/nixos/disable-screen/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') 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"; -- cgit v1.2.3