mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[Flatpak] workaround bad cursor theme in flatpak apps
Also make flatpak-add-flathub a oneshot servicce
This commit is contained in:
parent
50ed99e303
commit
7fcea8a377
1 changed files with 21 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ in {
|
||||||
script = ''
|
script = ''
|
||||||
exec ${pkgs.flatpak}/bin/flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
exec ${pkgs.flatpak}/bin/flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||||
'';
|
'';
|
||||||
|
serviceConfig.Type = "oneshot";
|
||||||
requires = [
|
requires = [
|
||||||
"network-online.target"
|
"network-online.target"
|
||||||
];
|
];
|
||||||
|
|
@ -20,6 +21,26 @@ in {
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.services.flatpak-workaround-cursors = {
|
||||||
|
script = ''
|
||||||
|
exec ${pkgs.flatpak}/bin/flatpak override --filesystem=/usr/share/icons/:ro
|
||||||
|
'';
|
||||||
|
serviceConfig.Type = "oneshot";
|
||||||
|
wantedBy = [
|
||||||
|
"graphical.target"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
system.fsPackages = [ pkgs.bindfs ];
|
||||||
|
fileSystems =
|
||||||
|
let mkRoSymBind = path: {
|
||||||
|
device = path;
|
||||||
|
fsType = "fuse.bindfs";
|
||||||
|
options = [ "ro" "resolve-symlinks" "x-gvfs-hide" ];
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
"/usr/share/icons" = mkRoSymBind "/run/current-system/sw/share/icons";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue