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 = {
home.sessionVariables = {
SHELL = cfg.shell;
EDITOR = cfg.editor;
TERMINAL = cfg.terminal;
BROWSER = cfg.browser;
};
# home.shell = pkgs.${cfg.shell};
# users.defaultUserShell = pkgs.${cfg.shell};
};
}

View file

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

View file

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

View file

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

View file

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