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";
28 { routeConfig.Gateway = "192.168.1.1"; }
30 dns = [ "192.168.1.1" ];
31 linkConfig.RequiredForOnline = "routable";
35 time.timeZone = "Europe/Zagreb";
37 i18n.defaultLocale = "en_US.UTF-8";
39 i18n.extraLocaleSettings = {
40 LC_ADDRESS = "hr_HR.UTF-8";
41 LC_IDENTIFICATION = "hr_HR.UTF-8";
42 LC_MEASUREMENT = "hr_HR.UTF-8";
43 LC_MONETARY = "hr_HR.UTF-8";
44 LC_NAME = "hr_HR.UTF-8";
45 LC_NUMERIC = "hr_HR.UTF-8";
46 LC_PAPER = "hr_HR.UTF-8";
47 LC_TELEPHONE = "hr_HR.UTF-8";
48 LC_TIME = "hr_HR.UTF-8";
53 packages = with pkgs; [ terminus_font ];
61 autosuggestions.enable = true;
62 syntaxHighlighting.enable = true;
69 extraGroups = [ "networkmanager" "wheel" "libvirtd" ];
70 openssh.authorizedKeys.keys =
71 [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIMI2evf5v4ghSCJWacQJGMINjYW48WZYLvL6KIob1rd"
72 "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKeuxm8MnRjkVnrE+lZjlI+MuqzvD78OmvSgd43UMJ6b" ];
75 users.users.root.openssh.authorizedKeys.keys =
76 [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIMI2evf5v4ghSCJWacQJGMINjYW48WZYLvL6KIob1rd"
77 "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKeuxm8MnRjkVnrE+lZjlI+MuqzvD78OmvSgd43UMJ6b" ];
79 nixpkgs.config.allowUnfree = true;
81 environment.systemPackages = with pkgs; [
90 hardware.sensor.hddtemp = {
92 drives = [ "/dev/disk/by-path/*" ];
95 virtualisation.libvirtd.enable = true;
97 services.openssh.enable = true;
99 services.smartd.enable = true;
106 aliases = "/etc/aliases";
110 from = "duje.mihanovic@skole.hr";
111 host = "smtp.skole.hr";
113 user = "duje.mihanovic";
114 passwordeval = "/run/current-system/sw/bin/cat /secrets/email.txt";
119 environment.etc."aliases" = {
121 root: duje.mihanovic@skole.hr
122 duje: duje.mihanovic@skole.hr
123 mailer-daemon: duje.mihanovic@skole.hr
128 # Open ports in the firewall.
129 # networking.firewall.allowedTCPPorts = [ ... ];
130 # networking.firewall.allowedUDPPorts = [ ... ];
131 # Or disable the firewall altogether.
132 # networking.firewall.enable = false;
134 system.stateVersion = "23.05";