Changes for plato

This commit is contained in:
Root
2021-04-09 14:24:50 -07:00
parent 418c04170c
commit 16fd1ff21f
6 changed files with 60 additions and 316 deletions
+21 -2
View File
@@ -1,6 +1,8 @@
{ config, lib, pkgs, ... }:
with lib; {
with lib;
let primary-ip = "10.0.0.21";
in {
config = {
environment.etc = {
nixos.source = "/state/nixos";
@@ -23,7 +25,7 @@ with lib; {
systemd.tmpfiles.rules = [
"L /root/.gnupg - - - - /state/root/gnupg"
"L /root/.emacs.d - - - - /state/root/emacs.d"
# "L /root/.emacs.d - - - - /state/root/emacs.d"
"L /root/.ssh/id_rsa - - - - /state/root/ssh/id_rsa"
"L /root/.ssh/id_rsa.pub - - - - /state/root/ssh/id_rsa.pub"
"L /root/.ssh/known_hosts - - - - /state/root/ssh/known_hosts"
@@ -31,6 +33,23 @@ with lib; {
"L /etc/ssh/ssh_host_rsa_key - - - - /state/ssh/ssh_host_rsa_key"
];
networking = {
defaultGateway = {
address = "10.0.0.1";
interface = "intif0";
};
interfaces = {
intif0 = {
useDHCP = false;
ipv4.addresses = [{
address = primary-ip;
prefixLength = 22;
}];
};
};
};
services = {
openssh = {
hostKeys = [