~ruther/nixos-config

5a79eacaff96316e123fc98a700ee5fa84fc80c9 — Frantisek Bohacek 8 months ago 36f60ae
feat: disable qtile
M home/modules/profiles/desktop/qtile/launcher.nix => home/modules/profiles/desktop/qtile/launcher.nix +1 -1
@@ 11,7 11,7 @@ let
  };
in
{
  config = lib.mkIf config.profiles.desktop.qtile.enable {
  config = lib.mkIf (config.profiles.desktop.qtile.enable || config.profiles.desktop.dwl.enable) {
    home.packages = [
      pkgs.rofi-power-menu
    ];

M home/modules/profiles/desktop/qtile/services.nix => home/modules/profiles/desktop/qtile/services.nix +26 -2
@@ 8,8 8,30 @@
let
  mpris-ctl = inputs.self.packages.${pkgs.system}.mpris-ctl;
  sequence-detector = inputs.self.packages.${pkgs.system}.sequence-detector;

  getDunstDbusServicePath = pkg: "${pkg}/share/dbus-1/services/org.knopwob.dunst.service";
  dunst = pkgs.symlinkJoin {
    name = "dunst-wrapped";
    paths = [ pkgs.dunst ];
    postBuild = ''
      mv $out/bin/dunst $out/bin/.dunst
      echo "#!${pkgs.runtimeShell}" > "$out/bin/dunst"
      echo "Dunst wrapper..."
      echo "WAYLAND_DISPLAY, DISPLAY"
      echo "${lib.getExe' pkgs.coreutils "printenv"} WAYLAND_DISPLAY DISPLAY" >> "$out/bin/dunst"
      echo "exec $out/bin/.dunst \"$@\"" >> $out/bin/dunst
      chmod +x $out/bin/dunst

      dbusServicePath="${getDunstDbusServicePath "$out"}"
      dbusRealServicePath=$(readlink "$dbusServicePath")
      rm "$dbusServicePath"
      cp "$dbusRealServicePath" "$dbusServicePath"
      substituteInPlace "$dbusServicePath" \
        --replace-fail "${pkgs.dunst}" "$out"
    '';
  };
in {
  config = lib.mkIf config.profiles.desktop.qtile.enable {
  config = lib.mkIf (config.profiles.desktop.qtile.enable || config.profiles.desktop.dwl.enable) {

    home.packages = lib.mkMerge [
      (lib.mkIf config.services.dunst.enable [ pkgs.libnotify ])


@@ 161,6 183,9 @@ in {
      };
    };

    xdg.dataFile."dbus-1/services/org.knopwob.dunst.service".source = lib.mkForce (getDunstDbusServicePath dunst);
    services.dunst.package = dunst;

    systemd.user.services = {
      mpris-ctld = {
        Unit = {


@@ 198,7 223,6 @@ in {
        Install.WantedBy = lib.mkForce [ "xorg-wm-services.target" ];
      };

      xdg.dataFile."dbus-1/services/org.knopwob.dunst.service".source = "${pkgs.dunst}/share/dbus-1/services/org.knopwob.dunst.service";
      dunst = lib.mkIf config.services.dunst.enable {
        Unit = {
          PartOf = lib.mkForce [ "wm-services.target" ];

M nixos/hosts/laptop-phobos/default.nix => nixos/hosts/laptop-phobos/default.nix +1 -1
@@ 25,7 25,7 @@

  nixos-config.isLaptop = true;
  profiles.virtualisation.enable = true;
  profiles.desktop.qtile.enable = true;
  # profiles.desktop.qtile.enable = true;
  profiles.vpn.enable = true;
  profiles.sync.enable = true;
  profiles.development = {

M nixos/hosts/laptop-phobos/home.nix => nixos/hosts/laptop-phobos/home.nix +1 -1
@@ 11,7 11,7 @@ let
  ];
in {
  profiles.development.enable = true;
  profiles.desktop.qtile.enable = true;
  # profiles.desktop.qtile.enable = true;
  profiles.desktop.dwl.enable = true;
  profiles.matrix.enable = true;


Do not follow this link