mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[General+Flake] convert "default" module directory to subflake
Also move flatpak config from packages to desktop
This commit is contained in:
parent
397282c7c6
commit
6d061dce0e
12 changed files with 577 additions and 78 deletions
|
|
@ -10,5 +10,6 @@ with lib;
|
|||
./browser.nix
|
||||
./gnome.nix
|
||||
./printing.nix
|
||||
./flatpak.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
25
desktop/flatpak.nix
Normal file
25
desktop/flatpak.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{ config, pkgs, lib, ...}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.aviallon.desktop;
|
||||
in {
|
||||
config = mkIf cfg.enable {
|
||||
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"
|
||||
];
|
||||
};
|
||||
|
||||
}
|
||||
;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue