Enable KDE Connect and refresh dependencies

- Turn on KDE Connect for desktop and laptop configurations
- Add allowed TCP and UDP port ranges (1714‑1764) for KDE Connect
- Update flake.lock with newer revisions, hashes, and add secondary
  inputs
- Set nh program package explicitly
- Adjust GTK settings for dark theme handling
- Disable KDE Connect indicator in service config
- Refactor noctalia plugins to use a shared source URL, add kde‑connect
  plugin, bump version
- Add KDE Connect widget to the right bar
- Remove always_allow_tool_actions from Zed agent settings
This commit is contained in:
2026-03-22 22:08:09 +01:00
parent 38f618f8c7
commit a435b7d0cc
10 changed files with 107 additions and 41 deletions

79
flake.lock generated
View File

@@ -15,11 +15,11 @@
"treefmt-nix": "treefmt-nix" "treefmt-nix": "treefmt-nix"
}, },
"locked": { "locked": {
"lastModified": 1772265981, "lastModified": 1773962509,
"narHash": "sha256-JoXciqQCwHdIvENurNwgc6jH1e/d5xcjn9ybYNe+YQI=", "narHash": "sha256-DAHcc8ghdDEX+xHPjuKf7qXSL/5G9NqP3mrq5jAKFi0=",
"owner": "mrshmllow", "owner": "mrshmllow",
"repo": "affinity-nix", "repo": "affinity-nix",
"rev": "cd7bed5b72ceeb50b862c550cc16c6f1b11a2d84", "rev": "494090443b8086f14ce851ecba8463800176c1c1",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -145,11 +145,11 @@
}, },
"locked": { "locked": {
"dir": "pkgs/firefox-addons", "dir": "pkgs/firefox-addons",
"lastModified": 1773201798, "lastModified": 1774152686,
"narHash": "sha256-TZQwHvIBz9hr/fci/G/AIjPSKCMtxQm/xFm3MNJ/mVg=", "narHash": "sha256-RlEgsdHr9IQm79SsXKNT8iU+ZjjIOPTJXcatMqgSfwk=",
"owner": "rycee", "owner": "rycee",
"repo": "nur-expressions", "repo": "nur-expressions",
"rev": "016edd132727d8ac364454a6b443ef46c2d1c7e4", "rev": "4c83dbe717272428562a33db817f492195e227ae",
"type": "gitlab" "type": "gitlab"
}, },
"original": { "original": {
@@ -349,11 +349,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1773264496, "lastModified": 1774201162,
"narHash": "sha256-uwFY0+UfaGEo6205ixeBjplZxHWr56UQef+MtmJ0PW0=", "narHash": "sha256-th4i3X3P3yikPk3qu1A5DQ40tIztZKvAKPaa9hjXF+U=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "32f78141a98098efed490842923b25ecb93b9b9f", "rev": "932ca46013acabbedd13c27dc278e3d043707e46",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -422,11 +422,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1772963539, "lastModified": 1773821835,
"narHash": "sha256-9jVDGZnvCckTGdYT53d/EfznygLskyLQXYwJLKMPsZs=", "narHash": "sha256-TJ3lSQtW0E2JrznGVm8hOQGVpXjJyXY2guAxku2O9A4=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "9dcb002ca1690658be4a04645215baea8b95f31d", "rev": "b40629efe5d6ec48dd1efba650c797ddbd39ace0",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -467,6 +467,22 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_2": {
"locked": {
"lastModified": 1770107345,
"narHash": "sha256-tbS0Ebx2PiA1FRW8mt8oejR0qMXmziJmPaU1d4kYY9g=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "4533d9293756b63904b7238acb84ac8fe4c8c2c4",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"noctalia": { "noctalia": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@@ -475,11 +491,11 @@
"noctalia-qs": "noctalia-qs" "noctalia-qs": "noctalia-qs"
}, },
"locked": { "locked": {
"lastModified": 1773252517, "lastModified": 1774202729,
"narHash": "sha256-t4K/LBLj2UTVpUhdNbpdzexP/sJeCJB1R6nii8QDt28=", "narHash": "sha256-rSyMyO1xwqOUwYYQz8R89VKygYMNhvpiqOXp9Fp0mEA=",
"owner": "noctalia-dev", "owner": "noctalia-dev",
"repo": "noctalia-shell", "repo": "noctalia-shell",
"rev": "dbb2e156838e740629e60b1d9f7969aff5868fde", "rev": "56c0904dc6f1c1b2fbfc06756252eda5c8828a60",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -494,14 +510,15 @@
"noctalia", "noctalia",
"nixpkgs" "nixpkgs"
], ],
"systems": "systems" "systems": "systems",
"treefmt-nix": "treefmt-nix_2"
}, },
"locked": { "locked": {
"lastModified": 1773175685, "lastModified": 1774059741,
"narHash": "sha256-YOkWzVq7opym1ovJvSCvqpG6OCDGJwPo/EPeRxcGay4=", "narHash": "sha256-ObYsrf7XLJDqWVbJ+GWH5JYV/EUc7SVdhGx5r5wWKno=",
"owner": "noctalia-dev", "owner": "noctalia-dev",
"repo": "noctalia-qs", "repo": "noctalia-qs",
"rev": "6b9eceefde3d47ca83c544b54bcdd358be4cbd2f", "rev": "c9beee5c634ec784af128b8e7c56db14012ab17f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -634,11 +651,11 @@
"tinted-zed": "tinted-zed" "tinted-zed": "tinted-zed"
}, },
"locked": { "locked": {
"lastModified": 1772296853, "lastModified": 1774124764,
"narHash": "sha256-pAtzPsgHRKw/2Kv8HgAjSJg450FDldHPWsP3AKG/Xj0=", "narHash": "sha256-Poz9WTjiRlqZIf197CrMMJfTifZhrZpbHFv0eU1Nhtg=",
"owner": "danth", "owner": "danth",
"repo": "stylix", "repo": "stylix",
"rev": "c4b8e80a1020e09a1f081ad0f98ce804a6e85acf", "rev": "e31c79f571c5595a155f84b9d77ce53a84745494",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -777,6 +794,24 @@
"repo": "treefmt-nix", "repo": "treefmt-nix",
"type": "github" "type": "github"
} }
},
"treefmt-nix_2": {
"inputs": {
"nixpkgs": "nixpkgs_2"
},
"locked": {
"lastModified": 1772660329,
"narHash": "sha256-IjU1FxYqm+VDe5qIOxoW+pISBlGvVApRjiw/Y/ttJzY=",
"owner": "numtide",
"repo": "treefmt-nix",
"rev": "3710e0e1218041bbad640352a0440114b1e10428",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "treefmt-nix",
"type": "github"
}
} }
}, },
"root": "root", "root": "root",

