2021-01-11 22:50:18 +04:00
|
|
|
{ config, pkgs, lib, ... }: {
|
2021-06-06 11:24:23 +04:00
|
|
|
services.gnome = {
|
2021-01-11 22:50:18 +04:00
|
|
|
core-os-services.enable = true;
|
|
|
|
core-utilities.enable = true;
|
2021-01-12 16:13:03 +04:00
|
|
|
evolution-data-server.enable = true;
|
2021-01-11 22:50:18 +04:00
|
|
|
sushi.enable = true;
|
|
|
|
tracker.enable = true;
|
|
|
|
tracker-miners.enable = true;
|
|
|
|
gnome-settings-daemon.enable = true;
|
|
|
|
glib-networking.enable = true;
|
2021-10-23 20:48:36 +04:00
|
|
|
# pass-secret-service is used instead
|
2022-06-02 21:54:49 +04:00
|
|
|
gnome-keyring.enable = lib.mkForce false;
|
2021-01-12 16:13:03 +04:00
|
|
|
gnome-online-accounts.enable = true;
|
|
|
|
gnome-online-miners.enable = true;
|
2021-01-11 22:50:18 +04:00
|
|
|
};
|
2021-01-20 18:54:50 +04:00
|
|
|
|
2022-06-02 21:54:49 +04:00
|
|
|
environment.systemPackages = [ pkgs.pass-secret-service ];
|
2023-01-20 20:09:41 +04:00
|
|
|
|
2023-01-24 17:51:04 +04:00
|
|
|
environment.gnome.excludePackages = [ pkgs.gnome-console pkgs.gnome.evince pkgs.gnome.eog ];
|
2023-01-20 20:09:41 +04:00
|
|
|
|
2022-06-02 21:54:49 +04:00
|
|
|
services.dbus.packages = [ pkgs.pass-secret-service ];
|
|
|
|
xdg.portal.extraPortals = [ pkgs.pass-secret-service ];
|
|
|
|
|
2021-01-11 22:50:18 +04:00
|
|
|
services.gvfs.enable = true;
|
|
|
|
services.geoclue2.enable = true;
|
2021-06-08 20:35:21 +04:00
|
|
|
|
2021-06-11 15:52:11 +04:00
|
|
|
fileSystems = with config.persist;
|
|
|
|
lib.mkIf enable (builtins.listToAttrs (map (name: {
|
|
|
|
inherit name;
|
|
|
|
value.options = [ "x-gvfs-hide" ];
|
|
|
|
}) (state.directories ++ cache.directories ++ derivative.directories)));
|
2021-06-08 20:35:21 +04:00
|
|
|
|
2021-06-14 12:57:39 +04:00
|
|
|
defaultApplications = {
|
|
|
|
monitor = {
|
2022-10-10 17:28:36 +04:00
|
|
|
cmd = "${pkgs.gnome.gnome-system-monitor}/bin/gnome-system-monitor";
|
2021-06-14 12:57:39 +04:00
|
|
|
desktop = "gnome-system-monitor";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-06-11 15:52:11 +04:00
|
|
|
home-manager.users.balsoft = {
|
2021-10-19 03:20:13 +04:00
|
|
|
services.pass-secret-service.enable = true;
|
|
|
|
|
2021-10-23 20:48:36 +04:00
|
|
|
systemd.user.services.pass-secret-service = {
|
|
|
|
Service = {
|
|
|
|
Type = "dbus";
|
2022-02-16 14:31:15 +04:00
|
|
|
Environment = [ "GPG_TTY=/dev/tty1" "DISPLAY=:0" ];
|
2021-10-23 20:48:36 +04:00
|
|
|
BusName = "org.freedesktop.secrets";
|
|
|
|
};
|
|
|
|
Unit = rec {
|
2022-06-02 21:54:49 +04:00
|
|
|
Wants = [ "gpg-agent.service" ];
|
2021-10-23 20:48:36 +04:00
|
|
|
After = Wants;
|
|
|
|
PartOf = [ "graphical-session-pre.target" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 22:50:18 +04:00
|
|
|
home.activation.gnome = ''
|
|
|
|
$DRY_RUN_CMD mkdir -p "$XDG_CONFIG_HOME/goa-1.0"
|
2021-06-11 15:52:11 +04:00
|
|
|
$DRY_RUN_CMD ln -sf ${
|
|
|
|
./accounts.conf
|
|
|
|
} "$XDG_CONFIG_HOME/goa-1.0/accounts.conf"
|
2021-01-11 22:50:18 +04:00
|
|
|
$DRY_RUN_CMD mkdir -p "$XDG_CONFIG_HOME/evolution/sources"
|
2021-06-11 15:52:11 +04:00
|
|
|
$DRY_RUN_CMD ln -sf ${
|
|
|
|
./nextcloud.source
|
|
|
|
} "$XDG_CONFIG_HOME/evolution/sources/nextcloud.source"
|
2021-01-11 22:50:18 +04:00
|
|
|
'';
|
|
|
|
|
|
|
|
dconf.settings = {
|
|
|
|
"org/gnome/nautilus/icon-view" = {
|
|
|
|
captions = [ "size" "date_modified" "none" ];
|
|
|
|
};
|
|
|
|
"org/gnome/nautilus/list-view" = {
|
|
|
|
default-column-order = [
|
|
|
|
"name"
|
|
|
|
"size"
|
|
|
|
"type"
|
|
|
|
"owner"
|
|
|
|
"group"
|
|
|
|
"permissions"
|
|
|
|
"where"
|
|
|
|
"date_modified"
|
|
|
|
"date_modified_with_time"
|
|
|
|
"date_accessed"
|
|
|
|
"recency"
|
|
|
|
"starred"
|
|
|
|
"detailed_type"
|
|
|
|
];
|
|
|
|
default-visible-columns = [ "name" "size" "date_modified" "starred" ];
|
|
|
|
};
|
|
|
|
"org/gnome/nautilus/preferences" = {
|
|
|
|
default-folder-viewer = "list-view";
|
|
|
|
executable-text-activation = "display";
|
|
|
|
search-filter-time-type = "last_modified";
|
|
|
|
search-view = "list-view";
|
|
|
|
show-image-thumbnails = "always";
|
|
|
|
thumbnail-limit = 10;
|
|
|
|
};
|
|
|
|
|
2021-06-11 15:52:11 +04:00
|
|
|
"org/gnome/evince/default" = { inverted-colors = true; };
|
2021-01-11 22:50:18 +04:00
|
|
|
|
|
|
|
"org/gnome/maps" = {
|
|
|
|
night-mode = true;
|
|
|
|
transportation-type = "car";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|