Format with nixfmt-rfc

This commit is contained in:
DashieTM 2024-08-25 19:10:41 +02:00
parent 8c9f699269
commit a90a9c3a8e
60 changed files with 1756 additions and 1039 deletions

View file

@ -1,4 +1,11 @@
{ lib, config, options, pkgs, ... }: {
{
lib,
config,
options,
pkgs,
...
}:
{
options.mods = {
gnome_services.enable = lib.mkOption {
default = true;
@ -11,17 +18,26 @@
};
};
config = lib.mkIf config.mods.gnome_services.enable
(lib.optionalAttrs (options ? services.gnome.gnome-keyring) {
config = lib.mkIf config.mods.gnome_services.enable (
lib.optionalAttrs (options ? services.gnome.gnome-keyring) {
programs.dconf.enable = true;
services = {
# needed for GNOME services outside of GNOME Desktop
dbus.packages = with pkgs; [ gcr gnome.gnome-settings-daemon ];
dbus.packages = with pkgs; [
gcr
gnome.gnome-settings-daemon
];
gnome.gnome-keyring.enable = true;
gvfs.enable = true;
};
} // lib.optionalAttrs (options ? home.packages) {
home.packages = with pkgs; [ nautilus sushi nautilus-python ];
});
}
// lib.optionalAttrs (options ? home.packages) {
home.packages = with pkgs; [
nautilus
sushi
nautilus-python
];
}
);
}