Compare commits
3 commits
ed029daaa4
...
60a5ce3f42
Author | SHA1 | Date | |
---|---|---|---|
60a5ce3f42 | |||
8f1d382ce7 | |||
1b5c13334e |
2 changed files with 8 additions and 28 deletions
|
@ -29,7 +29,6 @@
|
||||||
aliases = [
|
aliases = [
|
||||||
"www.katvayor.net"
|
"www.katvayor.net"
|
||||||
"katvayor.net"
|
"katvayor.net"
|
||||||
"netbox.katvayor.net"
|
|
||||||
];
|
];
|
||||||
ip = "192.168.122.7";
|
ip = "192.168.122.7";
|
||||||
};
|
};
|
||||||
|
@ -69,12 +68,10 @@
|
||||||
security.acme = {
|
security.acme = {
|
||||||
acceptTerms = true;
|
acceptTerms = true;
|
||||||
defaults.email = "root@katvayor.net";
|
defaults.email = "root@katvayor.net";
|
||||||
certs."website.katvayor.net".extraDomainNames = [ "netbox.katvayor.net" ];
|
|
||||||
};
|
};
|
||||||
services = {
|
services = {
|
||||||
openssh.enable = true;
|
openssh.enable = true;
|
||||||
qemuGuest.enable = true;
|
qemuGuest.enable = true;
|
||||||
|
|
||||||
nginx = {
|
nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
|
@ -90,29 +87,9 @@
|
||||||
index = "index.html";
|
index = "index.html";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"netbox.katvayor.net" = {
|
|
||||||
useACMEHost = "website.katvayor.net";
|
|
||||||
addSSL = true;
|
|
||||||
locations = {
|
|
||||||
"/" = {
|
|
||||||
recommendedProxySettings = true;
|
|
||||||
proxyPass = "http://localhost:8001";
|
|
||||||
};
|
|
||||||
"/static/".alias = "${config.services.netbox.dataDir}/static/";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
netbox = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.netbox_4_1;
|
|
||||||
listenAddress = "127.0.0.1";
|
|
||||||
secretKeyFile = "${config.services.netbox.dataDir}/secret.key";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
users.users.nginx.extraGroups = [ "netbox" ];
|
|
||||||
|
|
||||||
system.stateVersion = "23.11";
|
system.stateVersion = "23.11";
|
||||||
}
|
}
|
||||||
|
|
|
@ -54,16 +54,19 @@
|
||||||
"hash": "0nwpxajd6ny9qry58ch624ahr4nmsbkxq1m9ijqcwk8jx0cgv3vy"
|
"hash": "0nwpxajd6ny9qry58ch624ahr4nmsbkxq1m9ijqcwk8jx0cgv3vy"
|
||||||
},
|
},
|
||||||
"nixos-mailserver": {
|
"nixos-mailserver": {
|
||||||
"type": "Git",
|
"type": "GitRelease",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "GitLab",
|
"type": "GitLab",
|
||||||
"repo_path": "simple-nixos-mailserver/nixos-mailserver",
|
"repo_path": "simple-nixos-mailserver/nixos-mailserver",
|
||||||
"server": "https://gitlab.com/"
|
"server": "https://gitlab.com/"
|
||||||
},
|
},
|
||||||
"branch": "master",
|
"pre_releases": false,
|
||||||
"revision": "af7d3bf5daeba3fc28089b015c0dd43f06b176f2",
|
"version_upper_bound": null,
|
||||||
"url": "https://gitlab.com/api/v4/projects/simple-nixos-mailserver%2Fnixos-mailserver/repository/archive.tar.gz?sha=af7d3bf5daeba3fc28089b015c0dd43f06b176f2",
|
"release_prefix": null,
|
||||||
"hash": "1j0r52ij5pw8b8wc5xz1bmm5idwkmsnwpla6smz8gypcjls860ma"
|
"version": "v2.3.0",
|
||||||
|
"revision": "289f71efe2250e1155b0c74d188699397ba641d8",
|
||||||
|
"url": "https://gitlab.com/api/v4/projects/simple-nixos-mailserver%2Fnixos-mailserver/repository/archive.tar.gz?ref=v2.3.0",
|
||||||
|
"hash": "1flgj5hqzr76x2ff339kzbrfwilwy81wmml69nnwr2l5apmmly8j"
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"type": "Channel",
|
"type": "Channel",
|
||||||
|
|
Loading…
Reference in a new issue