Compare commits
3 commits
09ed8c1244
...
a038b7c80c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a038b7c80c | ||
|
|
40fac75e36 | ||
|
|
9aa4b23b03 |
3 changed files with 36 additions and 19 deletions
|
|
@ -1,18 +0,0 @@
|
||||||
{ config, pkgs, ... }:
|
|
||||||
{
|
|
||||||
services = {
|
|
||||||
tty-ips.enable = true;
|
|
||||||
};
|
|
||||||
networking = {
|
|
||||||
yggdrasil = {
|
|
||||||
enable = true;
|
|
||||||
AllowedPublicKeys = [
|
|
||||||
"d0e265fcf663451ae9bc048dc1297749819ce9d48042a986f2866c15a779a074"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
hostName = "smultiboi";
|
|
||||||
};
|
|
||||||
environment.systemPackages = [
|
|
||||||
];
|
|
||||||
system.stateVersion = "25.05";
|
|
||||||
}
|
|
||||||
|
|
@ -10,6 +10,20 @@ in
|
||||||
imports = [
|
imports = [
|
||||||
self.nixosModules.default
|
self.nixosModules.default
|
||||||
"${modulesPath}/virtualisation/lxc-container.nix"
|
"${modulesPath}/virtualisation/lxc-container.nix"
|
||||||
./configuration.nix
|
|
||||||
];
|
];
|
||||||
|
services = {
|
||||||
|
tty-ips.enable = true;
|
||||||
|
};
|
||||||
|
networking = {
|
||||||
|
yggdrasil = {
|
||||||
|
enable = true;
|
||||||
|
AllowedPublicKeys = [
|
||||||
|
"d0e265fcf663451ae9bc048dc1297749819ce9d48042a986f2866c15a779a074"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
hostName = "tofu";
|
||||||
|
};
|
||||||
|
environment.systemPackages = [
|
||||||
|
];
|
||||||
|
system.stateVersion = "25.05";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
21
modules/nixos/common/incus.nix
Normal file
21
modules/nixos/common/incus.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
|
||||||
|
systemd.network = {
|
||||||
|
enable = true;
|
||||||
|
networks."50-eth0" = {
|
||||||
|
|
||||||
|
matchConfig.Name = "eth0";
|
||||||
|
networkConfig = {
|
||||||
|
DHCP = "ipv4";
|
||||||
|
IPv6AcceptRA = true;
|
||||||
|
};
|
||||||
|
linkConfig.RequiredForOnline = "routable";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
networking = {
|
||||||
|
dhcpcd.enable = false;
|
||||||
|
useDHCP = false;
|
||||||
|
useHostResolvConf = false;
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue