mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-06 12:00:14 +00:00
more stuff
This commit is contained in:
@ -10,7 +10,13 @@ in
|
||||
|
||||
{
|
||||
|
||||
options.nmasur.presets.services.lightdm.enable = lib.mkEnableOption "Lightdm display manager";
|
||||
options.nmasur.presets.services.lightdm = {
|
||||
enable = lib.mkEnableOption "Lightdm display manager";
|
||||
wallpaper = {
|
||||
type = lib.types.path;
|
||||
description = "Wallpaper background image file";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
||||
@ -21,7 +27,7 @@ in
|
||||
displayManager = {
|
||||
lightdm = {
|
||||
enable = true;
|
||||
background = config.wallpaper;
|
||||
background = cfg.wallpaper;
|
||||
|
||||
# Show default user
|
||||
# Also make sure /var/lib/AccountsService/users/<user> has SystemAccount=false
|
||||
|
18
platforms/nixos/modules/nmasur/presets/services/logind.nix
Normal file
18
platforms/nixos/modules/nmasur/presets/services/logind.nix
Normal file
@ -0,0 +1,18 @@
|
||||
{ config, lib, ... }:
|
||||
|
||||
let
|
||||
cfg = config.nmasur.presets.services.logind;
|
||||
in
|
||||
{
|
||||
|
||||
options.nmasur.presets.services.logind.enable = lib.mkEnableOption "Logind power key management";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
||||
# Use power button to sleep instead of poweroff
|
||||
services.logind.powerKey = "suspend";
|
||||
services.logind.powerKeyLongPress = "poweroff";
|
||||
|
||||
};
|
||||
|
||||
}
|
Reference in New Issue
Block a user