flatpak
This commit is contained in:
parent
43d2e1a0bc
commit
8cceae24f1
2 changed files with 21 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
./alacritty.nix
|
./alacritty.nix
|
||||||
./clipman.nix
|
./clipman.nix
|
||||||
|
./flatpak.nix
|
||||||
./gammastep.nix
|
./gammastep.nix
|
||||||
./network.nix
|
./network.nix
|
||||||
./pipewire.nix
|
./pipewire.nix
|
||||||
|
|
20
modules/desktop/flatpak.nix
Normal file
20
modules/desktop/flatpak.nix
Normal 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"; }
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue