From d303924f02ef13db84869ac4faeee6f8f4fe09a3 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Sat, 1 Oct 2022 16:21:34 +0000 Subject: [PATCH] try adding oracle server config --- flake.nix | 2 ++ hosts/{server => oracle}/default.nix | 11 +++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) rename hosts/{server => oracle}/default.nix (58%) diff --git a/flake.nix b/flake.nix index 7fd9403..ccd824a 100644 --- a/flake.nix +++ b/flake.nix @@ -68,6 +68,8 @@ inherit nixpkgs home-manager nur globals wallpapers; }; wsl = import ./hosts/wsl { inherit nixpkgs wsl home-manager globals; }; + oracle = + import ./hosts/oracle { inherit nixpkgs home-manager globals; }; }; darwinConfigurations = with inputs; { diff --git a/hosts/server/default.nix b/hosts/oracle/default.nix similarity index 58% rename from hosts/server/default.nix rename to hosts/oracle/default.nix index fad1431..fd90dc3 100644 --- a/hosts/server/default.nix +++ b/hosts/oracle/default.nix @@ -1,20 +1,23 @@ { nixpkgs, home-manager, globals, ... }: -# System configuration for a generic server +# System configuration for an Oracle free server nixpkgs.lib.nixosSystem { - system = "x86_64-linux"; + system = "aarch64-linux"; specialArgs = { }; modules = [ - globals + (removeAttrs globals [ "mailServer" ]) home-manager.nixosModules.home-manager { - networking.hostName = "sheep"; + networking.hostName = "oracle"; gui.enable = false; colorscheme = (import ../../modules/colorscheme/gruvbox); passwordHash = "$6$PZYiMGmJIIHAepTM$Wx5EqTQ5GApzXx58nvi8azh16pdxrN6Qrv1wunDlzveOgawitWzcIxuj76X9V868fsPi/NOIEO8yVXqwzS9UF."; + publicKey = + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB+AbmjGEwITk5CK9y7+Rg27Fokgj9QEjgc9wST6MA3s"; } ../common.nix ../../modules/nixos + ../../modules/services/sshd.nix ]; }