39 lines
1.1 KiB
Nix
39 lines
1.1 KiB
Nix
# {{{autogen}}}
|
|
{ pkgs, config, lib, ... }:
|
|
|
|
let
|
|
# Resolve the default username from host config
|
|
username = config.defaultUser or "henrov";
|
|
in
|
|
{
|
|
############################
|
|
# System-level packages
|
|
############################
|
|
environment.systemPackages = with pkgs; [
|
|
thunar # main file manager
|
|
thunar-archive-plugin # zip, tar, rar, 7z support
|
|
thunar-volman # auto-mount removable drives
|
|
gvfs # support for external drives and network shares
|
|
xarchiver # optional GUI archive manager
|
|
tumbler # Showing thumbnails
|
|
libmtp
|
|
mtpfs
|
|
jmtpfs
|
|
];
|
|
|
|
############################
|
|
# Home Manager user-level configuration
|
|
############################
|
|
# Direct assignment to the user avoids recursiveUpdate issues
|
|
home-manager.users."${username}" = {
|
|
home.stateVersion = "26.05"; # required
|
|
|
|
home.sessionVariables = {
|
|
FILE_MANAGER = "thunar";
|
|
USERNAME = username;
|
|
};
|
|
};
|
|
# Enable gvfs as a service
|
|
services.gvfs.enable = true;
|
|
}
|