# Edit this configuration file to define what should be installed on # your system. Help is available in the configuration.nix(5) man page # and in the NixOS manual (accessible by running ‘nixos-help’). { config, pkgs, lib, ... }: { # Optionals desktop_computer = true; office = true; devel.rust = true; devel.c = true; devel.haskell = false; devel.java = false; devel.ada = true; devel.asic = false; desktop_setup = lib.optionals (config.desktop_computer) [./desktop_environment.nix]; imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix ] ++ config.desktop_setup; # Bootloader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; networking.hostName = "amelia"; # Define your hostname. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # Enable networking networking.networkmanager.enable = true; # Set your time zone. time.timeZone = "Europe/Berlin"; # Select internationalisation properties. i18n.defaultLocale = "de_DE.UTF-8"; i18n.extraLocaleSettings = { LC_ADDRESS = "de_DE.UTF-8"; LC_IDENTIFICATION = "de_DE.UTF-8"; LC_MEASUREMENT = "de_DE.UTF-8"; LC_MONETARY = "de_DE.UTF-8"; LC_NAME = "de_DE.UTF-8"; LC_NUMERIC = "de_DE.UTF-8"; LC_PAPER = "de_DE.UTF-8"; LC_TELEPHONE = "de_DE.UTF-8"; LC_TIME = "de_DE.UTF-8"; }; # Configure keymap in X11 services.xserver.xkb = { layout = "de"; variant = ""; }; # Configure console keymap console.keyMap = "de"; # Define a user account. Don't forget to set a password with ‘passwd’. users.users.nichkara = { isNormalUser = true; description = "Nina Chloé Kassandra"; extraGroups = [ "networkmanager" "wheel" "docker"]; packages = with pkgs; []; shell = pkgs.zsh; }; # List packages installed in system profile. To search, run: # $ nix search wget pkg.office = lib.optionals (config.office) config.components.office.packages; pkg.devel.rust = lib.optionals (config.devel.rust) config.components.devel.rust.packages; pkg.devel.c = lib.optionals (config.devel.c) config.components.devel.c.packages; pkg.devel.haskell = lib.optionals (config.devel.haskell) config.components.devel.haskell.packages; pkg.devel.java = lib.optionals (config.devel.java) config.components.devel.java.packages; pkg.devel.ada = lib.optionals (config.devel.ada) config.components.devel.ada.packages; pkg.devel.asic = lib.optionals (config.devel.asic) config.components.devel.asic.packages; additional_packages = config.pkg.office ++ config.pkg.devel.rust ++ config.pkg.devel.c ++ config.pkg.devel.haskell ++ config.pkg.devel.java ++ config.pkg.devel.ada ++ config.pkg.devel.asic; environment.systemPackages = with pkgs; [ vim wget git neovim python313Packages.pynvim networkmanager kitty hyfetch ] ++ config.additional_packages; programs.zsh = { enable = true; }; # Some programs need SUID wrappers, can be configured further or are # started in user sessions. programs.mtr.enable = true; programs.gnupg.agent = { enable = true; enableSSHSupport = true; }; # List services that you want to enable: # Enable the OpenSSH daemon. services.openssh.enable = true; # Open ports in the firewall. networking.firewall.allowedTCPPorts = [ 22 ]; networking.firewall.allowedUDPPorts = [ 22 ]; # Or disable the firewall altogether. # networking.firewall.enable = false; # 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 = "25.05"; }