summaryrefslogtreecommitdiff
path: root/hosts/desktop
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/desktop')
-rw-r--r--hosts/desktop/configuration.nix35
-rw-r--r--hosts/desktop/home.nix4
2 files changed, 36 insertions, 3 deletions
diff --git a/hosts/desktop/configuration.nix b/hosts/desktop/configuration.nix
index 82909c2..b334630 100644
--- a/hosts/desktop/configuration.nix
+++ b/hosts/desktop/configuration.nix
@@ -1,8 +1,7 @@
{
config,
username,
- inputs,
- pkgs,
+ pkgs-stable,
...
}:
{
@@ -119,4 +118,36 @@
config.boot.kernelPackages.nct6687d
];
};
+
+ services.netbox = {
+ enable = true;
+ package = pkgs-stable.netbox;
+ secretKeyFile = "/var/lib/netbox/key";
+ apiTokenPeppersFile = "/var/lib/netbox/api-pepper";
+
+ settings = {
+ ALLOWED_HOSTS = [
+ "localhost"
+ "127.0.0.1"
+ "[::1]"
+ ];
+ };
+ };
+
+ networking.firewall.allowedTCPPorts = [ 80 ];
+ services.nginx = {
+ enable = true;
+ user = "netbox";
+ recommendedProxySettings = true;
+ virtualHosts.localhost = {
+ locations = {
+ "/" = {
+ proxyPass = "http://[::1]:8001";
+ };
+ "/static/" = {
+ alias = "${config.services.netbox.dataDir}/static/";
+ };
+ };
+ };
+ };
}
diff --git a/hosts/desktop/home.nix b/hosts/desktop/home.nix
index 002f28e..58714f0 100644
--- a/hosts/desktop/home.nix
+++ b/hosts/desktop/home.nix
@@ -21,6 +21,7 @@
};
xdg-mime.enable = true;
};
+ editors.nixvim.enable = true;
env = {
fsel.enable = true;
mako.enable = true;
@@ -89,6 +90,7 @@
};
home.packages = with pkgs; [
- stow
+ stow
+ element-desktop
];
}