summaryrefslogtreecommitdiff
path: root/Com/Simatime
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2019-11-14 06:34:48 -0800
committerBen Sima <ben@bsima.me>2019-11-14 06:34:48 -0800
commitc2a556abd8c7d39fbbe333b514217b1e621048cb (patch)
tree8f45c5e2c49e6ac7e1a8cc8f2ca822c843726c90 /Com/Simatime
parentc835bc51ce83d12d4cb98c3961d4a3051af60bd5 (diff)
Re-namespace Serval under Com.Simatime
I don't have runserval.com yet, so I'm not gonna put the cart before the horse
Diffstat (limited to 'Com/Simatime')
-rw-r--r--Com/Simatime/Serval/hardware.nix6
-rw-r--r--Com/Simatime/Serval/networking.nix29
2 files changed, 35 insertions, 0 deletions
diff --git a/Com/Simatime/Serval/hardware.nix b/Com/Simatime/Serval/hardware.nix
new file mode 100644
index 0000000..8c88cb7
--- /dev/null
+++ b/Com/Simatime/Serval/hardware.nix
@@ -0,0 +1,6 @@
+{ ... }:
+{
+ imports = [ <nixpkgs/nixos/modules/profiles/qemu-guest.nix> ];
+ boot.loader.grub.device = "/dev/vda";
+ fileSystems."/" = { device = "/dev/vda1"; fsType = "ext4"; };
+}
diff --git a/Com/Simatime/Serval/networking.nix b/Com/Simatime/Serval/networking.nix
new file mode 100644
index 0000000..e13a6f5
--- /dev/null
+++ b/Com/Simatime/Serval/networking.nix
@@ -0,0 +1,29 @@
+{ lib, ... }: {
+ # This file was populated at runtime with the networking
+ # details gathered from the active system.
+ networking = {
+ nameservers = [
+ "127.0.0.53"
+ ];
+ defaultGateway = "157.245.160.1";
+ defaultGateway6 = "";
+ dhcpcd.enable = false;
+ usePredictableInterfaceNames = lib.mkForce true;
+ interfaces = {
+ eth0 = {
+ ipv4.addresses = [
+ { address="157.245.167.217"; prefixLength=20; }
+ { address="10.46.0.8"; prefixLength=16; }
+ ];
+ ipv6.addresses = [
+ { address="fe80::242a:8bff:feb7:6afb"; prefixLength=64; }
+ ];
+ ipv4.routes = [ { address = "157.245.160.1"; prefixLength = 32; } ];
+ ipv6.routes = [ { address = ""; prefixLength = 32; } ];
+ };
+ };
+ };
+ services.udev.extraRules = ''
+ ATTR{address}=="26:2a:8b:b7:6a:fb", NAME="eth0"
+ '';
+}