users: remove system-user.nix
This commit is contained in:
parent
0a23fd605c
commit
e179a6bc06
3 changed files with 9 additions and 11 deletions
|
@ -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" ];
|
||||
|
|
|
@ -3,6 +3,5 @@
|
|||
{
|
||||
imports = [
|
||||
./users.nix
|
||||
./system-users.nix
|
||||
];
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
users.users."clash-meta" = {
|
||||
isSystemUser = true;
|
||||
group = "clash-meta";
|
||||
};
|
||||
users.groups.clash-meta = {};
|
||||
}
|
Loading…
Reference in a new issue