system: Set flatpak as module
This commit is contained in:
parent
06d2aa59d1
commit
d8a5045f61
6 changed files with 24 additions and 2 deletions
|
@ -21,6 +21,7 @@
|
||||||
|
|
||||||
modules.system = {
|
modules.system = {
|
||||||
apps = {
|
apps = {
|
||||||
|
flatpak.enable = true;
|
||||||
steam.enable = true;
|
steam.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,10 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
modules.system = {
|
modules.system = {
|
||||||
|
apps = {
|
||||||
|
flatpak.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
desktop = {
|
desktop = {
|
||||||
plasma.enable = true;
|
plasma.enable = true;
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./flatpak
|
||||||
./steam
|
./steam
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
17
modules/system/apps/flatpak/default.nix
Normal file
17
modules/system/apps/flatpak/default.nix
Normal 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
|
||||||
|
};
|
||||||
|
}
|
|
@ -65,8 +65,6 @@
|
||||||
extraGroups = [ "networkmanager" "wheel" ];
|
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.
|
# 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
|
# Require https://github.com/symphorien/nixseparatedebuginfod?tab=readme-ov-file#gdb
|
||||||
services.nixseparatedebuginfod.enable = true;
|
services.nixseparatedebuginfod.enable = true;
|
||||||
|
|
|
@ -14,6 +14,7 @@ in
|
||||||
virtualisation.docker = {
|
virtualisation.docker = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
virtualisation.oci-containers.backend = "docker";
|
||||||
|
|
||||||
users.users.florian.extraGroups = [ "docker" ];
|
users.users.florian.extraGroups = [ "docker" ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue