diff --git a/hardware/hosts/tanker.nix b/hardware/hosts/tanker.nix index 31ab61c..2e86bf6 100644 --- a/hardware/hosts/tanker.nix +++ b/hardware/hosts/tanker.nix @@ -1,7 +1,8 @@ -{ pkgs, lib, modulesPath, ... }: +{ pkgs, lib, config, modulesPath, ... }: { imports = [ + "${modulesPath}/installer/scan/not-detected.nix" ../disko/tanker.nix ]; @@ -18,7 +19,7 @@ initrd = { availableKernelModules = [ "xhci_pci" "ahci" "nvme" "sd_mod" ]; - kernelModules = [ "tls" ]; + kernelModules = [ "kvm-amd" "tls" ]; }; kernelPackages = pkgs.zfs.latestCompatibleLinuxPackages; @@ -35,5 +36,7 @@ }; }; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + powerManagement.cpuFreqGovernor = lib.mkDefault "performance"; } diff --git a/home/config/nvim/nifoc/statusline.fnl b/home/config/nvim/nifoc/statusline.fnl index 4a7fbaf..556b2b8 100644 --- a/home/config/nvim/nifoc/statusline.fnl +++ b/home/config/nvim/nifoc/statusline.fnl @@ -217,7 +217,7 @@ :hl {:fg colors.cyan}} 5 {:provider (fn [self] (when (> self.hints 0) - (.. " " self.hints))) + (.. "󰅺 " self.hints))) :hl {:fg colors.cyan}}}) ;; Current Function (set mod.current-function @@ -306,9 +306,9 @@ :provider " " :on_click {:name :heirline_buffer_options_lsp :callback #(deferred_cmd {:cmd :LspInfo} 200)}} - 3 {:condition #(formatting.active?) :provider " "} + 3 {:condition #(formatting.active?) :provider "󰉼 "} 4 {:condition #(nifoc-treesitter.active?) :provider " "} - 5 {:condition #vim.wo.spell :provider "暈"} + 5 {:condition #vim.wo.spell :provider "󰓆"} 6 {:provider (fn [self] (let [f vim.bo.fileformat] (.. (. self :format f) " ")))}}) diff --git a/home/config/nvim/nifoc/tabline.fnl b/home/config/nvim/nifoc/tabline.fnl index e7651e3..a643f8d 100644 --- a/home/config/nvim/nifoc/tabline.fnl +++ b/home/config/nvim/nifoc/tabline.fnl @@ -59,7 +59,7 @@ (not (. vim :bo self.bufnr :modified))) :update [:WinNew :WinClosed :BufEnter] 1 mod.space - 2 {:provider "" + 2 {:provider "󰅖" :hl (fn [self] (if self.is_active {:fg fg-active :bg bg-active} {:fg fg-inactive :bg bg-inactive})) diff --git a/system/hosts/tanker.nix b/system/hosts/tanker.nix index 3a1143f..7f09a36 100644 --- a/system/hosts/tanker.nix +++ b/system/hosts/tanker.nix @@ -115,40 +115,54 @@ in ''; }; - systemd.network = { - enable = true; + systemd = { + enableEmergencyMode = false; - networks = { - "10-wan" = { - matchConfig.Name = "enp41s0"; - address = [ - "94.130.142.168/26" - "2a01:4f8:13b:2d81::2/64" - ]; - gateway = [ - "94.130.142.129" - "fe80::1" - ]; - linkConfig.RequiredForOnline = "routable"; - - dns = [ - "185.12.64.1" - "185.12.64.2" - "2a01:4ff:ff00::add:1" - "2a01:4ff:ff00::add:2" - ]; - - ntp = [ - "ntp1.hetzner.de" - "ntp2.hetzner.com" - "ntp3.hetzner.net" - ]; - }; + watchdog = { + runtimeTime = "20s"; + rebootTime = "30s"; }; - wait-online.extraArgs = [ - "--interface=enp41s0" - ]; + network = { + enable = true; + + networks = { + "10-wan" = { + matchConfig.Name = "enp41s0"; + address = [ + "94.130.142.168/26" + "2a01:4f8:13b:2d81::2/64" + ]; + gateway = [ + "94.130.142.129" + "fe80::1" + ]; + linkConfig.RequiredForOnline = "routable"; + + dns = [ + "185.12.64.1" + "185.12.64.2" + "2a01:4ff:ff00::add:1" + "2a01:4ff:ff00::add:2" + ]; + + ntp = [ + "ntp1.hetzner.de" + "ntp2.hetzner.com" + "ntp3.hetzner.net" + ]; + }; + }; + + wait-online.extraArgs = [ + "--interface=enp41s0" + ]; + }; + + sleep.extraConfig = '' + AllowSuspend=no + AllowHibernation=no + ''; }; services.journald.extraConfig = '' @@ -162,6 +176,9 @@ in doc.enable = false; }; + fonts.fontconfig.enable = false; + sound.enable = false; + programs.fish.enable = true; programs.htop.enable = true;