also refactor nixos modules
This commit is contained in:
parent
2471562583
commit
b37c5c0cbd
44 changed files with 10 additions and 2 deletions
35
modules/nixos/desktop/gamescope.nix
Normal file
35
modules/nixos/desktop/gamescope.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption mkForce;
|
||||
|
||||
cfg = config.sneeuwvlok.desktop.gamescope;
|
||||
in {
|
||||
options.sneeuwvlok.desktop.gamescope = {
|
||||
enable =
|
||||
mkEnableOption "Enable Steamdeck ui"
|
||||
// {
|
||||
default = config.sneeuwvlok.desktop.use == "gamescope";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
sneeuwvlok.desktop.plasma.enable = true;
|
||||
|
||||
services.displayManager.sddm.enable = mkForce false;
|
||||
services.displayManager.gdm.enable = mkForce false;
|
||||
|
||||
jovian = {
|
||||
steam = {
|
||||
enable = true;
|
||||
autoStart = true;
|
||||
user = "chris";
|
||||
updater.splash = "steamos";
|
||||
desktopSession = "plasma";
|
||||
};
|
||||
steamos.useSteamOSConfig = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue