Regenerated
This commit is contained in:
@@ -1,28 +1,14 @@
|
||||
# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
|
||||
{ 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
|
||||
@@ -36,9 +22,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 {} \;
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user