feat: add new host rigel

This commit is contained in:
tux
2025-02-22 21:10:19 +05:30
parent 55e31c03fc
commit 8f99c087bb
6 changed files with 362 additions and 10 deletions

43
hosts/rigel/default.nix Normal file
View File

@ -0,0 +1,43 @@
{
pkgs,
username,
outputs,
inputs,
email,
...
}: {
imports = [
../../modules/droid/sshd.nix
];
services.openssh = {
enable = true;
ports = [8022];
authorizedKeys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL+OzPUe2ECPC929DqpkM39tl/vdNAXfsRnmrGfR+X3D ${email}"
];
};
user.shell = "${pkgs.zsh}/bin/zsh";
environment.packages = with pkgs; [
nano
git
neovim
openssh
];
home-manager = {
config = ./home.nix;
backupFileExtension = "backup";
extraSpecialArgs = {inherit inputs outputs username email;};
useGlobalPkgs = true;
};
# Set up nix for flakes
nix.extraOptions = ''
experimental-features = nix-command flakes
'';
system.stateVersion = "24.05";
}