From 771a2b88a7a8d39e1b3263537c1f9237a3816ad6 Mon Sep 17 00:00:00 2001 From: smayzy Date: Sun, 24 Aug 2025 22:18:42 +0200 Subject: [PATCH] prepare for nixos containers add bridge for desktop1 --- hosts/desktop1/configuration.nix | 3 +++ modules/nix/containers/default.nix | 6 ++++++ modules/nix/containers/nixos/default.nix | 5 +++++ modules/nix/default.nix | 1 + 4 files changed, 15 insertions(+) create mode 100644 modules/nix/containers/default.nix create mode 100644 modules/nix/containers/nixos/default.nix diff --git a/hosts/desktop1/configuration.nix b/hosts/desktop1/configuration.nix index 06ed49a..2e26ee7 100644 --- a/hosts/desktop1/configuration.nix +++ b/hosts/desktop1/configuration.nix @@ -8,6 +8,9 @@ networking.hostName = "desktop1"; + networking.bridges.br0.interfaces = [ ]; + networking.interfaces.br0.ipv4.addresses = [ { address = "10.0.0.1"; prefixLength = 24; } ]; + smayzy = { desktop.enable = true; nvidia.enable = true; diff --git a/modules/nix/containers/default.nix b/modules/nix/containers/default.nix new file mode 100644 index 0000000..3c22f3c --- /dev/null +++ b/modules/nix/containers/default.nix @@ -0,0 +1,6 @@ +{ ... }: +{ + imports = [ + ./nixos + ]; +} diff --git a/modules/nix/containers/nixos/default.nix b/modules/nix/containers/nixos/default.nix new file mode 100644 index 0000000..a2139f2 --- /dev/null +++ b/modules/nix/containers/nixos/default.nix @@ -0,0 +1,5 @@ +{ ... }: +{ + imports = [ + ]; +} diff --git a/modules/nix/default.nix b/modules/nix/default.nix index 319d522..04e3cc9 100644 --- a/modules/nix/default.nix +++ b/modules/nix/default.nix @@ -6,6 +6,7 @@ ./browser ./cad ./comm + ./containers ./ctf ./de ./displaymanager