From 33a6f7fd72f3ee5c1f7209aabb8712bcb83bbe5e Mon Sep 17 00:00:00 2001 From: "info@data-pro.nu" Date: Fri, 27 Mar 2026 14:59:11 +0000 Subject: [PATCH] Regenerated --- Droidnix/README.html | 669 +++++++++--------- Droidnix/README.org | 69 +- Droidnix/generated/hosts/traveldroid/host.nix | 32 +- .../modules/traveldroid/apps/wofi.nix | 37 +- 4 files changed, 345 insertions(+), 462 deletions(-) diff --git a/Droidnix/README.html b/Droidnix/README.html index 99d579b10..5524f0e99 100644 --- a/Droidnix/README.html +++ b/Droidnix/README.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Droidnix: A Dendritic NixOS + Home Manager Configuration NixOS Configuration Structure @@ -204,126 +204,126 @@

Table of Contents

-
-

Shortcuts

-
+
+

Shortcuts

+

Introduction The Assets Folder @@ -339,26 +339,26 @@

Introduction   intro

-
-

What is Droidnix

-
+
+

What is Droidnix

+

Droidnix is a modular, declarative NixOS + Home Manager configuration system. It allows users to choose between Hyprland and Mangowc as their window manager, with shared and WM-specific configurations managed via Emacs Org and Nix Flakes. The project is designed for reproducibility, maintainability, and cross-machine compatibility.

-
-

Installed components:

-
+
+

Installed components:

+
    -
  • Core
  • -
  • Hyprland
  • -
  • Mangowc
  • +
  • Core
  • +
  • Hyprland
  • +
  • Mangowc
-
-

Goals, project Structure, import hierarchy

-
+
+

Goals, project Structure, import hierarchy

+

This project uses a modular NixOS configuration with Hyprland and MangoWC support, designed for literate programming and cross-device reusability. The Droidnix repository is organized into two main parts: @@ -371,9 +371,9 @@ The Droidnix repository is organized into two main parts:

-
-

Root Level

-
+
+

Root Level

+
  • flake.nix is the entry point and imports:
      @@ -384,16 +384,16 @@ The Droidnix repository is organized into two main parts:
-
-

Generated Structure

-
+
+

Generated Structure

+

The generated/ directory contains all generated configurations, divided into three main groups: system, hyprland, and mangowc.

-
-

First Setup

-
+
+

First Setup

+
  1. Clone this repository.
  2. Run the setup script: ./setup_droid.
  3. @@ -423,9 +423,9 @@ The .assets/ folder contains all static files, such as configs, scr This section contains the Org blocks for tangling Nix code into the generated folders.

-
-

flake.nix

-
+
+

flake.nix

+

The Nix flake definition for Droidnix.

@@ -490,9 +490,9 @@ The Nix flake definition for Droidnix.
-
-

generated/hosts/traveldroid/host.nix

-
+
+

generated/hosts/traveldroid/host.nix

+
{ lib, config, pkgs, flakeRoot, import-tree, home-manager, ... }:
 
@@ -507,38 +507,12 @@ let
 
   allModules = hostModules.imports ++ globalUsers.imports;
 
