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,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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue