This commit is contained in:
parent
57a949c2bf
commit
4a049d94ce
@ -41,18 +41,4 @@
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
];
|
||||
|
||||
services.flatpak = {
|
||||
enable = true;
|
||||
update.onActivation = true;
|
||||
packages = [
|
||||
"com.heroicgameslauncher.hgl"
|
||||
"com.github.tchx84.Flatseal"
|
||||
"com.obsproject.Studio"
|
||||
"com.usebottles.bottles"
|
||||
"it.mijorus.gearlever"
|
||||
"com.google.AndroidStudio"
|
||||
];
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@ -31,15 +31,4 @@
|
||||
environment.systemPackages = with pkgs; [
|
||||
];
|
||||
|
||||
services.flatpak = {
|
||||
enable = true;
|
||||
update.onActivation = true;
|
||||
packages = [
|
||||
"com.github.tchx84.Flatseal"
|
||||
"com.usebottles.bottles"
|
||||
"it.mijorus.gearlever"
|
||||
"com.google.AndroidStudio"
|
||||
];
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@ -17,6 +17,7 @@
|
||||
./displaymanager
|
||||
./vpn
|
||||
./utilities
|
||||
./flatpak
|
||||
];
|
||||
|
||||
# Timzone and locales (same for all machines so I put it here)
|
||||
|
||||
6
modules/nix/flatpak/default.nix
Normal file
6
modules/nix/flatpak/default.nix
Normal file
@ -0,0 +1,6 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./flatpak.nix
|
||||
];
|
||||
}
|
||||
73
modules/nix/flatpak/flatpak.nix
Normal file
73
modules/nix/flatpak/flatpak.nix
Normal file
@ -0,0 +1,73 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
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 {
|
||||
type = types.submodule {
|
||||
options = {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = "enable flatpak support";
|
||||
};
|
||||
|
||||
gaming.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = "enable gaming flatpaks";
|
||||
};
|
||||
|
||||
dev.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = "enable dev flatpaks";
|
||||
};
|
||||
|
||||
utils.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = "enable utils flatpak";
|
||||
};
|
||||
|
||||
media.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = "enable media flatpak";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf config.smayzy.flatpak.enable {
|
||||
services.flatpak = {
|
||||
enable = true;
|
||||
update.onActivation = true;
|
||||
packages = flatpaks;
|
||||
};
|
||||
};
|
||||
}
|
||||
@ -33,6 +33,12 @@ in
|
||||
blender.enable = true;
|
||||
inkscape.enable = true;
|
||||
komikku.enable = true;
|
||||
flatpak = {
|
||||
enable = true;
|
||||
media = true;
|
||||
dev = true;
|
||||
gaming = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@ -32,6 +32,11 @@ in
|
||||
thunderbird.enable = true;
|
||||
inkscape.enable = true;
|
||||
komikku.enable = true;
|
||||
flatpak = {
|
||||
enable = true;
|
||||
dev.enable = true;
|
||||
media.enable = true;
|
||||
};
|
||||
};
|
||||
services.logind.lidSwitch = "ignore";
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user