2024-08-11 18:46:32 +02:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
{
|
2024-08-11 19:53:22 +02:00
|
|
|
imports = [ ./hardware-configuration.nix ];
|
2024-08-11 19:07:51 +02:00
|
|
|
|
2024-08-11 18:46:32 +02:00
|
|
|
boot = {
|
|
|
|
|
loader = {
|
|
|
|
|
systemd-boot.enable = true;
|
|
|
|
|
efi.canTouchEfiVariables = true;
|
|
|
|
|
};
|
|
|
|
|
kernelPackages = pkgs.linuxPackages_latest;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
nix.settings.experimental-features = [
|
|
|
|
|
"nix-command"
|
|
|
|
|
"flakes"
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
time.timeZone = "Europe/Amsterdam";
|
|
|
|
|
|
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
|
|
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
|
|
|
|
|
|
networking.hostName = "archtika-demo-server";
|
|
|
|
|
|
2024-08-11 22:40:11 +02:00
|
|
|
security.pam = {
|
|
|
|
|
sshAgentAuth.enable = true;
|
|
|
|
|
services.sudo.sshAgentAuth = true;
|
|
|
|
|
};
|
2024-08-11 22:32:41 +02:00
|
|
|
|
2024-08-11 18:46:32 +02:00
|
|
|
users = {
|
|
|
|
|
mutableUsers = false;
|
|
|
|
|
users = {
|
|
|
|
|
root.hashedPassword = "$y$j9T$MuWDs5Ind6VPEM78u5VTy/$XAuRCaOPtS/8Vj8XgpxB/XX2ygftNLql2VrFWcC/sq7";
|
|
|
|
|
thiloho = {
|
|
|
|
|
isNormalUser = true;
|
|
|
|
|
extraGroups = [
|
|
|
|
|
"wheel"
|
|
|
|
|
"networkmanager"
|
|
|
|
|
];
|
|
|
|
|
hashedPassword = "$y$j9T$Y0ffzVb7wrZSdCKbiYHin0$oahgfFqH/Eep6j6f4iKPETEfGZSOkgu74UT2eyG2uI1";
|
|
|
|
|
openssh.authorizedKeys.keys = [
|
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBj6+r+vMXJyy5wvQTLyfd2rIw62WCg9eIpwsciHg4ym thiloho@pc"
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
services.openssh = {
|
|
|
|
|
enable = true;
|
|
|
|
|
settings.PasswordAuthentication = false;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
system.stateVersion = "24.11";
|
|
|
|
|
}
|