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 = { networking = {
hostName = "nixos"; hostName = "chromatic-aberration";
networkmanager.enable = true; networkmanager.enable = true;
}; };
@ -42,12 +42,22 @@
enable = true; enable = true;
wayland.enable = true; wayland.enable = true;
}; };
openssh = {
enable = true;
settings = {
PasswordAuthentication = false;
PermitRootLogin = "no";
};
};
}; };
users.users.sipb = { users.users.sipb = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ "wheel" ]; extraGroups = [ "wheel" ];
shell = pkgs.fish; shell = pkgs.fish;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPDLPakDnAelqFTUudQB8X0T7yc/8ekV3jGqpeJb062l anthonywang"
];
}; };
programs = { programs = {

View file

@ -13,8 +13,7 @@
pkgs = import nixpkgs { inherit system; }; pkgs = import nixpkgs { inherit system; };
in in
{ {
# NOTE: 'nixos' is the default hostname nixosConfigurations.chromatic-aberration = nixpkgs.lib.nixosSystem {
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
modules = [ ./configuration.nix ]; modules = [ ./configuration.nix ];
}; };
formatter.${system} = pkgs.nixfmt-tree; formatter.${system} = pkgs.nixfmt-tree;