mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
profiles/nautilus: init from legacy
This commit is contained in:
parent
d72190bee6
commit
a74ca0da0b
5 changed files with 36 additions and 26 deletions
34
profiles/nautilus/default.nix
Normal file
34
profiles/nautilus/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
cfg = config.my.profiles.nautilus;
|
||||
in
|
||||
{
|
||||
options.my.profiles.nautilus = with lib; {
|
||||
enable = mkEnableOption "nautilus profile";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
# enable trash & network-mount
|
||||
services.gvfs.enable = true;
|
||||
|
||||
environment.sessionVariables.NAUTILUS_4_EXTENSION_DIR = "${config.system.path}/lib/nautilus/extensions-4";
|
||||
environment.pathsToLink = [
|
||||
"/share/nautilus-python/extensions"
|
||||
];
|
||||
|
||||
services.gnome.glib-networking.enable = true; # network-mount
|
||||
|
||||
# default-programms
|
||||
xdg.mime.enable = true;
|
||||
xdg.icons.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
gnome.nautilus
|
||||
|
||||
ffmpegthumbnailer # thumbnails
|
||||
gnome.nautilus-python # enable plugins
|
||||
gst_all_1.gst-libav # thumbnails
|
||||
nautilus-open-any-terminal # terminal-context-entry
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue