Compare commits

...

2 commits

Author SHA1 Message Date
ba2c3c21ca Improve common import 2024-05-26 13:01:34 -04:00
228759d340 Syncthing service 2024-05-24 07:57:48 -04:00
2 changed files with 14 additions and 2 deletions

View file

@ -1,3 +1,3 @@
{...}: {
imports = builtins.map (n: toString ./common + "/${n}") (builtins.attrNames (builtins.removeAttrs (builtins.readDir ./common) [(builtins.unsafeGetAttrPos "_" {_ = null;}).file]));
{ lib, ...}: {
imports = builtins.map (n: ./common + "/${n}") (builtins.attrNames (lib.filterAttrs (k: v: v == "regular" && lib.hasSuffix ".nix" k) (builtins.readDir ./common)));
}

View file

@ -74,6 +74,18 @@
# '')
];
services.syncthing = {
enable = true;
tray.enable = true;
};
systemd.user.targets.tray = {
Unit = {
Description = "System Tray";
Requires = [ "graphical-session-pre.target" ];
};
};
nixpkgs.config = {
allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "discord" ];
permittedInsecurePackages = [ "electron-25.9.0" ];