deleted generated files

This commit is contained in:
2026-03-19 13:11:42 +00:00
parent e0303ff1b6
commit 4bf4ab8872
30 changed files with 41 additions and 1448 deletions
+41 -21
View File
@@ -1072,36 +1072,56 @@ This is top file of this level which contains just an import statement for all r
{ lib, pkgs, ... }:
let
username = "henrov"; # vervang door je echte gebruikersnaam
programName = "thunar";
# Default user fallback
defaultUser = "henrov";
in
{
flake.nixosModules.thunar = { config, pkgs, lib, ... }:
{
options.mySystem.apps.thunar.enable =
let
# Toggle variable pointing to the option
enableProgram = config.myApps.${programName}.enable or false;
# Package list for Thunar and plugins
thunarPkgs = with pkgs; [
thunar
thunar-volman
thunar-archive-plugin
thunar-media-tags-plugin
tumbler
ffmpegthumbnailer
gvfs
xdg-utils
];
in {
# Top-level toggle option
options.myApps.${programName}.enable =
lib.mkEnableOption "Enable Thunar file manager";
config = lib.mkIf (config.mySystem.apps.thunar.enable or false) {
# Wrap everything in mkIf(enable)
config = lib.mkIf enableProgram {
# --- Home Manager gebruiker ---
home-manager.users.${username} = {
# myApps container
myApps = {
${programName} = {
enable = true;
packages = thunarPkgs;
user = config.defaultUser or defaultUser;
};
};
# Home Manager user configuration
home-manager.users.${config.defaultUser or defaultUser} = {
home.stateVersion = "26.05";
home.username = username;
home.homeDirectory = "/home/${username}";
home.username = config.defaultUser or defaultUser;
home.homeDirectory = "/home/${config.defaultUser or defaultUser}";
home.packages = thunarPkgs;
# --- Thunar en plugins ---
home.packages = with pkgs; [
thunar
thunar-volman
thunar-archive-plugin
thunar-media-tags-plugin
tumbler
ffmpegthumbnailer
gvfs
xdg-utils
];
# --- Default file manager ---
# Default file manager
xdg.mimeApps = {
defaultApplications = {
"inode/directory" = "Thunar.desktop";