45 lines
918 B
Nix
45 lines
918 B
Nix
# {{{autogen}}}
|
|
{ pkgs, lib, config, flakeRoot, ... }:
|
|
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;
|
|
};
|
|
};
|
|
in
|
|
{
|
|
environment.systemPackages = with pkgs; [
|
|
quickshell
|
|
qt6.qtdeclarative
|
|
qt6.qttools
|
|
qt6.qtsvg
|
|
qt6.qtimageformats
|
|
qt6.qtmultimedia
|
|
qt6.qt5compat
|
|
];
|
|
|
|
qt = {
|
|
enable = true;
|
|
platformTheme = "qt5ct";
|
|
};
|
|
|
|
home-manager.users = {
|
|
${username} = {
|
|
home.file = builtins.listToAttrs (map toFileEntry allFiles);
|
|
};
|
|
};
|
|
}
|