extra/nautilus: make a separate file for all configurations

This commit is contained in:
Felix Buehler 2022-02-06 14:17:34 +01:00
parent 822afe8a11
commit d7a5727602
2 changed files with 24 additions and 9 deletions

View file

@ -3,9 +3,9 @@ let
unstable = import <nixos-unstable> { config = { allowUnfree = true; }; }; unstable = import <nixos-unstable> { config = { allowUnfree = true; }; };
in in
{ {
imports = [ imports = [
./fonts.nix ./fonts.nix
./nautilus.nix
]; ];
programs.gnome-disks.enable = true; programs.gnome-disks.enable = true;
@ -19,12 +19,7 @@ in
# gnome services # gnome services
services.dbus.packages = [ pkgs.gnome.dconf ]; services.dbus.packages = [ pkgs.gnome.dconf ];
services.udev.packages = [ pkgs.gnome.gnome-settings-daemon ]; services.udev.packages = [ pkgs.gnome.gnome-settings-daemon ];
services.gnome = { services.gnome.gnome-keyring.enable = true;
gnome-keyring.enable = true;
glib-networking.enable = true; # network-mount
};
# enable trash & network-mount
services.gvfs.enable = true;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
adwaita-qt adwaita-qt
@ -43,7 +38,6 @@ in
gnome.file-roller gnome.file-roller
gnome.gnome-calendar gnome.gnome-calendar
gnome.gnome-system-monitor gnome.gnome-system-monitor
gnome.nautilus
gnome.simple-scan gnome.simple-scan
keepassxc keepassxc
keychain keychain
@ -59,7 +53,6 @@ in
qgnomeplatform qgnomeplatform
rhythmbox rhythmbox
simple-scan simple-scan
#spotify
socat socat
sshuttle sshuttle
tdesktop tdesktop

22
extra/nautilus.nix Normal file
View file

@ -0,0 +1,22 @@
{ config, lib, pkgs, ... }:
let
unstable = import <nixos-unstable> { config = { allowUnfree = true; }; };
in
{
# enable trash & network-mount
services.gvfs.enable = true;
environment.sessionVariables.NAUTILUS_EXTENSION_DIR = "${config.system.path}/lib/nautilus/extensions-3.0";
environment.pathsToLink = [
"/share/nautilus-python/extensions"
];
services.gnome.glib-networking.enable = true; # network-mount
environment.systemPackages = with pkgs; [
gnome.nautilus
gnome.nautilus-python
shared-mime-info
unstable.nautilus-open-any-terminal
];
}