feat: add jovian nixos
This commit is contained in:
parent
1764a421ab
commit
57a9709745
5 changed files with 115 additions and 36 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue