mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-12 05:20:42 +08:00
Compare commits
1 Commits
93b1e4f146
...
container
| Author | SHA1 | Date | |
|---|---|---|---|
| 01800299b6 |
12
devices/pc/container/jykang.nix
Normal file
12
devices/pc/container/jykang.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
inputs:
|
||||
{
|
||||
config =
|
||||
{
|
||||
nixos =
|
||||
{
|
||||
model.type = "minimal";
|
||||
system.nixpkgs.march = "znver4";
|
||||
hardware.cpus = [ "amd" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user