39 lines
1.0 KiB
Nix
39 lines
1.0 KiB
Nix
# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
|
|
{ pkgs, lib, config, flakeRoot, quickshell, ... }:
|
|
let
|
|
username = config.defaultUser or "henrov";
|
|
sysName = "quickshell";
|
|
assetPath = "${flakeRoot}/generated/.config/${sysName}";
|
|
quickshellPkg = quickshell.packages.${pkgs.stdenv.hostPlatform.system}.default;
|
|
in
|
|
{
|
|
environment.systemPackages = with pkgs; [
|
|
quickshellPkg
|
|
qt6.qtdeclarative
|
|
qt6.qttools
|
|
qt6.qtsvg
|
|
qt6.qtimageformats
|
|
qt6.qtmultimedia
|
|
qt6.qt5compat
|
|
];
|
|
|
|
qt = {
|
|
enable = true;
|
|
platformTheme = "qt5ct";
|
|
};
|
|
|
|
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 {} \;
|
|
'';
|
|
};
|
|
};
|
|
}
|