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 = {
|
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};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
|
|
|
@ -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;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
|
@ -28,5 +28,11 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
services.displayManager.autoLogin = {
|
||||||
|
enable = true;
|
||||||
|
user = "chris";
|
||||||
|
};
|
||||||
|
|
||||||
system.stateVersion = "23.11";
|
system.stateVersion = "23.11";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue