users: remove system-user.nix

This commit is contained in:
Guanran Wang 2023-10-14 17:40:12 +08:00
parent 0a23fd605c
commit e179a6bc06
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8
3 changed files with 9 additions and 11 deletions

View file

@ -1,9 +1,17 @@
{ pkgs, config, inputs, ... }:
{
### System proxy settings
networking.proxy.default = "http://127.0.0.1:7890/";
#environment.systemPackages = with pkgs; [ clash-meta ];
### User running proxy service
users.groups."clash-meta" = {};
users.users."clash-meta" = {
isSystemUser = true;
group = config.users.groups."clash-meta".name;
};
### Proxy service
systemd.services."clash-meta" = {
wantedBy = [ "multi-user.target" ];
after = [ "network-online.target" ];

View file

@ -3,6 +3,5 @@
{
imports = [
./users.nix
./system-users.nix
];
}

View file

@ -1,9 +0,0 @@
{ ... }:
{
users.users."clash-meta" = {
isSystemUser = true;
group = "clash-meta";
};
users.groups.clash-meta = {};
}