[General+Flake] convert "default" module directory to subflake

Also move flatpak config from packages to desktop
This commit is contained in:
Antoine Viallon 2023-07-30 21:59:56 +02:00
parent 397282c7c6
commit 6d061dce0e
Signed by: aviallon
GPG key ID: 186FC35EDEB25716
12 changed files with 577 additions and 78 deletions

View file

@ -1,25 +0,0 @@
{ config, pkgs, lib, ...}:
with lib;
let
desktopCfg = config.aviallon.desktop;
in {
config = {}
// {
services.flatpak.enable = mkDefault true;
systemd.services.flatpak-add-flathub = {
script = ''
exec ${pkgs.flatpak}/bin/flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
'';
requires = [
"network-online.target"
];
after = [
"network-online.target"
];
wantedBy = [
"graphical.target"
];
};
}
;
}