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’).
9 [ # Include the results of the hardware scan.
10 ./hardware-configuration.nix
14 boot.loader.systemd-boot.enable = true;
15 boot.loader.efi.canTouchEfiVariables = true;
17 boot.extraModprobeConfig =
19 options radeon si_support=0 cik_support=0
20 options amdgpu si_support=1 cik_support=1
23 networking.hostName = "elitedesk"; # Define your hostname.
24 # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
25 networking.interfaces.eno1.wakeOnLan.enable = true;
27 # Configure network proxy if necessary
28 # networking.proxy.default = "http://user:password@proxy:port/";
29 # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
32 networking.networkmanager.enable = true;
35 time.timeZone = "Europe/Zagreb";
37 # Select internationalisation properties.
38 i18n.defaultLocale = "en_US.UTF-8";
40 i18n.extraLocaleSettings = {
41 LC_ADDRESS = "hr_HR.UTF-8";
42 LC_IDENTIFICATION = "hr_HR.UTF-8";
43 LC_MEASUREMENT = "hr_HR.UTF-8";
44 LC_MONETARY = "hr_HR.UTF-8";
45 LC_NAME = "hr_HR.UTF-8";
46 LC_NUMERIC = "hr_HR.UTF-8";
47 LC_PAPER = "hr_HR.UTF-8";
48 LC_TELEPHONE = "hr_HR.UTF-8";
49 LC_TIME = "hr_HR.UTF-8";
52 # Configure console keymap
53 console.keyMap = "croat";
55 # Enable CUPS to print documents.
56 services.printing.enable = true;
58 # Enable sound with pipewire.
63 autosuggestions.enable = true;
64 syntaxHighlighting.enable = true;
67 # Define a user account. Don't forget to set a password with ‘passwd’.
72 extraGroups = [ "networkmanager" "wheel" "libvirtd" ];
73 openssh.authorizedKeys.keys =
74 [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIMI2evf5v4ghSCJWacQJGMINjYW48WZYLvL6KIob1rd"
75 "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKeuxm8MnRjkVnrE+lZjlI+MuqzvD78OmvSgd43UMJ6b" ];
79 # Allow unfree packages
80 nixpkgs.config.allowUnfree = true;
82 # List packages installed in system profile. To search, run:
84 environment.systemPackages = with pkgs; [
85 # vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
91 virtualisation.libvirtd.enable = true;
93 # Some programs need SUID wrappers, can be configured further or are
94 # started in user sessions.
95 # programs.mtr.enable = true;
96 # programs.gnupg.agent = {
98 # enableSSHSupport = true;
101 # List services that you want to enable:
103 # Enable the OpenSSH daemon.
104 services.openssh.enable = true;
106 services.smartd.enable = true;
113 aliases = "/etc/aliases";
117 from = "duje.mihanovic@skole.hr";
118 host = "smtp.skole.hr";
120 user = "duje.mihanovic";
121 passwordeval = "cat /secrets/email.txt";
126 environment.etc."aliases" = {
128 root: duje.mihanovic@skole.hr
129 duje: duje.mihanovic@skole.hr
130 mailer-daemon: duje.mihanovic@skole.hr
135 # Open ports in the firewall.
136 # networking.firewall.allowedTCPPorts = [ ... ];
137 # networking.firewall.allowedUDPPorts = [ ... ];
138 # Or disable the firewall altogether.
139 # networking.firewall.enable = false;
141 # This value determines the NixOS release from which the default
142 # settings for stateful data, like file locations and database versions
143 # on your system were taken. It‘s perfectly fine and recommended to leave
144 # this value at the release version of the first install of this system.
145 # Before changing this value read the documentation for this option
146 # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
147 system.stateVersion = "23.05"; # Did you read the comment?