fix auto login

This commit is contained in:
Chris Kruining 2025-08-03 22:57:21 +02:00
parent bb94e3632a
commit 79701acc77
Signed by: chris
SSH key fingerprint: SHA256:nG82MUfuVdRVyCKKWqhY+pCrbz9nbX6uzUns4RKa1Pg
5 changed files with 12 additions and 7 deletions

View file

@ -37,11 +37,12 @@ in {
config = { config = {
home.sessionVariables = { home.sessionVariables = {
SHELL = cfg.shell;
EDITOR = cfg.editor; EDITOR = cfg.editor;
TERMINAL = cfg.terminal; TERMINAL = cfg.terminal;
BROWSER = cfg.browser; BROWSER = cfg.browser;
}; };
# home.shell = pkgs.${cfg.shell}; # users.defaultUserShell = pkgs.${cfg.shell};
}; };
} }

View file

@ -13,6 +13,7 @@ in
programs.ghostty = { programs.ghostty = {
enable = true; enable = true;
settings = { settings = {
command = config.${namespace}.defaults.shell;
background-blur-radius = 20; background-blur-radius = 20;
theme = "dark:stylix,light:stylix"; theme = "dark:stylix,light:stylix";
window-theme = (config.${namespace}.themes.polarity or "dark"); window-theme = (config.${namespace}.themes.polarity or "dark");

View file

@ -17,18 +17,12 @@ in
example = "plasma"; example = "plasma";
description = "Which desktop to enable"; description = "Which desktop to enable";
}; };
autoLogin = mkEnableOption "Enable plasma's auto login feature.";
}; };
config = mkMerge [ config = mkMerge [
({ ({
services.displayManager = { services.displayManager = {
enable = true; enable = true;
autoLogin = mkIf cfg.autoLogin {
enable = true;
};
}; };
}) })

View file

@ -11,6 +11,9 @@ in
hardware.bluetooth = { hardware.bluetooth = {
enable = true; enable = true;
powerOnBoot = true; powerOnBoot = true;
settings = {
General.Experimental = true; # Show battery charge of Bluetooth devices
};
}; };
services.pipewire.wireplumber.extraConfig.bluetoothEnhancements = { services.pipewire.wireplumber.extraConfig.bluetoothEnhancements = {

View file

@ -28,5 +28,11 @@
}; };
}; };
services.displayManager.autoLogin = {
enable = true;
user = "chris";
};
system.stateVersion = "23.11"; system.stateVersion = "23.11";
} }