Configure static IPs, but in Nix
This commit is contained in:
parent
d3529bbcdb
commit
0423c6e180
6 changed files with 27 additions and 5 deletions
|
@ -9,7 +9,17 @@
|
|||
../../modules/system
|
||||
];
|
||||
|
||||
networking.hostName = "kitty";
|
||||
networking = {
|
||||
hostName = "kitty";
|
||||
interfaces."eno1".ipv4.addresses = [{
|
||||
address = "10.2.0.101";
|
||||
prefixLength = 8;
|
||||
}];
|
||||
defaultGateway = {
|
||||
address = "10.1.0.1";
|
||||
interface = "eno1";
|
||||
};
|
||||
};
|
||||
|
||||
system = {
|
||||
desktop.enable = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue