1
0
mirror of https://github.com/nmasur/dotfiles synced 2025-01-19 00:29:14 +00:00

34 lines
812 B
Nix
Raw Normal View History

2022-05-30 13:18:18 -04:00
{ config, pkgs, lib, ... }: {
2022-12-21 14:18:03 -07:00
options = {
nautilus = {
enable = lib.mkEnableOption {
description = "Enable Nautilus file manager.";
default = false;
};
};
};
2022-05-30 13:18:18 -04:00
# Install Nautilus file manager
2022-12-21 14:18:03 -07:00
config = lib.mkIf (config.gui.enable && config.nautilus.enable) {
2022-05-30 13:18:18 -04:00
home-manager.users.${config.user} = {
home.packages = with pkgs; [
gnome.nautilus
2022-05-30 16:07:43 -04:00
gnome.sushi # Quick preview with spacebar
2022-05-30 13:18:18 -04:00
];
2022-11-14 10:35:16 -05:00
# Set default for opening directories
xdg.mimeApps.defaultApplications."inode/directory" =
[ "nautilus.desktop" ];
2022-11-14 10:35:16 -05:00
programs.fish.functions = {
qr = {
body =
"${pkgs.qrencode}/bin/qrencode $argv[1] -o /tmp/qr.png | ${pkgs.gnome.sushi}/bin/sushi /tmp/qr.png";
};
};
2022-05-30 13:18:18 -04:00
};
};
}