From 74cf1d410586ee2c0e3e1c64bfe536866122957a Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Fri, 29 Nov 2024 21:55:58 -0500 Subject: [PATCH] nixosModules: init apps.emudeck --- nixosModules/apps/default.nix | 1 + nixosModules/apps/emudeck/default.nix | 15 +++++++++++++++ nixosModules/options.nix | 1 + 3 files changed, 17 insertions(+) create mode 100644 nixosModules/apps/emudeck/default.nix diff --git a/nixosModules/apps/default.nix b/nixosModules/apps/default.nix index e0267d5c..f49f2c13 100644 --- a/nixosModules/apps/default.nix +++ b/nixosModules/apps/default.nix @@ -1,5 +1,6 @@ { imports = [ + ./emudeck ./firefox ./nicotine-plus ./steam diff --git a/nixosModules/apps/emudeck/default.nix b/nixosModules/apps/emudeck/default.nix new file mode 100644 index 00000000..77f49675 --- /dev/null +++ b/nixosModules/apps/emudeck/default.nix @@ -0,0 +1,15 @@ +{ + config, + lib, + pkgs, + ... +}: { + config = lib.mkIf (config.ar.apps.emudeck.enable) { + environment.systemPackages = with pkgs; [emudeck]; + + ar = { + apps.steam.enable = lib.mkDefault true; + services.flatpak.enable = lib.mkDefault true; + }; + }; +} diff --git a/nixosModules/options.nix b/nixosModules/options.nix index f91bb107..a5ddf128 100644 --- a/nixosModules/options.nix +++ b/nixosModules/options.nix @@ -5,6 +5,7 @@ }: { options.ar = { apps = { + emudeck.enable = lib.mkEnableOption "EmuDeck emulator manager."; firefox.enable = lib.mkEnableOption "Firefox Web Browser."; nicotine-plus.enable = lib.mkEnableOption "Nicotine+ Soulseek client."; podman.enable = lib.mkEnableOption "Podman for OCI container support.";