-  #########################################################
-  # Merge all _module.args.hmUsers safely
-  #########################################################
-  mergedHmUsers = lib.mkMerge (
-    builtins.concatLists (
-      map (m:
-        if builtins.hasAttr "args" m && builtins.hasAttr "hmUsers" m.args
-        then [ m.args.hmUsers ]  # wrap in singleton list
-        else []
-      ) allModules
-    )
-  );
-
-  #########################################################
-  # Add activation to ensure all parent directories exist
-  #########################################################
-  mergedHmUsersWithDirs = lib.mapAttrs (_: userCfg: userCfg // {
-    home.activation.ensureDirs = lib.hm.dag.entryAfter ["writeBoundary"] (let
-      ensureDirs = files: lib.mapAttrs (_: path: ''
-        mkdir -p $(dirname $HOME/${path})
-      '') files;
-    in
-      ensureDirs (builtins.attrNames (userCfg.home.file or {}))
-    );
-  }) mergedHmUsers;
-
 in
 {
   #################################
   # Core system config
   #################################
-  networking.hostName = hostname;
+  networking.hostName = hostname;    # <-- set hostname here
   system.stateVersion = "26.05";
 
   #################################
@@ -558,8 +532,8 @@ in
   home-manager.useGlobalPkgs = true;
   home-manager.useUserPackages = true;
 
-  # Apply merged users with automatic directory creation
-  home-manager.users = mergedHmUsersWithDirs;
+  # Each module sets its own home-manager.users; no manual merging needed
+  # NixOS module system will merge them automatically
 
   #################################
   # System packages & programs
@@ -574,9 +548,9 @@ in
 
-
-

generated/hosts/traveldroid/hardware-configuration.nix

-
+
+

generated/hosts/traveldroid/hardware-configuration.nix

+
  1. Boot into NixOS Live ISO or your installed system.
  2. Open a terminal.
  3. @@ -634,9 +608,9 @@ in
-
-

generated/hosts/traveldroid/boot.nix

-
+
+

generated/hosts/traveldroid/boot.nix

+
{ config, pkgs, lib, flakeRoot, ... }:
 
@@ -688,17 +662,17 @@ in
 
-
-

Following are the imported modules

+
+

Following are the imported modules

-
-

generated/traveldroid/modules/apps

-
+
+

generated/traveldroid/modules/apps

+
-
-

generated/modules/traveldroid/apps/packages.nix

-
+
+

generated/modules/traveldroid/apps/packages.nix

+

This installs a list of apps

@@ -762,9 +736,9 @@ in {
-
-

generated/assets/packages.conf

-
+
+

generated/assets/packages.conf

+

This is a list of additional apps to install

@@ -825,9 +799,9 @@ vlc
-
-

generated/modules/traveldroid/apps/kitty.nix

-
+
+

generated/modules/traveldroid/apps/kitty.nix

+

This file sets up Kitty terminal

@@ -889,9 +863,9 @@ in
-
-

.config/kitty/Catppuccin-Mocha.conf

-
+
+

.config/kitty/Catppuccin-Mocha.conf

+

These are config files for .config/kitty

@@ -982,9 +956,9 @@ color15 #a6adc8
-
-

.config/kitty/kitty.conf

-
+
+

.config/kitty/kitty.conf

+

These are config files for .config/kitty

@@ -1006,9 +980,9 @@ font_size 10.0
-
-

generated/modules/traveldroid/apps/starship.nix

-
+
+

generated/modules/traveldroid/apps/starship.nix

+

This file sets up starship prompt

@@ -1048,9 +1022,9 @@ in
-
-

.config/starship.toml

-
+
+

.config/starship.toml

+

These are config files for .config

@@ -1339,9 +1313,9 @@ crust = "#181926"
-
-

generated/modules/traveldroid/apps/thunar.nix

-
+
+

generated/modules/traveldroid/apps/thunar.nix

+

This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder

@@ -1381,55 +1355,42 @@ in
-
-

generated/modules/traveldroid/apps/wofi.nix

-
+
+

generated/modules/traveldroid/apps/wofi.nix

+

This is the install for Wofi, the launcher

-
{ lib, config, pkgs, flakeRoot, home-manager, ... }:
+
{ lib, config, pkgs, flakeRoot, ... }:
 
 let
-  programName = "wofi";
   username = config.defaultUser or "henrov";
   assetPath = "${flakeRoot}/generated/.config/wofi";
 in
 {
-  # Install Wofi via system packages
-  environment.systemPackages = [
-    pkgs.wofi
-  ];
-
-  _module.args.hmUsers = {
-      ${username} = {
-
-        home.file = {
-          ".config/wofi/config" = {
-            source = "${assetPath}/config";
-            force = true; # overwrite existing
-          };
-          ".config/wofi/style.css" = {
-            source = "${assetPath}/style.css";
-            force = true; # overwrite existing
-          };
+  home-manager.users = {
+    ${username} = {
+      home.file = {
+        ".config/wofi/config" = {
+          source = "${assetPath}/config";
+          force = true;
+        };
+        ".config/wofi/style.css" = {
+          source = "${assetPath}/style.css";
+          force = true;
         };
-
-        # Ensure ~/.config/wofi exists before writing files
-        home.activation.fixWofiDir = lib.hm.dag.entryAfter ["writeBoundary"] ''
-          mkdir -p $HOME/.config/wofi
-          chmod -R u+rwx $HOME/.config/wofi
-        '';
       };
     };
+  };
 }
 
-
-

.config/wofi/config

-
+
+

.config/wofi/config

+

These are config files for .config/wofi

@@ -1476,9 +1437,9 @@ prompt = >
-
-

.config/wofi/style.css

-
+
+

.config/wofi/style.css

+

These are config files for .config/wofi #+BEGINSRC css :tangle generated/.config/wofi/style.css :noweb yes :mkdirp yes :eval never @@ -1508,9 +1469,9 @@ These are config files for .config/wofi

-
-

{

-
+
+

{

+

background-color: transparent; color: @text; @@ -1587,9 +1548,9 @@ These are config files for .config/wofi #+ENDSRC

-
-

generated/modules/traveldroid/apps/zenbrowser.nix

-
+
+

generated/modules/traveldroid/apps/zenbrowser.nix

+

This installs zen browser

@@ -1609,9 +1570,9 @@ in
-
-

generated/modules/traveldroid/apps/zsh.nix

-
+
+

generated/modules/traveldroid/apps/zsh.nix

+

This sets up the zsh in the terminal

@@ -1667,9 +1628,9 @@ in
-
-

=generated/.config/zsh/.zshrc

-
+
+

=generated/.config/zsh/.zshrc

+

This sets up the zsh in the terminal

@@ -1704,9 +1665,9 @@ fi
-
-

generated/modules/traveldroid/apps/emacs/emacs.nix

-
+
+

generated/modules/traveldroid/apps/emacs/emacs.nix

+

This installs emacs

@@ -1802,9 +1763,9 @@ in
-
-

generated/.config/emacs/early-init.el

-
+
+

generated/.config/emacs/early-init.el

+

This contaions emacs

@@ -1905,9 +1866,9 @@ package-archive-priorities '(("gnu" . 99)
-
-

generated/.config/emacs/init.el

-
+
+

generated/.config/emacs/init.el

+

This contaions emacs

@@ -2318,13 +2279,13 @@ the top of the file."
-
-

generated/modules/traveldroid/desktop

-
+
+

generated/modules/traveldroid/desktop

+
-
-

generated/modules/traveldroid/desktop/fonts.nix

-
+
+

generated/modules/traveldroid/desktop/fonts.nix

+

This file installs and configures fonts

@@ -2342,9 +2303,9 @@ This file installs and configures fonts
-
-

generated/modules/traveldroid/desktop/gtk.nix

-
+
+

generated/modules/traveldroid/desktop/gtk.nix

+

Setting up GTK

@@ -2370,9 +2331,9 @@ in
-
-

generated/modules/traveldroid/desktop/hyprland.nix

-
+
+

generated/modules/traveldroid/desktop/hyprland.nix

+

Setting up Hyprland

@@ -2419,9 +2380,9 @@ in
-
-

.config/hypr/animations.conf

-
+
+

.config/hypr/animations.conf

+

These are config files for .config/hypr

@@ -2442,9 +2403,9 @@ animations {
-
-

.config/hypr/behaviour.conf

-
+
+

.config/hypr/behaviour.conf

+

These are config files for .config/hypr

@@ -2486,9 +2447,9 @@ misc {
-
-

.config/hypr/bindings.conf

-
+
+

.config/hypr/bindings.conf

+

These are config files for .config/hypr

@@ -2651,9 +2612,9 @@ bind = $mainMod, W, exec, zen
-
-

.config/hypr/exec-once.conf

-
+
+

.config/hypr/exec-once.conf

+

These are config files for .config/hypr

@@ -2667,9 +2628,9 @@ exec-once = bash -c "sleep 5 && waybar"
-
-

.config/hypr/hypridle.conf

-
+
+

.config/hypr/hypridle.conf

+

These are config files for .config/hypr

@@ -2694,9 +2655,9 @@ listener {
-
-

.config/hypr/hyprland.conf

-
+
+

.config/hypr/hyprland.conf

+

These are config files for .config/hypr

@@ -2743,9 +2704,9 @@ misc {
-
-

.config/hypr/hyprlock.conf

-
+
+

.config/hypr/hyprlock.conf

+

These are config files for .config/hypr

@@ -2786,9 +2747,9 @@ label {
-
-

.config/hypr/layer-rules.conf

-
+
+

.config/hypr/layer-rules.conf

+

These are config files for .config/hypr

@@ -2803,9 +2764,9 @@ layerrule = blur on, ignore_alpha 1, match:namespace swaync-notification-window
-
-

.config/hypr/layout.conf

-
+
+

.config/hypr/layout.conf

+

These are config files for .config/hypr

@@ -2815,9 +2776,9 @@ These are config files for .config/hypr
-
-

.config/hypr/monitor-rules.conf

-
+
+

.config/hypr/monitor-rules.conf

+

These are config files for .config/hypr

@@ -2828,9 +2789,9 @@ monitor=DP-1,3840x1080@144,1920x0,1
-
-

.config/hypr/scripts/layout-selector.sh

-
+
+

.config/hypr/scripts/layout-selector.sh

+

These are config files for .config/hypr/scripts

@@ -2873,9 +2834,9 @@ hyprctl dispatch oSD "Layout: $LAYOUT_NAME" 2000
-
-

.config/hypr/theming.conf

-
+
+

.config/hypr/theming.conf

+

These are config files for .config/hypr

@@ -2924,9 +2885,9 @@ decoration {
-
-

.config/hypr/window-rules.conf

-
+
+

.config/hypr/window-rules.conf

+

These are config files for .config/hypr

@@ -2950,9 +2911,9 @@ windowrulev2 = floatclass:Wofi,opacity:0.9,blur:15
-
-

.config/hypr/workspace-rules.conf

-
+
+

.config/hypr/workspace-rules.conf

+

These are config files for .config/hypr

@@ -2991,9 +2952,9 @@ workspace {
-
-

generated/modules/traveldroid/desktop/wallpaper.nix

-
+
+

generated/modules/traveldroid/desktop/wallpaper.nix

+

Setting up wallpaper engine + wallpaper gui

@@ -3048,9 +3009,9 @@ in
-
-

generated/modules/traveldroid/desktop/stylix.nix

-
+
+

generated/modules/traveldroid/desktop/stylix.nix

+
{ lib, config, pkgs, flakeRoot, stylix, ... }:
 
@@ -3142,9 +3103,9 @@ in
 
-
-

.config/stylix/stylix.conf

-
+
+

.config/stylix/stylix.conf

+

These are config files for .config/stylix

@@ -3181,9 +3142,9 @@ icons = {
-
-

.config/stylix/palette.json

-
+
+

.config/stylix/palette.json

+

These are config files for .config/stylix

@@ -3213,9 +3174,9 @@ These are config files for .config/stylix
-
-

.config/stylix/palette.html

-
+
+

.config/stylix/palette.html

+

These are config files for .config/stylix

@@ -3293,9 +3254,9 @@ These are config files for .config/stylix
-
-

generated/modules/traveldroid/desktop/waybar.nix

-
+
+

generated/modules/traveldroid/desktop/waybar.nix

+

This file installs and configures waybar

@@ -3348,9 +3309,9 @@ in
-
-

.config/waybar/config

-
+
+

.config/waybar/config

+

These are config files for waybar

@@ -3473,9 +3434,9 @@ These are config files for waybar
-
-

.config/waybar/style.css

-
+
+

.config/waybar/style.css

+

These are config files for waybar #+BEGINSRC css :tangle generated/.config/waybar/config :noweb yes :mkdirp yes :eval never @@ -3498,9 +3459,9 @@ These are config files for waybar

-
-

{

-
+
+

{

+

font-family: Aporetic Sans Mono, @@ -3782,9 +3743,9 @@ window#waybar { #+ENDSRC

-
-

.config/waypaper/config.ini

-
+
+

.config/waypaper/config.ini

+

These are config files for waypaper

@@ -3821,9 +3782,9 @@ keybindings = ~/.config/waypaper/keybindings.ini
-
-

generated/modules/traveldroid/desktop/wayland.nix

-
+
+

generated/modules/traveldroid/desktop/wayland.nix

+
{ lib, config, pkgs, ... }:
 
@@ -3853,9 +3814,9 @@ keybindings = ~/.config/waypaper/keybindings.ini
 
-
-

generated/modules/traveldroid/desktop/xdg.nix

-
+
+

generated/modules/traveldroid/desktop/xdg.nix

+

This sets the XDG implementation

@@ -3908,13 +3869,13 @@ in
-
-

generated/modules/traveldroid/system

-
+
+

generated/modules/traveldroid/system

+
-
-

generated/modules/traveldroid/system/bluetooth.nix

-
+
+

generated/modules/traveldroid/system/bluetooth.nix

+
{ lib, config, pkgs, flakeRoot, home-manager, ... }:
 
@@ -3955,9 +3916,9 @@ in
 
-
-

generated/modules/traveldroid/system/dbus.nix

-
+
+

generated/modules/traveldroid/system/dbus.nix

+

This sets the dbus implementation

@@ -3984,9 +3945,9 @@ This sets the dbus implementation
-
-

generated/modules/traveldroid/system/login-tuigreet.nix

-
+
+

generated/modules/traveldroid/system/login-tuigreet.nix

+

This sets up tuigreeter which is not fancy but imo fits the aesthetic I am aiming for

@@ -4040,9 +4001,9 @@ in
-
-

generated/modules/traveldroid/system/networking.nix

-
+
+

generated/modules/traveldroid/system/networking.nix

+

This sets the networking.

@@ -4106,9 +4067,9 @@ This sets the networking.
-
-

generated/modules/traveldroid/system/nix.nix

-
+
+

generated/modules/traveldroid/system/nix.nix

+
{ lib, config, ... }:
 
@@ -4125,13 +4086,13 @@ This sets the networking.
 
-
-

generated/users

-
+
+

generated/users

+
-
-

generated/parked/users/copy_config_2_config.nix

-
+
+

generated/parked/users/copy_config_2_config.nix

+

This copies stuff to the user home-folder

@@ -4182,9 +4143,9 @@ in
-
-

generated/users/henrov.nix

-
+
+

generated/users/henrov.nix

+

This is the default user, just search and replace henrov another name if you want to change

@@ -4239,9 +4200,9 @@ in

These are all the prepared config files

-
-

.config/waybar/style.css

-
+
+

.config/waybar/style.css

+

These are config files for .config/waybar #+BEGINSRC css :tangle generated/.config/waybar/style.css :noweb yes :mkdirp yes :eval never @@ -4264,9 +4225,9 @@ These are config files for .config/waybar

-
-

{

-
+
+

{

+

font-family: Aporetic Sans Mono, @@ -4545,9 +4506,9 @@ window#waybar { #+ENDSRC

-
-

.config/waypaper/config.ini

-
+
+

.config/waypaper/config.ini

+

These are config files for .config/waypaper

@@ -4584,9 +4545,9 @@ keybindings = ~/.config/waypaper/keybindings.ini
-
-

.config/zed/settings.json

-
+
+

.config/zed/settings.json

+

These are config files for .config/zed

@@ -4626,7 +4587,7 @@ These are config files for .config/zed

Author: Henro Veijer

-

Created: 2026-03-27 Fri 14:52

+

Created: 2026-03-27 Fri 14:59

Validate

diff --git a/Droidnix/README.org b/Droidnix/README.org index 7e22f8c2e..d0ff4dac5 100644 --- a/Droidnix/README.org +++ b/Droidnix/README.org @@ -141,38 +141,12 @@ let allModules = hostModules.imports ++ globalUsers.imports; - ######################################################### - # Merge all _module.args.hmUsers safely - ######################################################### - mergedHmUsers = lib.mkMerge ( - builtins.concatLists ( - map (m: - if builtins.hasAttr "args" m && builtins.hasAttr "hmUsers" m.args - then [ m.args.hmUsers ] # wrap in singleton list - else [] - ) allModules - ) - ); - - ######################################################### - # Add activation to ensure all parent directories exist - ######################################################### - mergedHmUsersWithDirs = lib.mapAttrs (_: userCfg: userCfg // { - home.activation.ensureDirs = lib.hm.dag.entryAfter ["writeBoundary"] (let - ensureDirs = files: lib.mapAttrs (_: path: '' - mkdir -p $(dirname $HOME/${path}) - '') files; - in - ensureDirs (builtins.attrNames (userCfg.home.file or {})) - ); - }) mergedHmUsers; - in { ################################# # Core system config ################################# - networking.hostName = hostname; + networking.hostName = hostname; # <-- set hostname here system.stateVersion = "26.05"; ################################# @@ -192,8 +166,8 @@ in home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; - # Apply merged users with automatic directory creation - home-manager.users = mergedHmUsersWithDirs; + # Each module sets its own home-manager.users; no manual merging needed + # NixOS module system will merge them automatically ################################# # System packages & programs @@ -955,40 +929,27 @@ in ** =generated/modules/traveldroid/apps/wofi.nix= This is the install for Wofi, the launcher #+BEGIN_SRC nix :tangle generated/modules/traveldroid/apps/wofi.nix :noweb yes :mkdirp yes :eval never -{ lib, config, pkgs, flakeRoot, home-manager, ... }: +{ lib, config, pkgs, flakeRoot, ... }: let - programName = "wofi"; username = config.defaultUser or "henrov"; assetPath = "${flakeRoot}/generated/.config/wofi"; in { - # Install Wofi via system packages - environment.systemPackages = [ - pkgs.wofi - ]; - - _module.args.hmUsers = { - ${username} = { - - home.file = { - ".config/wofi/config" = { - source = "${assetPath}/config"; - force = true; # overwrite existing - }; - ".config/wofi/style.css" = { - source = "${assetPath}/style.css"; - force = true; # overwrite existing - }; + home-manager.users = { + ${username} = { + home.file = { + ".config/wofi/config" = { + source = "${assetPath}/config"; + force = true; + }; + ".config/wofi/style.css" = { + source = "${assetPath}/style.css"; + force = true; }; - - # Ensure ~/.config/wofi exists before writing files - home.activation.fixWofiDir = lib.hm.dag.entryAfter ["writeBoundary"] '' - mkdir -p $HOME/.config/wofi - chmod -R u+rwx $HOME/.config/wofi - ''; }; }; + }; } #+END_SRC diff --git a/Droidnix/generated/hosts/traveldroid/host.nix b/Droidnix/generated/hosts/traveldroid/host.nix index b2aea1508..360710723 100644 --- a/Droidnix/generated/hosts/traveldroid/host.nix +++ b/Droidnix/generated/hosts/traveldroid/host.nix @@ -11,38 +11,12 @@ let allModules = hostModules.imports ++ globalUsers.imports; - ######################################################### - # Merge all _module.args.hmUsers safely - ######################################################### - mergedHmUsers = lib.mkMerge ( - builtins.concatLists ( - map (m: - if builtins.hasAttr "args" m && builtins.hasAttr "hmUsers" m.args - then [ m.args.hmUsers ] # wrap in singleton list - else [] - ) allModules - ) - ); - - ######################################################### - # Add activation to ensure all parent directories exist - ######################################################### - mergedHmUsersWithDirs = lib.mapAttrs (_: userCfg: userCfg // { - home.activation.ensureDirs = lib.hm.dag.entryAfter ["writeBoundary"] (let - ensureDirs = files: lib.mapAttrs (_: path: '' - mkdir -p $(dirname $HOME/${path}) - '') files; - in - ensureDirs (builtins.attrNames (userCfg.home.file or {})) - ); - }) mergedHmUsers; - in { ################################# # Core system config ################################# - networking.hostName = hostname; + networking.hostName = hostname; # <-- set hostname here system.stateVersion = "26.05"; ################################# @@ -62,8 +36,8 @@ in home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; - # Apply merged users with automatic directory creation - home-manager.users = mergedHmUsersWithDirs; + # Each module sets its own home-manager.users; no manual merging needed + # NixOS module system will merge them automatically ################################# # System packages & programs diff --git a/Droidnix/generated/modules/traveldroid/apps/wofi.nix b/Droidnix/generated/modules/traveldroid/apps/wofi.nix index 221f1c389..4d2a4fb0e 100644 --- a/Droidnix/generated/modules/traveldroid/apps/wofi.nix +++ b/Droidnix/generated/modules/traveldroid/apps/wofi.nix @@ -1,35 +1,22 @@ -{ lib, config, pkgs, flakeRoot, home-manager, ... }: +{ lib, config, pkgs, flakeRoot, ... }: let - programName = "wofi"; username = config.defaultUser or "henrov"; assetPath = "${flakeRoot}/generated/.config/wofi"; in { - # Install Wofi via system packages - environment.systemPackages = [ - pkgs.wofi - ]; - - _module.args.hmUsers = { - ${username} = { - - home.file = { - ".config/wofi/config" = { - source = "${assetPath}/config"; - force = true; # overwrite existing - }; - ".config/wofi/style.css" = { - source = "${assetPath}/style.css"; - force = true; # overwrite existing - }; + home-manager.users = { + ${username} = { + home.file = { + ".config/wofi/config" = { + source = "${assetPath}/config"; + force = true; + }; + ".config/wofi/style.css" = { + source = "${assetPath}/style.css"; + force = true; }; - - # Ensure ~/.config/wofi exists before writing files - home.activation.fixWofiDir = lib.hm.dag.entryAfter ["writeBoundary"] '' - mkdir -p $HOME/.config/wofi - chmod -R u+rwx $HOME/.config/wofi - ''; }; }; + }; }