{ config, lib, pkgs, blocklist-hosts, username, hostname, timezone, locale, ... }: { imports = [ ../../system/hardware-configuration.nix ../../system/hardware/time.nix # Network time sync ../../system/security/doas.nix ../../system/security/gpg.nix ../../system/security/sshd.nix ( import ../../system/app/docker.nix {storageDriver = "btrfs"; inherit username pkgs config lib;} ) ]; # Fix nix path nix.nixPath = [ "nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos" "nixos-config=$HOME/dotfiles/system/configuration.nix" "/nix/var/nix/profiles/per-user/root/channels" ]; # Ensure nix flakes are enabled nix.package = pkgs.nixFlakes; nix.extraOptions = '' experimental-features = nix-command flakes ''; # I'm sorry Stallman-taichou nixpkgs.config.allowUnfree = true; # Kernel modules boot.kernelModules = [ "i2c-dev" "i2c-piix4" ]; # Bootloader boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.efiSysMountPoint = "/boot/efi"; # Networking networking.hostName = hostname; # Define your hostname. networking.networkmanager.enable = true; # Use networkmanager # Timezone and locale time.timeZone = timezone; # time zone i18n.defaultLocale = locale; i18n.extraLocaleSettings = { LC_ADDRESS = locale; LC_IDENTIFICATION = locale; LC_MEASUREMENT = locale; LC_MONETARY = locale; LC_NAME = locale; LC_NUMERIC = locale; LC_PAPER = locale; LC_TELEPHONE = locale; LC_TIME = locale; }; # User account users.users.${username} = { isNormalUser = true; description = "Emmet"; extraGroups = [ "networkmanager" "wheel" ]; packages = with pkgs; []; uid = 1000; }; # System packages environment.systemPackages = with pkgs; [ vim wget zsh git rclone rdiff-backup cryptsetup gocryptfs cryfs ]; # I use zsh btw environment.shells = with pkgs; [ zsh ]; users.defaultUserShell = pkgs.zsh; programs.zsh.enable = true; # It is ok to leave this unchanged for compatibility purposes system.stateVersion = "22.11"; }