Skip to content

Commit

Permalink
tweak wifi and neovim
Browse files Browse the repository at this point in the history
  • Loading branch information
viperML committed Feb 24, 2024
1 parent 19b1f1b commit 14e2bfb
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
10 changes: 5 additions & 5 deletions hosts/fatalis/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
hostName = "fatalis";
networkmanager = {
enable = true;
dns = "systemd-resolved";
# dns = "systemd-resolved";
};
};

services.resolved = {
enable = true;
};
# services.resolved = {
# enable = true;
# };

security.sudo.wheelNeedsPassword = false;

Expand All @@ -32,7 +32,7 @@

hardware = {
cpu.amd.updateMicrocode = true;
enableAllFirmware = true;
enableRedistributableFirmware = true;
bluetooth.enable = true;
opengl = {
enable = true;
Expand Down
8 changes: 8 additions & 0 deletions hosts/fatalis/hardware.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ in
};

tmp.useTmpfs = true;

# https://github.com/lwfinger/rtw89/blob/main/70-rtw89.conf
# https://github.com/lwfinger/rtw89/tree/main?tab=readme-ov-file#option-configuration
extraModprobeConfig = ''
# set options for faulty HP and Lenovo BIOS code
options rtw89_pci disable_aspm_l1=y disable_aspm_l1ss
options rtw89pci disable_aspm_l1=y disable_aspm_l1ss
'';
};

fileSystems =
Expand Down
1 change: 1 addition & 0 deletions wrappers/neovim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ npairs.setup {
local lisps = {
"scheme",
"racket",
"clojure",
}
npairs.get_rules("'")[1].not_filetypes = lisps
npairs.get_rules("`")[1].not_filetypes = lisps
Expand Down
2 changes: 2 additions & 0 deletions wrappers/neovim/init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ augroup indentation
autocmd!
autocmd FileType vim setlocal tabstop=2 softtabstop=2 shiftwidth=2
autocmd FileType nix setlocal tabstop=2 softtabstop=2 shiftwidth=2
autocmd FileType scheme setlocal tabstop=2 softtabstop=2 shiftwidth=2
autocmd FileType racket setlocal tabstop=2 softtabstop=2 shiftwidth=2
augroup END

" line numbers
Expand Down

0 comments on commit 14e2bfb

Please sign in to comment.