···11+# Edit this configuration file to define what should be installed on your system. Help is available in the configuration.nix(5) man page
22+# and in the NixOS manual (accessible by running ‘nixos-help’).
33+44+{ config, pkgs, ... }:
55+66+{
77+ imports =
88+ [ # Include the results of the hardware scan.
99+ ./hardware-configuration.nix
1010+ ../common.nix
1111+ ../../desktop/gnome.nix
1212+ ./networking.nix
1313+ ];
1414+1515+ boot.loader.systemd-boot.enable = true;
1616+ boot.loader.efi.canTouchEfiVariables = true;
1717+1818+ # Use latest kernel.
1919+ boot.kernelPackages = pkgs.linuxPackages_latest;
2020+2121+ # Set your time zone.
2222+ time.timeZone = "Europe/Kyiv";
2323+2424+ # Select internationalisation properties.
2525+ i18n.defaultLocale = "en_US.UTF-8";
2626+2727+ i18n.extraLocaleSettings = {
2828+ LC_ADDRESS = "uk_UA.UTF-8";
2929+ LC_IDENTIFICATION = "uk_UA.UTF-8";
3030+ LC_MEASUREMENT = "uk_UA.UTF-8";
3131+ LC_MONETARY = "uk_UA.UTF-8";
3232+ LC_NAME = "uk_UA.UTF-8";
3333+ LC_NUMERIC = "uk_UA.UTF-8";
3434+ LC_PAPER = "uk_UA.UTF-8";
3535+ LC_TELEPHONE = "uk_UA.UTF-8";
3636+ LC_TIME = "uk_UA.UTF-8";
3737+ };
3838+3939+ # Configure keymap in X11
4040+ services.xserver.xkb = {
4141+ layout = "us";
4242+ variant = "";
4343+ };
4444+4545+ # Define a user account. Don't forget to set a password with ‘passwd’.
4646+ users.users.bpavuk = {
4747+ isNormalUser = true;
4848+ description = "Bohdan";
4949+ extraGroups = [ "networkmanager" "wheel" ];
5050+ packages = with pkgs; [];
5151+ useDefaultShell = true;
5252+ };
5353+5454+ programs = {
5555+ neovim = {
5656+ enable = true;
5757+ defaultEditor = true;
5858+ };
5959+ firefox = {
6060+ enable = true;
6161+ };
6262+ };
6363+6464+6565+ # Some programs need SUID wrappers, can be configured further or are
6666+ # started in user sessions.
6767+ # programs.mtr.enable = true;
6868+ # programs.gnupg.agent = {
6969+ # enable = true;
7070+ # enableSSHSupport = true;
7171+ # };
7272+7373+ # List services that you want to enable:
7474+7575+ services.spice-vdagentd.enable = true;
7676+ services.qemuGuest.enable = true;
7777+7878+ # Enable the OpenSSH daemon.
7979+ services.openssh.enable = true;
8080+8181+ networking.firewall = rec {
8282+ allowedTCPPorts = [
8383+ 80
8484+ 443
8585+ 3753 # qbittorrent port
8686+ ];
8787+ allowedTCPPortRanges = [ { from = 1714; to = 1764; } ];
8888+ allowedUDPPortRanges = allowedTCPPortRanges;
8989+ };
9090+9191+ # Open ports in the firewall.
9292+ # networking.firewall.allowedTCPPorts = [ ... ];
9393+ # networking.firewall.allowedUDPPorts = [ ... ];
9494+ # Or disable the firewall altogether.
9595+ # networking.firewall.enable = false;
9696+9797+ # This value determines the NixOS release from which the default
9898+ # settings for stateful data, like file locations and database versions
9999+ # on your system were taken. It‘s perfectly fine and recommended to leave
100100+ # this value at the release version of the first install of this system.
101101+ # Before changing this value read the documentation for this option
102102+ # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
103103+ system.stateVersion = "25.05"; # Did you read the comment?
104104+}