nixos-config/modules/desktop/files.nix
Gabriel Arazas 49592d7f01 Use the unstable version for the nth time
I also fixed the long-time occuring error when using the newest version
of the channel (or the unstable one). It turns out to be a simple type
error with the `my.user' attribute. (To be honest the error messages are
quite horrible.)

On another note, I also accidentally bricked my NixOS setup after a
garbage collection and a horrible update. The breakage includes not
being able to use any of the builtin tools of Nix (e.g., nix, nix-env,
nixos-rebuild) due to a shared library error that has been garbage
collected. Which means I have to reinstall it.
(I seem to have a talent for breaking things, if only I'm paid for it.)
2020-10-05 09:38:58 +08:00

39 lines
1.2 KiB
Nix
Executable File

# A set of tools related to files: managing metadata, backing them up, filesystems, and whatnot.
{ config, options, lib, pkgs, ... }:
with lib;
let
cfg = config.modules.desktop.files;
in {
options.modules.desktop.files = {
enable = mkOption {
type = types.bool;
default = false;
};
};
config = mkIf cfg.enable {
my.packages = with pkgs; [
exiftool # A file metadata reader/writer/manager/helicopter.
(recoll.override {
withGui = false;
}) # Bring the search engine to the desktop!
unison
magic-wormhole # Magically transfer stuff between your wormholes!
qbittorrent # Free version of uBittorrent.
transmission # One of the components for sailing the high seas.
syncthing # A peer-to-peer synchro summoning.
xfce.thunar # A graphical file manager.
xfce.thunar-volman # A Thunar plugin on volume management for external devices.
udiskie # An automounter for external devices with authentication.
];
# Clean 'yer home!
my.env = {
RECOLL_CONFDIR = "$XDG_DATA_HOME/recoll";
UNISON = "$XDG_DATA_HOME/unison";
};
};
}