system: Set flatpak as module

This commit is contained in:
Florian RICHER 2024-10-25 14:46:24 +02:00
parent 06d2aa59d1
commit d8a5045f61
6 changed files with 24 additions and 2 deletions

View file

@ -21,6 +21,7 @@
modules.system = {
apps = {
flatpak.enable = true;
steam.enable = true;
};

View file

@ -33,6 +33,10 @@
};
modules.system = {
apps = {
flatpak.enable = true;
};
desktop = {
plasma.enable = true;
};

View file

@ -2,6 +2,7 @@
{
imports = [
./flatpak
./steam
];
}

View file

@ -0,0 +1,17 @@
{ config, lib, ... }:
with lib;
let
cfg = config.modules.system.apps.flatpak;
in
{
options.modules.system.apps.flatpak = {
enable = mkEnableOption ''
Enable flatpak
'';
};
config = mkIf cfg.enable {
services.flatpak.enable = true; # Important can't be enabled from home-manager
};
}

View file

@ -65,8 +65,6 @@
extraGroups = [ "networkmanager" "wheel" ];
};
services.flatpak.enable = true; # Important can't be enabled from home-manager
# Downloads and provides debug symbols and source code for nix derivations to gdb and other debuginfod-capable debuggers as needed.
# Require https://github.com/symphorien/nixseparatedebuginfod?tab=readme-ov-file#gdb
services.nixseparatedebuginfod.enable = true;

View file

@ -14,6 +14,7 @@ in
virtualisation.docker = {
enable = true;
};
virtualisation.oci-containers.backend = "docker";
users.users.florian.extraGroups = [ "docker" ];
};