mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
d01e597918
I've also added a little module for version control systems now that I'm finding myself often packaging software.
43 lines
1.3 KiB
Nix
Executable File
43 lines
1.3 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!
|
|
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.
|
|
];
|
|
|
|
# Enable peer-to-peer synchro summoning service.
|
|
my.home.services = {
|
|
syncthing.enable = true;
|
|
};
|
|
|
|
# Clean 'yer home!
|
|
my.env = {
|
|
RECOLL_CONFDIR = "$XDG_DATA_HOME/recoll";
|
|
UNISON = "$XDG_DATA_HOME/unison";
|
|
};
|
|
};
|
|
}
|