43 lines
1023 B
Nix
43 lines
1023 B
Nix
{ config, pkgs, myUser, release, disko, mainDisk, ... }:
|
|
|
|
{
|
|
networking.hostName = "isengard";
|
|
|
|
imports = [
|
|
disko.nixosModules.disko
|
|
];
|
|
disko.devices = import ../disko/btrfs-legacy.nix {
|
|
inherit mainDisk;
|
|
};
|
|
boot.loader = {
|
|
grub.enable = true;
|
|
};
|
|
|
|
time.timeZone = "Europe/Bucharest";
|
|
|
|
programs.zsh.enable = true;
|
|
users.defaultUserShell = pkgs.zsh;
|
|
|
|
users.users.${myUser} = {
|
|
isNormalUser = true;
|
|
extraGroups = [ "wheel" ];
|
|
openssh.authorizedKeys.keys = [
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOiNyGO4RAxSdxvn2ZIBZ2Ze4iVVMrBNmu/V9JO70PoT victor@battleship"
|
|
];
|
|
};
|
|
|
|
users.users.root.openssh.authorizedKeys.keys = [
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOiNyGO4RAxSdxvn2ZIBZ2Ze4iVVMrBNmu/V9JO70PoT victor@battleship"
|
|
];
|
|
|
|
networking.useDHCP = true;
|
|
|
|
services.openssh = {
|
|
enable = true;
|
|
settings.PasswordAuthentication = false;
|
|
};
|
|
|
|
system.stateVersion = release;
|
|
}
|
|
|