6 ./hardware-configuration.nix
9 boot.loader.systemd-boot.enable = true;
10 boot.loader.efi.canTouchEfiVariables = true;
12 boot.extraModprobeConfig =
14 options radeon si_support=0 cik_support=0
15 options amdgpu si_support=1 cik_support=1
18 networking.hostName = "elitedesk"; # Define your hostname.
19 networking.interfaces.eno1.wakeOnLan.enable = true;
23 matchConfig.Name = "eno1";
25 linkConfig.RequiredForOnline = "routable";
29 time.timeZone = "Europe/Zagreb";
31 i18n.defaultLocale = "en_US.UTF-8";
33 i18n.extraLocaleSettings = {
34 LC_ADDRESS = "hr_HR.UTF-8";
35 LC_IDENTIFICATION = "hr_HR.UTF-8";
36 LC_MEASUREMENT = "hr_HR.UTF-8";
37 LC_MONETARY = "hr_HR.UTF-8";
38 LC_NAME = "hr_HR.UTF-8";
39 LC_NUMERIC = "hr_HR.UTF-8";
40 LC_PAPER = "hr_HR.UTF-8";
41 LC_TELEPHONE = "hr_HR.UTF-8";
42 LC_TIME = "hr_HR.UTF-8";
47 packages = with pkgs; [ terminus_font ];
55 autosuggestions.enable = true;
56 syntaxHighlighting.enable = true;
63 extraGroups = [ "networkmanager" "wheel" "libvirtd" ];
64 openssh.authorizedKeys.keys =
65 [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIMI2evf5v4ghSCJWacQJGMINjYW48WZYLvL6KIob1rd"
66 "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKeuxm8MnRjkVnrE+lZjlI+MuqzvD78OmvSgd43UMJ6b" ];
69 users.users.root.openssh.authorizedKeys.keys =
70 [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIMI2evf5v4ghSCJWacQJGMINjYW48WZYLvL6KIob1rd"
71 "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKeuxm8MnRjkVnrE+lZjlI+MuqzvD78OmvSgd43UMJ6b" ];
73 nixpkgs.config.allowUnfree = true;
75 environment.systemPackages = with pkgs; [
84 hardware.sensor.hddtemp = {
86 drives = [ "/dev/disk/by-path/*" ];
89 virtualisation.libvirtd.enable = true;
91 services.openssh.enable = true;
93 services.smartd.enable = true;
100 aliases = "/etc/aliases";
104 from = "duje.mihanovic@skole.hr";
105 host = "smtp.skole.hr";
107 user = "duje.mihanovic";
108 passwordeval = "/run/current-system/sw/bin/cat /secrets/email.txt";
113 environment.etc."aliases" = {
115 root: duje.mihanovic@skole.hr
116 duje: duje.mihanovic@skole.hr
117 mailer-daemon: duje.mihanovic@skole.hr
122 # Open ports in the firewall.
123 # networking.firewall.allowedTCPPorts = [ ... ];
124 # networking.firewall.allowedUDPPorts = [ ... ];
125 # Or disable the firewall altogether.
126 # networking.firewall.enable = false;
128 system.stateVersion = "23.05";