deleted generated files

This commit is contained in:
2026-03-19 13:47:21 +00:00
parent f04414a987
commit 82ed0c419a
30 changed files with 8 additions and 1440 deletions
+8 -59
View File
@@ -131,18 +131,6 @@ The Nix flake definition for Droidnix.
}
#+END_SRC
** =generated/system/mysystem.nix=
This sets the networking.
#+BEGIN_SRC nix :tangle generated/system/mysystem.nix :noweb tangle :mkdirp yes :eval never-html
{ lib, ... }:
{
# Declare a submodule container for all mySystem children
options.mySystem = lib.mkSubmodule {
description = "Root container for all mySystem options";
};
}
#+END_SRC
* Let's define the core of the system
@@ -1012,57 +1000,18 @@ This is top file of this level which contains just an import statement for all r
{ lib, pkgs, config, ... }:
let
programName = "thunar";
enableProgram = config.enableThunar or false;
in
{
options.enableThunar = lib.mkEnableOption "Enable Thunar file manager";
# Default user fallback
defaultUser = "henrov";
# Toggle variable pointing to the option
enableProgram = config.mySystem.${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.mySystem.${programName}.enable =
lib.mkEnableOption "Enable Thunar file manager";
# Wrap everything in mkIf(enable)
config = lib.mkIf enableProgram {
# mySystem container
mySystem = {
${programName} = {
enable = true;
packages = thunarPkgs;
user = config.defaultUser or defaultUser;
};
myApps.thunar = {
user = config.defaultUser or "henrov";
# Add extra Thunar config if needed
};
# Home Manager user configuration
home-manager.users.${config.defaultUser or defaultUser} = {
home.stateVersion = "26.05";
home.username = config.defaultUser or defaultUser;
home.homeDirectory = "/home/${config.defaultUser or defaultUser}";
home.packages = thunarPkgs;
# Default file manager
xdg.mimeApps = {
defaultApplications = {
"inode/directory" = "Thunar.desktop";
};
};
};
packages = [ pkgs.thunar pkgs.thunar-plugins pkgs.xarchiver ];
};
}
#+END_SRC