Regenerated

This commit is contained in:
2026-04-29 12:31:04 +02:00
parent 9b12730dba
commit 663117b352
6 changed files with 451 additions and 482 deletions
+19 -23
View File
@@ -236,6 +236,7 @@ The Nix flake definition for Droidnix.
stylix
hyprland
zen-browser
quickshell
buildUser
mutableConfigPath
;
@@ -251,6 +252,7 @@ The Nix flake definition for Droidnix.
stylix
hyprland
zen-browser
quickshell
buildUser
mutableConfigPath
;
@@ -2000,32 +2002,18 @@ This sets the dbus implementation
#+END_SRC
** =generated/modules/traveldroid/system/quickshell.nix=
This sets the dbus implementation
This sets the quickshell implementation
#+BEGIN_SRC nix :tangle generated/modules/traveldroid/system/quickshell.nix :noweb yes :mkdirp yes :eval never
{ pkgs, lib, config, flakeRoot, ... }:
{ pkgs, lib, config, flakeRoot, quickshell, ... }:
let
username = config.defaultUser or "henrov";
quickshellPath = flakeRoot + "/generated/.config/quickshell";
allFiles = lib.filesystem.listFilesRecursive quickshellPath;
toRelative = file:
let
base = toString flakeRoot + "/generated/";
relative = lib.removePrefix base (toString file);
in
builtins.unsafeDiscardStringContext relative;
toFileEntry = file: {
name = toRelative file;
value = {
source = file;
force = true;
};
};
sysName = "quickshell";
assetPath = "${flakeRoot}/generated/.config/${sysName}";
quickshellPkg = quickshell.packages.${pkgs.stdenv.hostPlatform.system}.default;
in
{
environment.systemPackages = with pkgs; [
quickshell
quickshellPkg
qt6.qtdeclarative
qt6.qttools
qt6.qtsvg
@@ -2039,9 +2027,17 @@ in
platformTheme = "qt5ct";
};
home-manager.users = {
${username} = {
home.file = builtins.listToAttrs (map toFileEntry allFiles);
home-manager.users.${username} = {
home.activation.quickshellMutableFiles = {
after = [ "writeBoundary" ];
before = [];
data = ''
rm -rf $HOME/.config/${sysName}
mkdir -p $HOME/.config/${sysName}
cp -r ${assetPath}/* $HOME/.config/${sysName}/
chmod -R u+w $HOME/.config/${sysName}/
find $HOME/.config/${sysName}/ -name "*.sh" -exec chmod +x {} \;
'';
};
};
}