Regenerated
This commit is contained in:
+29
-11
@@ -471,24 +471,42 @@ 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 tangle :mkdirp yes :eval never-html
|
||||
{ lib, config, pkgs, ... }:
|
||||
{ lib, config, pkgs, flakeRoot, home-manager, ... }:
|
||||
|
||||
let
|
||||
programName = "wofi";
|
||||
username = config.defaultUser or "henrov";
|
||||
assetPath = ../../../assets/system/conf/${programName};
|
||||
assetPath = "${flakeRoot}/assets/traveldroid/conf/${programName}";
|
||||
|
||||
# Read all files in the asset directory if it exists
|
||||
assetFiles =
|
||||
if builtins.pathExists assetPath then
|
||||
builtins.attrNames (builtins.readDir assetPath)
|
||||
else
|
||||
[];
|
||||
|
||||
# Convert files to Home Manager xdg config entries
|
||||
wofiFiles = lib.genAttrs assetFiles (f: {
|
||||
name = ".config/${programName}/${f}";
|
||||
value = { source = "${assetPath}/${f}"; };
|
||||
});
|
||||
in
|
||||
{
|
||||
# Deploy assets to ~/.config/wofi via Home Manager
|
||||
home-manager.users.${username}.home.file =
|
||||
if builtins.pathExists assetPath then
|
||||
lib.genAttrs (builtins.attrNames (builtins.readDir assetPath)) (name: {
|
||||
source = "${assetPath}/${name}";
|
||||
target = ".config/${programName}/${name}";
|
||||
})
|
||||
else {};
|
||||
}
|
||||
# Install Wofi via system packages
|
||||
environment.systemPackages = [
|
||||
pkgs.wofi
|
||||
];
|
||||
|
||||
# Home Manager configuration
|
||||
_module.args.hmUsers = {
|
||||
${username} = {
|
||||
home.packages = [ pkgs.wofi ];
|
||||
|
||||
# Deploy all files to ~/.config/wofi/
|
||||
home.file = lib.mkMerge wofiFiles;
|
||||
};
|
||||
};
|
||||
}
|
||||
# #+END_SRC
|
||||
|
||||
** =generated/modules/traveldroid/apps/zenbrowser.nix=
|
||||
|
||||
Reference in New Issue
Block a user