55 lines
1.3 KiB
Nix
55 lines
1.3 KiB
Nix
{ config, pkgs, myUser, release, disko, mainDisk, ... }:
|
|
|
|
{
|
|
networking.hostName = "palantir";
|
|
|
|
imports = [
|
|
disko.nixosModules.disko
|
|
];
|
|
disko.devices = import ../disko/simple-efi-gpt.nix {
|
|
inherit mainDisk;
|
|
};
|
|
boot.loader = {
|
|
systemd-boot.enable = true;
|
|
efi.canTouchEfiVariables = true;
|
|
};
|
|
|
|
time.timeZone = "Europe/Vienna";
|
|
|
|
users.users.${myUser} = {
|
|
isNormalUser = true;
|
|
extraGroups = [
|
|
"wheel"
|
|
"video"
|
|
"render"
|
|
"input"
|
|
];
|
|
shell = pkgs.zsh;
|
|
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;
|
|
};
|
|
|
|
fileSystems."/games" = {
|
|
device = "/dev/disk/by-uuid/90bea801-2b8a-40db-8862-ccc55f2b2262";
|
|
fsType = "ext4";
|
|
options = [
|
|
"nofail" # Prevent system from failing if this drive doesn't mount
|
|
];
|
|
};
|
|
|
|
system.stateVersion = release;
|
|
}
|
|
|