1
0
Fork 0

Update configurations

This commit is contained in:
Daniel Kempkens 2023-07-16 16:28:53 +02:00
parent cd6c989185
commit 1302a7bfdf
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
4 changed files with 57 additions and 37 deletions

View file

@ -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";
}

View file

@ -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) " ")))}})

View file

@ -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}))

View file

@ -115,7 +115,15 @@ in
'';
};
systemd.network = {
systemd = {
enableEmergencyMode = false;
watchdog = {
runtimeTime = "20s";
rebootTime = "30s";
};
network = {
enable = true;
networks = {
@ -151,6 +159,12 @@ in
];
};
sleep.extraConfig = ''
AllowSuspend=no
AllowHibernation=no
'';
};
services.journald.extraConfig = ''
SystemMaxUse=4G
'';
@ -162,6 +176,9 @@ in
doc.enable = false;
};
fonts.fontconfig.enable = false;
sound.enable = false;
programs.fish.enable = true;
programs.htop.enable = true;