Update configurations
This commit is contained in:
parent
cd6c989185
commit
1302a7bfdf
4 changed files with 57 additions and 37 deletions
|
@ -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";
|
||||
}
|
||||
|
|
|
@ -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) " ")))}})
|
||||
|
|
|
@ -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}))
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue