diff --git a/projects/kde/shell.nix b/projects/kde/shell.nix index 4888b46..54b55fb 100644 --- a/projects/kde/shell.nix +++ b/projects/kde/shell.nix @@ -8,7 +8,7 @@ myllvm.stdenv.mkDerivation { name = "clang-nix-shell"; # ensure the local KDE things are in path shellHook = '' -export PATH=/home/cullmann/projects/kde/usr/bin:/home/cullmann/projects/kde:/home/cullmann/projects/kde/src/kdesrc-build:$PATH +export PATH=~/projects/kde/usr/bin:~/projects/kde:~/projects/kde/src/kdesrc-build:$PATH # fix Qt tests for rcc unset QT_RCC_SOURCE_DATE_OVERRIDE @@ -17,10 +17,10 @@ unset SOURCE_DATE_EPOCH # fix valgrind export QT_ENABLE_REGEXP_JIT=0 -export QT_PLUGIN_PATH=/home/cullmann/projects/kde/usr/lib/plugins:/home/cullmann/projects/kde/usr/lib64/plugins:${pkgs.qt6.qtbase.qtPluginPrefix}:${pkgs.lib.getBin pkgs.qt6.qtsvg}/${pkgs.qt6.qtbase.qtPluginPrefix}:${pkgs.lib.getBin pkgs.qt6.qtwayland}/${pkgs.qt6.qtbase.qtPluginPrefix}:${pkgs.lib.getBin pkgs.qt6.qtspeech}/${pkgs.qt6.qtbase.qtPluginPrefix}:$QT_PLUGIN_PATH -export QML2_IMPORT_PATH=/home/cullmann/projects/kde/usr/lib/qml:$QML2_IMPORT_PATH +export QT_PLUGIN_PATH=~/projects/kde/usr/lib/plugins:~/projects/kde/usr/lib64/plugins:${pkgs.qt6.qtbase.qtPluginPrefix}:${pkgs.lib.getBin pkgs.qt6.qtsvg}/${pkgs.qt6.qtbase.qtPluginPrefix}:${pkgs.lib.getBin pkgs.qt6.qtwayland}/${pkgs.qt6.qtbase.qtPluginPrefix}:${pkgs.lib.getBin pkgs.qt6.qtspeech}/${pkgs.qt6.qtbase.qtPluginPrefix}:$QT_PLUGIN_PATH +export QML2_IMPORT_PATH=~/projects/kde/usr/lib/qml:$QML2_IMPORT_PATH -export QT_QUICK_CONTROLS_STYLE_PATH=/home/cullmann/projects/kde/usr/lib/qml/QtQuick/Controls.2/:/home/cullmann/projects/kde/usr/lib64/qml/QtQuick/Controls.2/:$QT_QUICK_CONTROLS_STYLE_PATH +export QT_QUICK_CONTROLS_STYLE_PATH=~/projects/kde/usr/lib/qml/QtQuick/Controls.2/:~/projects/kde/usr/lib64/qml/QtQuick/Controls.2/:$QT_QUICK_CONTROLS_STYLE_PATH ''; # add all needed stuff to have a KDE KF6 Qt6 env diff --git a/share/users.nix b/share/users.nix index 5bcbf23..fa6a619 100644 --- a/share/users.nix +++ b/share/users.nix @@ -136,6 +136,23 @@ in users.sandbox-kde = { # shared config imports = [ ./home.nix ]; + + # create kde build setup + home.file = { + "projects/kde/.envrc" = { + text = "use nix"; + }; + "projects/kde/cleanup.sh" = { + text = (builtins.readFile "/data/nixos/projects/kde/cleanup.sh"); + executable = true; + }; + "projects/kde/kdesrc-buildrc" = { + text = (builtins.readFile "/data/nixos/projects/kde/kdesrc-buildrc"); + }; + "projects/kde/shell.nix" = { + text = (builtins.readFile "/data/nixos/projects/kde/shell.nix"); + }; + }; }; }; }