nixos-config/machines/massicot/default.nix

45 lines
1 KiB
Nix
Raw Normal View History

2023-07-29 15:34:24 +00:00
{ config, libs, pkgs, ... }:
{
imports = [
./hardware-configuration.nix
./networking.nix
];
2023-07-29 17:15:35 +00:00
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.efi.efiSysMountPoint = "/boot/efi";
boot.loader.grub = {
enable = true;
efiSupport = true;
}
2023-07-29 15:34:24 +00:00
environment.systemPackages = with pkgs; [
git
];
nix.settings.experimental-features = [ "nix-command" "flakes" ];
system.stateVersion = "22.11";
networking = {
hostName = "massicot";
useDHCP = false;
};
services.openssh = {
enable = true;
};
systemd.services.sshd.wantedBy = pkgs.lib.mkForce [ "multi-user.target" ];
users.users.xin = {
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" ];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPBcSvUQnmMFtpftFKIsDqeyUyZHzRg5ewgn3VEcLnss"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIInPn+7cMbH7zCEPJArU/Ot6oq8NHo8a2rYaCfTp7zgd"
];
2023-07-29 17:15:35 +00:00
hashedPassword = "$y$j9T$JOJn97hZndiDamUmmT.iq.$ue7gNZz/b14ur8GhyutOCvFjsv.3rcsHmk7m.WRk6u7";
2023-07-29 15:34:24 +00:00
};
}