messed with boot params

fine tuned page
This commit is contained in:
Gerg-L 2023-07-06 19:48:40 -04:00
parent e6160107b4
commit 450cfa425d
4 changed files with 43 additions and 9 deletions

View file

@ -42,24 +42,24 @@ in {
"Xorg/1_mon.conf".source = pkgs.runCommand "1_mon.conf" {} ( "Xorg/1_mon.conf".source = pkgs.runCommand "1_mon.conf" {} (
xserverbase xserverbase
+ '' + ''
cat << EOF >> $out cat ${./1_mon.conf} >> $out
${builtins.readFile ./1_mon.conf}
EOF
'' ''
); );
"Xorg/2_mon.conf".source = pkgs.runCommand "2_mon.conf" {} ( "Xorg/2_mon.conf".source = pkgs.runCommand "2_mon.conf" {} (
xserverbase xserverbase
+ '' + ''
cat << EOF >> $out cat ${./2_mon.conf} >> $out
${builtins.readFile ./2_mon.conf}
EOF
'' ''
); );
}; };
####VM SOUND BORKED ####VM SOUND BORKED
services.pipewire.package = pipewire_fix.legacyPackages.${pkgs.system}.pipewire; services.pipewire.package = pipewire_fix.legacyPackages.${pkgs.system}.pipewire;
boot = { boot = {
kernelParams = ["amd_iommu=on" "iommu=pt" "vfio_iommu_type1.allow_unsafe_interrupts=1" "kvm.ignore_msrs=1"]; kernelParams = [
"amd_iommu=on"
"vfio_iommu_type1.allow_unsafe_interrupts=1"
"kvm.ignore_msrs=1"
];
}; };
virtualisation = { virtualisation = {
libvirtd = { libvirtd = {

View file

@ -11,7 +11,31 @@
}; };
boot = { boot = {
blacklistedKernelModules = ["pcspkr"]; blacklistedKernelModules = ["pcspkr"];
kernelParams = ["fbcon=nodefer" "bgrt_disable" "quiet" "systemd.show_status=false" "rd.udev.log_level=3" "vt.global_cursor_default=0"]; kernelParams = [
"acpi_call"
"pti=auto"
"randomize_kstack_offset=on"
"vsyscall=none"
"slab_nomerge"
"module.sig_enforce=1"
"lockdown=confidentiality"
"page_poison=1"
"page_alloc.shuffle=1"
"sysrq_always_enabled=0"
"idle=nomwait"
"rootflags=noatime"
"iommu=pt"
"usbcore.autosuspend=-1"
"noresume"
"acpi_backlight=native"
"logo.nologo"
"fbcon=nodefer"
"bgrt_disable"
"quiet"
"systemd.show_status=false"
"rd.udev.log_level=3"
"vt.global_cursor_default=0"
];
consoleLogLevel = 3; consoleLogLevel = 3;
initrd.verbose = false; initrd.verbose = false;
plymouth = { plymouth = {

View file

@ -24,6 +24,7 @@ _: {
push = { push = {
autoSetupRemote = true; autoSetupRemote = true;
}; };
advice.addIgnoredFile = false;
}; };
}; };
}; };

View file

@ -20,8 +20,9 @@
variables = { variables = {
EDITOR = "nvim"; EDITOR = "nvim";
VISUAL = "nvim"; VISUAL = "nvim";
PAGER = "page"; PAGER = "page -WfC -q 90000 -z 90000";
SYSTEMD_PAGERSECURE = "true"; SYSTEMD_PAGERSECURE = "true";
MANPAGER = "page -t man";
}; };
shellAliases = { shellAliases = {
#make sudo use aliases #make sudo use aliases
@ -44,6 +45,7 @@
lx = "exa -lbhHigUmuSa@ --time-style=long-iso --git --color-scale"; lx = "exa -lbhHigUmuSa@ --time-style=long-iso --git --color-scale";
lS = "exa -1"; lS = "exa -1";
lt = "exa --tree --level=2"; lt = "exa --tree --level=2";
page = config.environment.variables.PAGER;
}; };
interactiveShellInit = "fetch-rs"; interactiveShellInit = "fetch-rs";
}; };
@ -67,6 +69,13 @@
histSize = 10000; histSize = 10000;
histFile = "$HOME/.cache/zsh_history"; histFile = "$HOME/.cache/zsh_history";
interactiveShellInit = '' interactiveShellInit = ''
### pager ###
man () {
PROGRAM="''${@[-1]}"
SECTION="''${@[-2]}"
page -W "man://$PROGRAM''${SECTION:+($SECTION)}"
}
### transient shell prompt ###
zle-line-init() { zle-line-init() {
emulate -L zsh emulate -L zsh