--- /dev/null
+{ config, pkgs, ... }:
+
+{
+ networking.networkmanager.enable = true;
+ networking.wireless.enable = true;
+
+ time.timeZone = "Europe/Zagreb";
+
+ i18n.defaultLocale = "en_US.UTF-8";
+
+ i18n.extraLocaleSettings = {
+ LC_ADDRESS = "hr_HR.UTF-8";
+ LC_IDENTIFICATION = "hr_HR.UTF-8";
+ LC_MEASUREMENT = "hr_HR.UTF-8";
+ LC_MONETARY = "hr_HR.UTF-8";
+ LC_NAME = "hr_HR.UTF-8";
+ LC_NUMERIC = "hr_HR.UTF-8";
+ LC_PAPER = "hr_HR.UTF-8";
+ LC_TELEPHONE = "hr_HR.UTF-8";
+ LC_TIME = "hr_HR.UTF-8";
+ };
+
+ console = {
+ keyMap = "dvorak";
+ packages = with pkgs; [ terminus_font ];
+ font = "ter-124b";
+ };
+
+ services.xserver = {
+ enable = true;
+ desktopManager.gnome.enable = true;
+ displayManager.gdm.enable = true;
+ };
+
+ sound.enable = true;
+ hardware.pulseaudio.enable = false;
+ services.pipewire = {
+ enable = true;
+ audio.enable = true;
+ alsa.enable = true;
+ alsa.enable32Bit = true;
+ pulse.enable = true;
+ };
+
+ programs.zsh = {
+ enable = true;
+ autosuggestions.enable = true;
+ syntaxHighlighting.enable = true;
+ };
+
+ users.users.duje = {
+ isNormalUser = true;
+ description = "Duje";
+ extraGroups = [ "networkmanager" "wheel" ];
+ shell = pkgs.zsh;
+ };
+
+ nixpkgs.config.allowUnfree = true;
+
+ environment.systemPackages = with pkgs; [
+ neovim
+ lm_sensors
+ htop
+ nvimpager
+ tree
+ neofetch
+ ];
+
+ hardware.sensor.hddtemp = {
+ enable = true;
+ drives = [ "/dev/disk/by-path/*" ];
+ };
+
+ services.smartd.enable = true;
+ programs.msmtp = {
+ enable = true;
+ defaults = {
+ auth = true;
+ tls = true;
+ tls_starttls = true;
+ aliases = "/etc/aliases";
+ };
+ accounts = {
+ default = {
+ from = "duje.mihanovic@skole.hr";
+ host = "smtp.skole.hr";
+ port = 587;
+ user = "duje.mihanovic";
+ passwordeval = "/run/current-system/sw/bin/cat /secrets/email.txt";
+ };
+ };
+ };
+
+ environment.etc."aliases" = {
+ text = ''
+ root: duje.mihanovic@skole.hr
+ duje: duje.mihanovic@skole.hr
+ mailer-daemon: duje.mihanovic@skole.hr
+ '';
+ mode = "0644";
+ };
+
+ # Open ports in the firewall.
+ # networking.firewall.allowedTCPPorts = [ ... ];
+ # networking.firewall.allowedUDPPorts = [ ... ];
+ # Or disable the firewall altogether.
+ # networking.firewall.enable = false;
+
+ system.stateVersion = "23.05";
+
+}
{ config, pkgs, ... }:
{
- imports =
- [
- ./hardware-configuration.nix
- ];
-
- boot.loader.systemd-boot.enable = true;
- boot.loader.efi.canTouchEfiVariables = true;
-
- boot.extraModprobeConfig =
- ''
- options radeon si_support=0 cik_support=0
- options amdgpu si_support=1 cik_support=1
- '';
-
- networking.hostName = "elitedesk"; # Define your hostname.
- networking.interfaces.eno1.wakeOnLan.enable = true;
systemd.network = {
enable = true;
networks."10-lan" = {
- matchConfig.Name = "eno1";
+ matchConfig.Name = "*";
DHCP = "yes";
linkConfig.RequiredForOnline = "routable";
};