rename from profiles to users
This commit is contained in:
parent
d70ff2ea3f
commit
1adc687ff9
13 changed files with 42 additions and 10 deletions
|
|
@ -2,7 +2,7 @@
|
|||
programs.neovide = {
|
||||
enable = true;
|
||||
settings = {
|
||||
neovim-bin = "/etc/profiles/per-user/asakiyuki/bin/nvim";
|
||||
neovim-bin = "/etc/home/per-user/asakiyuki/bin/nvim";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
{...}: {
|
||||
services.cloudflare-dyndns = {
|
||||
enable = true;
|
||||
apiTokenFile = "/profiles/asakiyuki/.secret/CLOUDFLARE_TOKEN_KEY";
|
||||
frequency = "*:0/5";
|
||||
apiTokenFile = "/home/asakiyuki/.secret/CLOUDFLARE_TOKEN_KEY";
|
||||
frequency = ":0/5";
|
||||
proxied = true;
|
||||
ipv6 = false;
|
||||
ipv4 = true;
|
||||
|
|
|
|||
32
modules/services/httpd.nix
Normal file
32
modules/services/httpd.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{...}: {
|
||||
services.httpd = {
|
||||
enable = true;
|
||||
adminAddr = "vantrong2007vn@gmail.com";
|
||||
|
||||
user = "static";
|
||||
group = "public";
|
||||
|
||||
virtualHosts = {
|
||||
localhost = {
|
||||
documentRoot = "/host/PUBLIC";
|
||||
listen = [
|
||||
{
|
||||
ip = "0.0.0.0";
|
||||
port = 37284;
|
||||
}
|
||||
];
|
||||
extraConfig = ''
|
||||
<Directory "/host/PUBLIC">
|
||||
Options -Indexes +FollowSymLinks
|
||||
AllowOverride None
|
||||
Require all granted
|
||||
|
||||
<LimitExcept GET HEAD OPTIONS>
|
||||
Require all denied
|
||||
</LimitExcept>
|
||||
</Directory>
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
enable = true;
|
||||
ports = [15523];
|
||||
authorizedKeysInHomedir = true;
|
||||
authorizedKeysFiles = ["/profiles/asakiyuki/.ssh/authorized_keys"];
|
||||
authorizedKeysFiles = ["/home/asakiyuki/.ssh/authorized_keys"];
|
||||
settings = {
|
||||
AllowUsers = [
|
||||
"asakiyuki"
|
||||
|
|
|
|||
Reference in a new issue