{ config, pkgs, user, lib, ... }: { nix = { package = pkgs.nixFlakes; extraOptions = "experimental-features = nix-command flakes"; settings.auto-optimise-store = true; gc = { automatic = true; dates = "weekly"; options = "--delete-older-than 7d"; }; }; # Add non-free packages nixpkgs.config.allowUnfree = true; nixpkgs.overlays = import ../../lib/overlays.nix; # Use normal kernel boot.kernelPackages = pkgs.linuxPackages; # Use the systemd-boot EFI boot loader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; # Set networking options networking.hostName = "torus"; networking.networkmanager.enable = true; networking.firewall.checkReversePath = "loose"; # Set your time zone. time.timeZone = "America/Los_Angeles"; i18n.defaultLocale = "en_US.UTF-8"; # Enable virtualisation virtualisation.docker.enable = true; virtualisation.docker.storageDriver = "btrfs"; # Enable zsh programs.zsh.enable = true; # Define user account. users.users.${user} = { isNormalUser = true; extraGroups = [ "wheel" "docker" ]; # Enable ‘sudo’ for the user. shell = pkgs.zsh; }; # List packages installed in system profile. To search, run: # $ nix search wget environment.systemPackages = with pkgs; [ vim git killall pciutils syncthing pinentry-curses trash-cli unzip nnn ]; # Enable user services #services = { # syncthing = { # enable = true; # user = "${user}"; # }; #}; # Enable the OpenSSH daemon. services.openssh.enable = true; services.pcscd.enable = true; programs.gnupg.agent = { enable = true; pinentryFlavor = "curses"; enableSSHSupport = true; }; # Enable modules imports = [ ../../modules ]; modules = { server = { jellyfin.enable = true; }; services = { samba.enable = true; }; devel = { tooling.enable = true; }; }; system.stateVersion = "23.05"; # Did you read the comment? }