|
| 1 | +# Edit this configuration file to define what should be installed on |
| 2 | +# your system. Help is available in the configuration.nix(5) man page |
| 3 | +# and in the NixOS manual (accessible by running ‘nixos-help’). |
| 4 | + |
| 5 | +{ config, pkgs, ... }: |
| 6 | + |
| 7 | +{ |
| 8 | + imports = |
| 9 | + [ # Include the results of the hardware scan. |
| 10 | + ./hardware-configuration.nix |
| 11 | + ]; |
| 12 | + |
| 13 | + # Bootloader. |
| 14 | + boot.loader.systemd-boot.enable = true; |
| 15 | + boot.loader.efi.canTouchEfiVariables = true; |
| 16 | + |
| 17 | + networking.hostName = "nodeA"; # Define your hostname. |
| 18 | + # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. |
| 19 | + |
| 20 | + # Configure network proxy if necessary |
| 21 | + # networking.proxy.default = "http://user:password@proxy:port/"; |
| 22 | + # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; |
| 23 | + |
| 24 | + # Enable networking |
| 25 | + networking.networkmanager.enable = true; |
| 26 | + |
| 27 | + # Set your time zone. |
| 28 | + time.timeZone = "America/Los_Angeles"; |
| 29 | + |
| 30 | + # Select internationalisation properties. |
| 31 | + i18n.defaultLocale = "en_US.UTF-8"; |
| 32 | + |
| 33 | + i18n.extraLocaleSettings = { |
| 34 | + LC_ADDRESS = "en_US.UTF-8"; |
| 35 | + LC_IDENTIFICATION = "en_US.UTF-8"; |
| 36 | + LC_MEASUREMENT = "en_US.UTF-8"; |
| 37 | + LC_MONETARY = "en_US.UTF-8"; |
| 38 | + LC_NAME = "en_US.UTF-8"; |
| 39 | + LC_NUMERIC = "en_US.UTF-8"; |
| 40 | + LC_PAPER = "en_US.UTF-8"; |
| 41 | + LC_TELEPHONE = "en_US.UTF-8"; |
| 42 | + LC_TIME = "en_US.UTF-8"; |
| 43 | + }; |
| 44 | + |
| 45 | + # Define a user account. Don't forget to set a password with ‘passwd’. |
| 46 | + users.users.das = { |
| 47 | + isNormalUser = true; |
| 48 | + description = "das"; |
| 49 | + extraGroups = [ "networkmanager" "wheel" ]; |
| 50 | + packages = with pkgs; []; |
| 51 | + }; |
| 52 | + |
| 53 | + # Allow unfree packages |
| 54 | + nixpkgs.config.allowUnfree = true; |
| 55 | + |
| 56 | + # List packages installed in system profile. To search, run: |
| 57 | + # $ nix search wget |
| 58 | + environment.systemPackages = with pkgs; [ |
| 59 | + vim |
| 60 | + # wget |
| 61 | + ]; |
| 62 | + |
| 63 | + # Some programs need SUID wrappers, can be configured further or are |
| 64 | + # started in user sessions. |
| 65 | + # programs.mtr.enable = true; |
| 66 | + # programs.gnupg.agent = { |
| 67 | + # enable = true; |
| 68 | + # enableSSHSupport = true; |
| 69 | + # }; |
| 70 | + |
| 71 | + # List services that you want to enable: |
| 72 | + |
| 73 | + # Enable the OpenSSH daemon. |
| 74 | + services.openssh.enable = true; |
| 75 | + |
| 76 | + # Open ports in the firewall. |
| 77 | + # networking.firewall.allowedTCPPorts = [ ... ]; |
| 78 | + # networking.firewall.allowedUDPPorts = [ ... ]; |
| 79 | + # Or disable the firewall altogether. |
| 80 | + networking.firewall.enable = false; |
| 81 | + |
| 82 | + # This value determines the NixOS release from which the default |
| 83 | + # settings for stateful data, like file locations and database versions |
| 84 | + # on your system were taken. It‘s perfectly fine and recommended to leave |
| 85 | + # this value at the release version of the first install of this system. |
| 86 | + # Before changing this value read the documentation for this option |
| 87 | + # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). |
| 88 | + system.stateVersion = "25.05"; # Did you read the comment? |
| 89 | + |
| 90 | +} |
0 commit comments