feat(nixos): autologin and start Hyprland at boot
This commit is contained in:
parent
eee331b384
commit
9eaa1e4670
3 changed files with 12 additions and 0 deletions
|
@ -2,5 +2,6 @@
|
||||||
imports = [
|
imports = [
|
||||||
./programs/hyprland.nix
|
./programs/hyprland.nix
|
||||||
./programs/hyprlock.nix
|
./programs/hyprlock.nix
|
||||||
|
./programs/getty.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
5
systems/modules/programs/getty.nix
Normal file
5
systems/modules/programs/getty.nix
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
services.getty = {
|
||||||
|
autologinUser = "rafiq";
|
||||||
|
};
|
||||||
|
}
|
|
@ -4,5 +4,11 @@
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
enableVteIntegration = true;
|
enableVteIntegration = true;
|
||||||
# TODO: Look into whether we need to add the history attribute
|
# TODO: Look into whether we need to add the history attribute
|
||||||
|
profileExtra = # bash
|
||||||
|
''
|
||||||
|
if [ -z "$WAYLAND_DISPLAY" ] && [ "$XDG_VTNR" -eq 1 ]; then
|
||||||
|
dbus-run-session Hyprland
|
||||||
|
fi
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue