Update to (somewhat?) dendritic pattern
Heavily inspired by https://github.com/Doc-Steve/dendritic-design-with-flake-parts. > Atomic commits? Never heard of them!
This commit is contained in:
22
modules/factory/autologin.nix
Normal file
22
modules/factory/autologin.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{ inputs, ... }: {
|
||||
config.flake.factory.autologin = username: {
|
||||
imports = with inputs.self.modules.nixos; [
|
||||
];
|
||||
services.getty.autologinUser = username;
|
||||
|
||||
home-manager.sharedModules = [
|
||||
inputs.self.modules.homeManager.autologin
|
||||
];
|
||||
};
|
||||
|
||||
config.flake.modules.homeManager.autologin = {
|
||||
imports = with inputs.self.modules.homeManager; [
|
||||
];
|
||||
|
||||
programs.zsh.profileExtra = ''
|
||||
if [ -z "$WAYLAND_DISPLAY" ] && [ "$XDG_VTNR" = 1 ]; then
|
||||
exec hyprland
|
||||
fi
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user