feat: add jovian nixos

This commit is contained in:
Moritz Böhme 2025-01-22 09:10:27 +01:00
parent 1764a421ab
commit 57a9709745
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
5 changed files with 115 additions and 36 deletions

View file

@ -11,6 +11,9 @@ let
in
{
options.my.programs.niri.enable = mkEnableOption "niri";
options.my.programs.niri.autoStart = mkEnableOption "auto start niri" // {
default = true;
};
config = mkIf cfg.enable {
users.users.moritz.packages = with pkgs; [
@ -261,14 +264,14 @@ in
alsa.enable = true;
pulse.enable = true;
};
displayManager = {
displayManager = mkIf cfg.autoStart {
autoLogin = {
enable = true;
user = "moritz";
};
defaultSession = "niri";
};
xserver = {
xserver = mkIf cfg.autoStart {
enable = true;
displayManager.lightdm.enable = true;
};