From f8af811d9029ae946f03154165085d92fa22ad45 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Tue, 14 Dec 2021 19:20:02 +0100 Subject: [PATCH] hackens-org: prepare for first test --- hosts/hackens-org/configuration.nix | 4 ++-- profiles/core-hackens/default.nix | 1 + profiles/core-hackens/personal-users.nix | 2 +- profiles/core-hackens/ssh-server.nix | 2 +- profiles/core-hackens/static-dns.nix | 7 +++++++ 5 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 profiles/core-hackens/static-dns.nix diff --git a/hosts/hackens-org/configuration.nix b/hosts/hackens-org/configuration.nix index fbdbb13..2b0e90c 100644 --- a/hosts/hackens-org/configuration.nix +++ b/hosts/hackens-org/configuration.nix @@ -10,8 +10,8 @@ ./hardware-configuration.nix ./physical.nix ../../profiles/core-hackens - # ./wiki.nix - ./bridge.nix + ./wiki.nix + # ./bridge.nix # ./webpass.nix # ./gha.nix # ./sync.nix diff --git a/profiles/core-hackens/default.nix b/profiles/core-hackens/default.nix index 2226a3a..1bffbc0 100644 --- a/profiles/core-hackens/default.nix +++ b/profiles/core-hackens/default.nix @@ -2,5 +2,6 @@ imports = [ ./personal-users.nix ./ssh-server.nix + ./static-dns.nix ]; } diff --git a/profiles/core-hackens/personal-users.nix b/profiles/core-hackens/personal-users.nix index 9de92f7..333389e 100644 --- a/profiles/core-hackens/personal-users.nix +++ b/profiles/core-hackens/personal-users.nix @@ -1,4 +1,4 @@ -{}: +{ ... }: { users.users = { rlahfa = { diff --git a/profiles/core-hackens/ssh-server.nix b/profiles/core-hackens/ssh-server.nix index 4579bd0..6ef5683 100644 --- a/profiles/core-hackens/ssh-server.nix +++ b/profiles/core-hackens/ssh-server.nix @@ -1,4 +1,4 @@ -{ }: +{ ... }: { # Enable the OpenSSH daemon. services.openssh.enable = true; diff --git a/profiles/core-hackens/static-dns.nix b/profiles/core-hackens/static-dns.nix new file mode 100644 index 0000000..21f27dc --- /dev/null +++ b/profiles/core-hackens/static-dns.nix @@ -0,0 +1,7 @@ +{ ... }: +{ + networking.nameservers = [ + "1.1.1.1" + "8.8.8.8" + ]; +}