feat: init quickshell
This commit is contained in:
@@ -4,6 +4,12 @@
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
# FIXME: symlink
|
||||
homeDir = config.my.home.home.homeDirectory;
|
||||
quickshellDir = "${homeDir}/workspace/nixos-dotfiles/modules/desktop/quickshell/qml";
|
||||
quickshellTarget = "${homeDir}/.config/quickshell";
|
||||
in
|
||||
lib.my.makeSwitch {
|
||||
inherit config;
|
||||
default = false;
|
||||
@@ -13,17 +19,25 @@ lib.my.makeSwitch {
|
||||
"quickshell"
|
||||
];
|
||||
config' = {
|
||||
my.home = {
|
||||
home.packages = [ pkgs.quickshell ];
|
||||
home.sessionVariables.QML2_IMPORT_PATH = lib.concatStringsSep ":" [
|
||||
my.home.home = {
|
||||
packages = with pkgs; [
|
||||
quickshell
|
||||
qt6Packages.qt5compat
|
||||
libsForQt5.qt5.qtgraphicaleffects
|
||||
kdePackages.qtbase
|
||||
kdePackages.qtdeclarative
|
||||
|
||||
material-symbols
|
||||
material-icons
|
||||
];
|
||||
sessionVariables.QML2_IMPORT_PATH = lib.concatStringsSep ":" [
|
||||
"${pkgs.quickshell}/lib/qt-6/qml"
|
||||
"${pkgs.kdePackages.qtdeclarative}/lib/qt-6/qml"
|
||||
"${pkgs.kdePackages.kirigami.unwrapped}/lib/qt-6/qml"
|
||||
];
|
||||
xdg.configFile."quickshell" = {
|
||||
source = ./config;
|
||||
recursive = true;
|
||||
};
|
||||
activation.symlinkQuickshellAndFaceIcon = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||
ln -sfn "${quickshellDir}" "${quickshellTarget}"
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user