80 lines
1.5 KiB
Nix
80 lines
1.5 KiB
Nix
{
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
./disko-config.nix
|
|
];
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
networking.hostName = "AZ-PRM-1";
|
|
networking.networkmanager.enable = true;
|
|
|
|
time.timeZone = "Europe/Berlin";
|
|
|
|
i18n.defaultLocale = "de_DE.UTF-8";
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
neovim
|
|
git
|
|
python3
|
|
python3Packages.pysmb
|
|
];
|
|
|
|
programs.gnupg.agent = {
|
|
enable = true;
|
|
enableSSHSupport = true;
|
|
};
|
|
|
|
services.openssh = {
|
|
enable = true;
|
|
ports = [2022];
|
|
settings = {
|
|
PermitRootLogin = "no";
|
|
PasswordAuthentication = false;
|
|
};
|
|
};
|
|
|
|
networking.firewall.allowedTCPPorts = [587];
|
|
|
|
fileSystems."/mnt/AutoAblage" = {
|
|
device = "//192.168.152.97/AutoAblage";
|
|
fsType = "cifs";
|
|
options = [
|
|
"credentials=${config.age.secrets.smb-autoablage.path}"
|
|
"domain=az-group.local"
|
|
"uid=0"
|
|
"gid=0"
|
|
"file_mode=0777"
|
|
"dir_mode=0777"
|
|
"iocharset=utf8"
|
|
"nofail"
|
|
"x-systemd.automount"
|
|
"x-systemd.idle-timeout=60"
|
|
];
|
|
};
|
|
|
|
fileSystems."/mnt/SkriptHelper" = {
|
|
device = "//192.168.152.98/SkriptHelper";
|
|
fsType = "cifs";
|
|
options = [
|
|
"credentials=${config.age.secrets.smb-autoablage.path}"
|
|
"domain=az-group.local"
|
|
"uid=0"
|
|
"gid=0"
|
|
"file_mode=0777"
|
|
"dir_mode=0777"
|
|
"iocharset=utf8"
|
|
"nofail"
|
|
"x-systemd.automount"
|
|
"x-systemd.idle-timeout=60"
|
|
];
|
|
};
|
|
|
|
system.stateVersion = "25.05";
|
|
}
|