mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
fix(lint): nixfmt the whole tree
This commit is contained in:
parent
643b136863
commit
bf219a30c2
69 changed files with 2605 additions and 1726 deletions
|
|
@ -1,45 +1,56 @@
|
|||
{ config, pkgs, lib, ...}:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.aviallon.desktop;
|
||||
in {
|
||||
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
|
||||
'';
|
||||
serviceConfig.Type = "oneshot";
|
||||
requires = [
|
||||
"network-online.target"
|
||||
];
|
||||
after = [
|
||||
"network-online.target"
|
||||
];
|
||||
wantedBy = [
|
||||
"graphical.target"
|
||||
];
|
||||
};
|
||||
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
|
||||
'';
|
||||
serviceConfig.Type = "oneshot";
|
||||
requires = [
|
||||
"network-online.target"
|
||||
];
|
||||
after = [
|
||||
"network-online.target"
|
||||
];
|
||||
wantedBy = [
|
||||
"graphical.target"
|
||||
];
|
||||
};
|
||||
|
||||
systemd.services.flatpak-workaround-cursors = {
|
||||
script = ''
|
||||
exec ${pkgs.flatpak}/bin/flatpak override --filesystem=/usr/share/icons/:ro
|
||||
'';
|
||||
serviceConfig.Type = "oneshot";
|
||||
wantedBy = [
|
||||
"graphical.target"
|
||||
];
|
||||
};
|
||||
systemd.services.flatpak-workaround-cursors = {
|
||||
script = ''
|
||||
exec ${pkgs.flatpak}/bin/flatpak override --filesystem=/usr/share/icons/:ro
|
||||
'';
|
||||
serviceConfig.Type = "oneshot";
|
||||
wantedBy = [
|
||||
"graphical.target"
|
||||
];
|
||||
};
|
||||
|
||||
fileSystems =
|
||||
let mkRoSymBind = path: {
|
||||
fileSystems =
|
||||
let
|
||||
mkRoSymBind = path: {
|
||||
device = path;
|
||||
fsType = "none";
|
||||
options = [ "rbind" "ro" "x-gvfs-hide" ];
|
||||
options = [
|
||||
"rbind"
|
||||
"ro"
|
||||
"x-gvfs-hide"
|
||||
];
|
||||
};
|
||||
in {
|
||||
in
|
||||
{
|
||||
"/usr/share/icons" = mkRoSymBind "/run/current-system/sw/share/icons";
|
||||
};
|
||||
}
|
||||
;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue