forked from Anifyuli/my-nixos
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
66 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
abbr -a nofu "$(string join \n -- 'cd /etc/nixos' 'doas nix flake update' 'cd -')" | ||
abbr -a nofl "$(string join \n -- 'cd /etc/nixos' 'doas nix flake lock' 'cd -')" | ||
abbr -a noflu \ | ||
--set-cursor=! \ | ||
"$(string join \n -- 'cd /etc/nixos' 'doas nix flake lock --update-input !' 'cd -')" | ||
set fish_greeting # Disable greeting | ||
printf '\e[5 q' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ config, ... }: | ||
with config.boot; { | ||
loader = with loader; { | ||
efi.canTouchEfiVariables = systemd-boot.enable; | ||
|
||
systemd-boot = { | ||
enable = true; | ||
memtest86.enable = true; | ||
}; | ||
|
||
grub = { | ||
enable = ! systemd-boot.enable; | ||
copyKernels = true; | ||
efiInstallAsRemovable = ! efi.canTouchEfiVariables; | ||
efiSupport = true; | ||
fsIdentifier = "label"; | ||
zfsSupport = true; | ||
# device = "/dev/disk/by-id/nvme-KINGSTON_OM8PDP3256B-AB1_50026B768583ADF8-part1"; | ||
mirroredBoots = [ | ||
{ devices = [ "nodev" ]; path = "/boot"; } | ||
]; | ||
device = "nodev"; | ||
}; | ||
}; | ||
|
||
plymouth = { | ||
enable = true; | ||
theme = "bgrt"; | ||
}; | ||
|
||
tmp = { | ||
cleanOnBoot = true; | ||
useTmpfs = true; | ||
}; | ||
|
||
kernelParams = [ | ||
"zfs.zfs_arc_max=536870912" # max zfs cache (512MB) | ||
]; | ||
|
||
|
||
# Enable v4l2loopback kernel module for using Virtual Camera. | ||
extraModulePackages = with kernelPackages; [ | ||
v4l2loopback | ||
]; | ||
extraModprobeConfig = '' | ||
options v4l2loopback devices=1 video_nr=1 card_label="Virtual Camera" exclusive_caps=1 | ||
''; | ||
|
||
# kernel.sysctl = { | ||
# for unlimited warnet hack, thankxs to umahdroid.com | ||
# https://www.umahdroid.com/2023/08/trik-axis-warnet-unlimited-hotspot.html | ||
# "net.ipv4.ip_default_ttl" = 65; | ||
# "net.inet6.ip6.hlim" = 65; | ||
# }; | ||
} |
This file was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.