View File

@@ -24,7 +24,7 @@ _: {
/* /*
Communication and synchronization Communication and synchronization
*/ */
kdeconnect.enable = false; # KDE Connect: integrate your phone and desktop kdeconnect.enable = true; # KDE Connect: integrate your phone and desktop
nextcloud-client.enable = true; # Nextcloud Client: sync files with a Nextcloud server nextcloud-client.enable = true; # Nextcloud Client: sync files with a Nextcloud server
vesktop.enable = true; # Vesktop: a communitydriven Discord client vesktop.enable = true; # Vesktop: a communitydriven Discord client

View File

@@ -24,7 +24,7 @@ _: {
/* /*
Communication and synchronization Communication and synchronization
*/ */
kdeconnect.enable = false; # KDE Connect: integrate your phone and desktop kdeconnect.enable = true; # KDE Connect: integrate your phone and desktop
nextcloud-client.enable = true; # Nextcloud Client: sync files with a Nextcloud server nextcloud-client.enable = true; # Nextcloud Client: sync files with a Nextcloud server
vesktop.enable = true; # Vesktop: a communitydriven Discord client vesktop.enable = true; # Vesktop: a communitydriven Discord client

View File

@@ -28,10 +28,22 @@ in {
59011 59011
8080 8080
]; ];
allowedTCPPortRanges = [
{
from = 1714;
to = 1764;
}
];
allowedUDPPorts = [ allowedUDPPorts = [
59010 59010
59011 59011
]; ];
allowedUDPPortRanges = [
{
from = 1714;
to = 1764;
}
];
}; };
}; };
} }

