lemp11: use GNOME and don't hibernate when the lid

...is closed but there is external power
This commit is contained in:
Oliver Davies 2024-12-26 20:03:43 +00:00
parent 675f4c6d92
commit ad08679bf2
3 changed files with 126 additions and 114 deletions

View file

@ -112,6 +112,9 @@
layout = "gb"; layout = "gb";
variant = ""; variant = "";
}; };
displayManager.gdm.enable = true;
desktopManager.gnome.enable = true;
}; };
# Configure console keymap # Configure console keymap

View file

@ -8,6 +8,7 @@
features = { features = {
desktop = { desktop = {
gaming.enable = true; gaming.enable = true;
i3.enable = true;
peek.enable = true; peek.enable = true;
}; };
}; };

View file

@ -1,17 +1,24 @@
{ {
config,
inputs, inputs,
lib,
pkgs, pkgs,
self, self,
username, username,
... ...
}: }:
with lib;
let let
theme = import "${self}/nix/lib/theme" { inherit pkgs; }; theme = import "${self}/nix/lib/theme" { inherit pkgs; };
modifier = "Mod4"; modifier = "Mod4";
in in
{ {
options.features.desktop.i3.enable = mkEnableOption "Enable i3";
config = mkIf config.features.desktop.i3.enable {
services = { services = {
cron = { cron = {
enable = true; enable = true;
@ -146,4 +153,5 @@ in
settings.global.follow = "keyboard"; settings.global.follow = "keyboard";
}; };
}; };
};
} }