fix auto login
This commit is contained in:
parent
bb94e3632a
commit
79701acc77
5 changed files with 12 additions and 7 deletions
|
@ -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};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
})
|
||||
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -28,5 +28,11 @@
|
|||
};
|
||||
};
|
||||
|
||||
|
||||
services.displayManager.autoLogin = {
|
||||
enable = true;
|
||||
user = "chris";
|
||||
};
|
||||
|
||||
system.stateVersion = "23.11";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue