Update mini-pc.nix
This commit is contained in:
+21
-1
@@ -10,7 +10,27 @@
|
|||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "mini-pc";
|
hostName = "mini-pc";
|
||||||
useDHCP = true;
|
useDHCP = false;
|
||||||
|
defaultGateway = "192.168.1.1";
|
||||||
|
nameservers = [
|
||||||
|
"192.168.1.1"
|
||||||
|
"1.1.1.1"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.network = {
|
||||||
|
enable = true;
|
||||||
|
networks."10-lan" = {
|
||||||
|
matchConfig.Name = "en*";
|
||||||
|
networkConfig = {
|
||||||
|
Address = "192.168.1.10/24";
|
||||||
|
Gateway = "192.168.1.1";
|
||||||
|
DNS = [
|
||||||
|
"192.168.1.1"
|
||||||
|
"1.1.1.1"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user