This commit is contained in:
Casper V. Kristensen 2023-10-25 15:03:31 +02:00
parent 43d2e1a0bc
commit 8cceae24f1
2 changed files with 21 additions and 0 deletions

View file

@ -2,6 +2,7 @@
imports = [
./alacritty.nix
./clipman.nix
./flatpak.nix
./gammastep.nix
./network.nix
./pipewire.nix

View file

@ -0,0 +1,20 @@
{ home-manager, ... }: {
# https://flatpak.org/setup/NixOS
# https://nixos.wiki/wiki/Flatpak
services.flatpak.enable = true;
# Add desktop shortcuts for flatpak applications
home-manager.users.caspervk = {
home.sessionVariables = {
XDG_DATA_DIRS = "$XDG_DATA_DIRS:/var/lib/flatpak/exports/share";
};
};
# Persist flatpaks
environment.persistence."/nix/persist" = {
directories = [
{ directory = "/var/lib/flatpak"; user = "root"; group = "root"; mode = "0755"; }
];
};
}