mirror of
https://github.com/SebastianWendel/srx-platform-nix.git
synced 2024-09-20 04:19:01 +02:00
28 lines
503 B
Nix
28 lines
503 B
Nix
|
{ self, ... }:
|
||
|
{
|
||
|
imports = [
|
||
|
self.nixosModules.roles-workstation
|
||
|
./hardware.nix
|
||
|
./storage.nix
|
||
|
];
|
||
|
|
||
|
system.stateVersion = "24.05";
|
||
|
|
||
|
networking = {
|
||
|
hostName = "dev-vm";
|
||
|
hostId = "ea0023ed";
|
||
|
};
|
||
|
|
||
|
systemd.network = {
|
||
|
enable = true;
|
||
|
networks."10-uplink" = {
|
||
|
matchConfig.Name = "enp1s0";
|
||
|
address = [ "192.168.122.26/24" ];
|
||
|
routes = [
|
||
|
{ routeConfig.Gateway = "192.168.122.1"; }
|
||
|
{ routeConfig.Gateway = "fe80::1"; }
|
||
|
];
|
||
|
};
|
||
|
};
|
||
|
}
|