From e187328689cda08aefda7f1470e14d9bb21c46bd Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Wed, 24 Sep 2025 21:54:57 -0400 Subject: [PATCH] Change hostname to chromatic-aberration, enable SSH Since it's a Chromebox and that name sounds vaguely cool I guess --- configuration.nix | 12 +++++++++++- flake.nix | 3 +-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/configuration.nix b/configuration.nix index 7925cc3..b91dd51 100644 --- a/configuration.nix +++ b/configuration.nix @@ -32,7 +32,7 @@ }; networking = { - hostName = "nixos"; + hostName = "chromatic-aberration"; networkmanager.enable = true; }; @@ -42,12 +42,22 @@ enable = true; wayland.enable = true; }; + openssh = { + enable = true; + settings = { + PasswordAuthentication = false; + PermitRootLogin = "no"; + }; + }; }; users.users.sipb = { isNormalUser = true; extraGroups = [ "wheel" ]; shell = pkgs.fish; + openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPDLPakDnAelqFTUudQB8X0T7yc/8ekV3jGqpeJb062l anthonywang" + ]; }; programs = { diff --git a/flake.nix b/flake.nix index 6a092ac..0b0605d 100644 --- a/flake.nix +++ b/flake.nix @@ -13,8 +13,7 @@ pkgs = import nixpkgs { inherit system; }; in { - # NOTE: 'nixos' is the default hostname - nixosConfigurations.nixos = nixpkgs.lib.nixosSystem { + nixosConfigurations.chromatic-aberration = nixpkgs.lib.nixosSystem { modules = [ ./configuration.nix ]; }; formatter.${system} = pkgs.nixfmt-tree;