Compare commits

..

No commits in common. "09da72a0bf42248b8cff62c6a73fb87f7d94424f" and "78195b6719aaf7cfb131a8012a551f049849b552" have entirely different histories.

2 changed files with 2 additions and 24 deletions

View File

@ -11,6 +11,7 @@
inputs.nixpkgs.follows = "nixpkgs";
};
# TODO once i have a better way to manage multiarch packages
# 33.0.3p2 as suggested by https://xdaforums.com/t/guide-january-3-2024-root-pixel-7-pro-unlock-bootloader-pass-safetynet-both-slots-bootable-more.4505353/
# android tools versions [ 34.0.0, 34.0.5 ) causes bootloops somehow and 34.0.5 isn't in nixpkgs yet
pkg-android-tools.url = "github:NixOS/nixpkgs/55070e598e0e03d1d116c49b9eff322ef07c6ac6";

View File

@ -1,8 +1,5 @@
{ config, lib, pkgs, ...}:
let
sleep = "${pkgs.coreutils}/bin/sleep";
systemctl = "${pkgs.systemd}/bin/systemctl";
in
{
imports = [
./desktop-common.nix
@ -13,26 +10,6 @@ in
services.xserver.displayManager.defaultSession = "plasmawayland";
programs.kdeconnect.enable = true;
# systemd.user.targets.plasma-core.unitConfig.Upholds = [ "restart-xdg-desktop-portal.service" ];
systemd.user.targets.graphical-session.unitConfig.Wants = [ "restart-xdg-desktop-portal-kde.service" ];
systemd.user = {
services.restart-xdg-desktop-portal-kde = {
enable = true;
description = "hack to fix xdg-desktop-portal on kde";
# wantedBy = [ "plasma-core.target" ];
after = [ "plasma-core.target" "xdg-desktop-portal.service" ];
requisite = [ "plasma-core.target" ];
serviceConfig = {
ExecStart = [
"${sleep} 5"
"${systemctl} --user restart xdg-desktop-portal.service"
];
Type = "oneshot";
RemainAfterExit = "yes";
};
};
};
environment.systemPackages = with pkgs; [
# this fixes tiny file dialogs for Minecraft
libsForQt5.kdialog