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

@ -1,5 +1,6 @@
{ lib
, config
, inputs
, pkgs
, ...
}:
@ -12,11 +13,25 @@ in
options.my.profiles.gaming.enable = mkEnableOption "Enable gaming profile";
config = mkIf cfg.enable {
programs.steam.enable = true;
environment.systemPackages = with pkgs; [
lutris
legendary-gl
mangohud
];
specialisation.gaming.configuration = {
imports = [ inputs.jovian.nixosModules.default ];
environment.persistence."/persist".users.moritz.directories = [
".cache/lutris/"
".config/gamescope"
".local/share/Steam/"
".local/share/lutris/"
];
users.users.moritz.packages = [ pkgs.lutris ];
jovian.steam.enable = true;
jovian.steam.autoStart = true;
jovian.steam.user = "moritz";
jovian.steam.desktopSession = "niri";
my.programs.niri.autoStart = false;
environment.sessionVariables = {
DXVK_HDR = "1";
ENABLE_HDR_WSI = "1";
ENABLE_GAMESCOPE_WSI = "1";
};
};
};
}

View file

@ -45,9 +45,9 @@ in
".config/Signal/"
".config/calibre"
".config/keepassxc"
".local/share/Steam/"
".local/share/zoxide"
".mozilla"
".steam"
"Documents"
"Downloads"
"Music"

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;
};