Major config overhaul: use custom modules, setup for multi-host config, and less boilerplate

This commit is contained in:
Emmet K
2025-02-09 16:50:26 -06:00
parent 1fa8b17b07
commit 0453901d17
303 changed files with 3560 additions and 5566 deletions

View File

@@ -0,0 +1,22 @@
{ config, lib, pkgs, ... }:
let
cfg = config.userSettings.flatpak;
in {
options = {
userSettings.flatpak = {
enable = lib.mkEnableOption "Enable flatpak support";
};
};
config = lib.mkIf cfg.enable {
home.packages = [ pkgs.flatpak ];
home.sessionVariables = {
XDG_DATA_DIRS = "$XDG_DATA_DIRS:/usr/share:/var/lib/flatpak/exports/share:$HOME/.local/share/flatpak/exports/share"; # lets flatpak work
};
#services.flatpak.enable = true;
#services.flatpak.packages = [ { appId = "com.kde.kdenlive"; origin = "flathub"; } ];
#services.flatpak.update.onActivation = true;
};
}