From 01800299b636f8f5df5a2b32d16c9ba6069895a4 Mon Sep 17 00:00:00 2001 From: chn Date: Wed, 22 Jan 2025 13:17:04 +0800 Subject: [PATCH] init jykang container --- devices/pc/container/jykang.nix | 12 ++++++++++++ devices/pc/default.nix | 8 ++++++++ 2 files changed, 20 insertions(+) create mode 100644 devices/pc/container/jykang.nix diff --git a/devices/pc/container/jykang.nix b/devices/pc/container/jykang.nix new file mode 100644 index 00000000..d2edc001 --- /dev/null +++ b/devices/pc/container/jykang.nix @@ -0,0 +1,12 @@ +inputs: +{ + config = + { + nixos = + { + model.type = "minimal"; + system.nixpkgs.march = "znver4"; + hardware.cpus = [ "amd" ]; + }; + }; +} diff --git a/devices/pc/default.nix b/devices/pc/default.nix index a01b8f53..b72c75e9 100644 --- a/devices/pc/default.nix +++ b/devices/pc/default.nix @@ -177,5 +177,13 @@ inputs: users.users.qemu-libvirtd.extraGroups = [ "disk" ]; networking.extraHosts = "74.211.99.69 mirism.one beta.mirism.one ng01.mirism.one"; services.colord.enable = true; + containers.jykang = + { + autoStart = true; + privateNetwork = true; + hostAddress = "192.168.100.10"; + localAddress = "192.168.100.11"; + config = builtins.elemAt (inputs.localLib.mkModules [ ./container/jykang.nix ]) 0; + }; }; }