refactor nixos config

This commit is contained in:
2025-12-12 21:42:42 +03:00
parent 732f6f89a5
commit 737b10813b
14 changed files with 158 additions and 135 deletions
+21
View File
@@ -0,0 +1,21 @@
{ config, lib, pkgs, ... }:
let package = pkgs.amnezia-vpn;
in {
environment.systemPackages = [ package ];
services.dbus.packages = [ package ];
services.resolved.enable = true;
systemd = {
packages = [ package ];
services."AmneziaVPN" = {
wantedBy = [ "multi-user.target" ];
path = with pkgs; [ procps iproute2 sudo ];
};
};
meta.maintainers = with lib.maintainers; [ sund3RRR ];
}