69 lines
1.6 KiB
Nix
69 lines
1.6 KiB
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
imports = [ ./hardware-configuration.nix ./services.nix ];
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
networking.hostName = "nixserve";
|
|
networking.hostId = "941b956b";
|
|
networking.networkmanager.enable = true;
|
|
|
|
boot.supportedFilesystems = [ "zfs" ];
|
|
boot.zfs.forceImportRoot = false;
|
|
boot.zfs.extraPools = [ "media" ];
|
|
|
|
time.timeZone = "Europe/Stockholm";
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
console.keyMap = "sv-latin1";
|
|
|
|
services.openssh = {
|
|
enable = true;
|
|
settings = {
|
|
X11Forwarding = false;
|
|
PermitRootLogin = "no";
|
|
PasswordAuthentication = false;
|
|
};
|
|
openFirewall = true;
|
|
};
|
|
|
|
users.users."ulve" = {
|
|
isNormalUser = true;
|
|
shell = pkgs.zsh;
|
|
openssh.authorizedKeys.keys = [
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICpiU4gStAtrJOBSkQA2YJh98fpWPpxWtWgwAGzVa/wc johansson.olov@gmail.com"
|
|
];
|
|
description = "ulve";
|
|
extraGroups = [ "networkmanager" "wheel" "media" "docker" ];
|
|
};
|
|
|
|
users.groups.media = {};
|
|
users.users.jellyfin.extraGroups = [ "media" ];
|
|
|
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
|
|
|
programs.zsh.enable = true;
|
|
security.polkit.enable = true;
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
wget
|
|
curl
|
|
git
|
|
transmission_4
|
|
];
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
nix.gc = {
|
|
automatic = true;
|
|
dates = "weekly";
|
|
options = "--delete-older-than 14d";
|
|
};
|
|
nix.settings.auto-optimise-store = true;
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
system.stateVersion = "26.05";
|
|
}
|