34 lines
1020 B
Nix
34 lines
1020 B
Nix
{ pkgs, config, lib, ... }:
|
|
|
|
let
|
|
# Use the default user from host.nix or fallback
|
|
username = config.defaultUser or "henrov";
|
|
in
|
|
{
|
|
#################################
|
|
# System-wide Thunar installation
|
|
#################################
|
|
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
|
|
];
|
|
|
|
#################################
|
|
# Home Manager integration for the user
|
|
#################################
|
|
home-manager.users = lib.recursiveUpdate (config.home-manager.users or {}) {
|
|
"${username}" = {
|
|
home.stateVersion = "26.05"; # required by Home Manager
|
|
|
|
# Environment variables
|
|
home.sessionVariables = {
|
|
FILE_MANAGER = "thunar";
|
|
USERNAME = username;
|
|
};
|
|
};
|
|
};
|
|
}
|