Change hostname to chromatic-abberation, enable SSH

Since it's a Chromebox and that name sounds vaguely cool I guess
This commit is contained in:
Anthony Wang 2025-09-24 21:54:57 -04:00
parent 7d6204cad9
commit e909e5c746
No known key found for this signature in database
2 changed files with 12 additions and 3 deletions

View file

@ -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 = {

View file

@ -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;