{ inputs, system, pkgs, ... }: { imports = [ ./hardware-configuration.nix ./modules/light ./modules/sound ./modules/age ./modules/ssh ./modules/git ./modules/zsh ./modules/tmux ./modules/vim ./modules/emacs ./modules/foot ./modules/hyprland ./modules/waybar ./modules/swaylock ./modules/dunst ./modules/bemenu ./modules/screenshot ./modules/fzf ./modules/syncthing ./modules/firefox ./modules/mullvad ./modules/calibre ./modules/go ./modules/nix ./modules/javascript ./modules/spotify ./modules/podman ./modules/k8s ./modules/work ]; nix.settings.experimental-features = [ "nix-command" "flakes" ]; # Allow unfree packages nixpkgs.config.allowUnfree = true; boot = { kernelPackages = pkgs.linuxPackages_latest; loader = { systemd-boot.enable = true; efi.canTouchEfiVariables = true; }; initrd.secrets = { "/crypto_keyfile.bin" = null; }; }; networking = { hostName = "pinwheel"; wireless.enable = false; # Wireless is managed by networkmanager networkmanager.enable = true; }; # Open ports in the firewall. # networking.firewall.allowedTCPPorts = [ ... ]; # networking.firewall.allowedUDPPorts = [ ... ]; # Or disable the firewall altogether. # networking.firewall.enable = false; # Set your time zone. time.timeZone = "Europe/Stockholm"; # Select internationalisation properties. i18n.defaultLocale = "en_US.UTF-8"; i18n.extraLocaleSettings = { LC_ADDRESS = "sv_SE.UTF-8"; LC_IDENTIFICATION = "sv_SE.UTF-8"; LC_MEASUREMENT = "sv_SE.UTF-8"; LC_MONETARY = "sv_SE.UTF-8"; LC_NAME = "sv_SE.UTF-8"; LC_NUMERIC = "sv_SE.UTF-8"; LC_PAPER = "sv_SE.UTF-8"; LC_TELEPHONE = "sv_SE.UTF-8"; LC_TIME = "en_US.UTF-8"; }; hardware.opengl.enable = true; programs.dconf.enable = true; # Configure console keymap console.keyMap = "sv-latin1"; # Define a user account. Don't forget to set a password with ‘passwd’. users.users.alex = { isNormalUser = true; description = "alex"; extraGroups = [ "networkmanager" "wheel" ]; packages = []; }; environment.systemPackages = with pkgs; [ inputs.agenix.packages."${system}".default coreutils gnumake bash ]; fonts.packages = with pkgs; [ noto-fonts noto-fonts-cjk noto-fonts-emoji nerdfonts liberation_ttf ]; # Enable the OpenSSH daemon. services.openssh = { enable = true; hostKeys = [{ path = "/etc/ssh/pinwheel"; type = "ed25519"; }]; }; # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave # this value at the release version of the first install of this system. # Before changing this value read the documentation for this option # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). system.stateVersion = "23.05"; # Did you read the comment? }