View File

@@ -1,6 +1,11 @@
{username, ...}: { {
username,
pkgs,
...
}: {
programs.nh = { programs.nh = {
enable = true; enable = true;
package = pkgs.nh;
clean = { clean = {
enable = true; enable = true;
extraArgs = "--keep-since 7d --keep 5"; extraArgs = "--keep-since 7d --keep 5";

View File

@@ -4,11 +4,12 @@
name = "Papirus-Dark"; name = "Papirus-Dark";
package = pkgs.papirus-icon-theme; package = pkgs.papirus-icon-theme;
}; };
gtk3.extraConfig = { gtk3.extraConfig.gtk-application-prefer-dark-theme = 1;
gtk4 = {
theme = null;
extraConfig = {
gtk-application-prefer-dark-theme = 1; gtk-application-prefer-dark-theme = 1;
}; };
gtk4.extraConfig = {
gtk-application-prefer-dark-theme = 1;
}; };
}; };
} }

View File

@@ -6,9 +6,11 @@
}: { }: {
options.kdeconnect.enable = lib.mkEnableOption "KDE Connect"; options.kdeconnect.enable = lib.mkEnableOption "KDE Connect";
config.services.kdeconnect = lib.mkIf config.kdeconnect.enable { config = {
services.kdeconnect = lib.mkIf config.kdeconnect.enable {
enable = true; enable = true;
indicator = true; indicator = false;
package = pkgs.kdePackages.kdeconnect-kde; package = pkgs.kdePackages.kdeconnect-kde;
}; };
};
} }

View File

@@ -1,28 +1,34 @@
{lib, ...}: { {lib, ...}: let
sourceUrl = "https://github.com/noctalia-dev/noctalia-plugins";
in {
programs.noctalia-shell = lib.mkForce { programs.noctalia-shell = lib.mkForce {
plugins = { plugins = {
sources = [ sources = [
{ {
enabled = true; enabled = true;
name = "Noctalia Plugins"; name = "Noctalia Plugins";
url = "https://github.com/noctalia-dev/noctalia-plugins"; url = sourceUrl;
} }
]; ];
states = { states = {
mini-docker = { mini-docker = {
enabled = true; enabled = true;
sourceUrl = "https://github.com/noctalia-dev/noctalia-plugins"; sourceUrl = sourceUrl;
}; };
timer = { timer = {
enabled = true; enabled = true;
sourceUrl = "https://github.com/noctalia-dev/noctalia-plugins"; sourceUrl = sourceUrl;
}; };
keybind-cheatsheet = { keybind-cheatsheet = {
enabled = true; enabled = true;
sourceUrl = "https://github.com/noctalia-dev/noctalia-plugins"; sourceUrl = sourceUrl;
};
kde-connect = {
enabled = true;
sourceUrl = sourceUrl;
}; };
}; };
version = 1; version = 2;
}; };
pluginSettings = { pluginSettings = {
mini-docker.refreshInterval = 5000; mini-docker.refreshInterval = 5000;
@@ -36,6 +42,9 @@
columnCount = 2; columnCount = 2;
autoHeight = true; autoHeight = true;
}; };
kde-connect = {
hideIfNoDeviceConnected = true;
};
}; };
}; };
} }

View File

@@ -27,6 +27,9 @@
showUnreadBadge = true; showUnreadBadge = true;
unreadBadgeColor = "primary"; unreadBadgeColor = "primary";
} }
{
id = "plugin:kde-connect";
}
{ {
id = "Bluetooth"; id = "Bluetooth";
displayMode = "onhover"; displayMode = "onhover";

View File

@@ -1,6 +1,5 @@
_: { _: {
programs.zed-editor.userSettings.agent = { programs.zed-editor.userSettings.agent = {
always_allow_tool_actions = true;
default_profile = "ask"; default_profile = "ask";
default_model = { default_model = {
provider = "Cerebras PAUG"; provider = "Cerebras PAUG";