Regenerated
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
{ lib, pkgs, config, ... }:
|
||||
|
||||
let
|
||||
enableProgram = config.enableThunar or false;
|
||||
username = config.defaultUser or "henrov";
|
||||
in
|
||||
{
|
||||
# Top-level toggle
|
||||
options.enableThunar = lib.mkEnableOption "Enable Thunar file manager";
|
||||
|
||||
# Only apply config if enabled
|
||||
config = lib.mkIf enableProgram {
|
||||
# Install Thunar and related packages system-wide
|
||||
environment.systemPackages = [
|
||||
pkgs.thunar
|
||||
pkgs.thunar-plugins
|
||||
pkgs.xarchiver
|
||||
];
|
||||
|
||||
# Remove invalid top-level 'home' reference
|
||||
# If you want sessionVariables, define them in Home Manager instead
|
||||
# Example for Home Manager:
|
||||
# home-manager.users.${username}.sessionVariables = {
|
||||
# FILE_MANAGER = "thunar";
|
||||
# USERNAME = username;
|
||||
# };
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user