add server1 and change flatpak to make it works if not defined
nix flake show / show-flake (push) Successful in 40s

This commit is contained in:
smayzy
2025-08-08 22:00:52 +02:00
parent 5798a8bcb2
commit cacd136ca9
7 changed files with 161 additions and 31 deletions
+36 -31
View File
@@ -1,30 +1,6 @@
{ lib, config, ... }:
let
inherit (lib) mkIf mkOption types;
gaming = [
"com.heroicgameslauncher.hgl"
];
dev = [
"com.google.AndroidStudio"
];
utils = [
"com.usebottles.bottles"
"com.github.tchx84.Flatseal"
"it.mijorus.gearlever"
];
media = [
"com.obsproject.Studio"
];
flatpaks =
(if config.smayzy.flatpak.gaming.enable then gaming else [ ])
++ (if config.smayzy.flatpak.dev.enable then dev else [ ])
++ (if config.smayzy.flatpak.utils.enable then utils else [ ])
++ (if config.smayzy.flatpak.media.enable then media else [ ]);
in
{
options.smayzy.flatpak = mkOption {
@@ -61,13 +37,42 @@ in
};
};
};
default = {};
};
config = mkIf config.smayzy.flatpak.enable {
services.flatpak = {
enable = true;
update.onActivation = true;
packages = flatpaks;
};
};
config = mkIf config.smayzy.flatpak.enable (
let
gaming = [
"com.heroicgameslauncher.hgl"
];
dev = [
"com.google.AndroidStudio"
];
utils = [
"com.usebottles.bottles"
"com.github.tchx84.Flatseal"
"it.mijorus.gearlever"
];
media = [
"com.obsproject.Studio"
];
flatpaks =
(if config.smayzy.flatpak.gaming.enable then gaming else [ ])
++ (if config.smayzy.flatpak.dev.enable then dev else [ ])
++ (if config.smayzy.flatpak.utils.enable then utils else [ ])
++ (if config.smayzy.flatpak.media.enable then media else [ ]);
in
{
services.flatpak = {
enable = true;
update.onActivation = true;
packages = flatpaks;
};
}
);
}
+1
View File
@@ -4,5 +4,6 @@
./base.nix
./desktop.nix
./laptop.nix
./server.nix
];
}
+19
View File
@@ -0,0 +1,19 @@
{ lib, config, ... }:
let
inherit (lib) mkIf mkOption types;
in
{
options.smayzy.server.enable = mkOption {
type = types.bool;
default = false;
description = "desktop settings";
};
config = mkIf config.smayzy.server.enable {
smayzy = {
base = true;
power = "desktop";
stylix.enable = true;
};
};
}