mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 17:31:34 +01:00
Separate hm from os config
This commit is contained in:
parent
0630cf387c
commit
78d8069a88
6 changed files with 30 additions and 24 deletions
|
|
@ -2,19 +2,5 @@
|
|||
{
|
||||
options.myConfig.flatpak.enable = lib.mkEnableOption "";
|
||||
|
||||
config = lib.mkIf config.myConfig.flatpak.enable {
|
||||
services.flatpak.enable = true;
|
||||
|
||||
home-manager.sharedModules = [
|
||||
{
|
||||
xdg = {
|
||||
enable = true;
|
||||
systemDirs.data = [
|
||||
"/var/lib/flatpak/exports/share"
|
||||
"/home/seb/.local/share/flatpak/exports/share"
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
config = lib.mkIf config.myConfig.flatpak.enable { services.flatpak.enable = true; };
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue