summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authoradikro <adikro@disroot.org>2026-05-09 21:06:23 +0200
committeradikro <adikro@disroot.org>2026-05-09 21:06:23 +0200
commitbaf1cf5664b481de17849c97dc683fa81ade1c2e (patch)
tree0836096c9104559d27341d7b99c7c032cf0743ef /hosts
parent18e7f651ce33b1544178f444c6bd3fbaf44fc831 (diff)
laptop sync
Diffstat (limited to 'hosts')
-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
];
}