This commit is contained in:
Reid 2024-12-08 18:39:26 -08:00
parent 5030dcf3b6
commit 2232ad3f31
Signed by: reidlab
GPG key ID: DAF5EAF6665839FD
12 changed files with 31 additions and 28 deletions

View file

@ -4,3 +4,5 @@ root = true
end_of_line = lf end_of_line = lf
indent_style = space indent_style = space
indent_size = 2 indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

View file

@ -7,6 +7,7 @@ nix flake config! this is just used on my personal server at the moment
this flake is built for a multi-user experience per host, enforced by [`modules/users.nix`](./modules/users.nix), and found in the `default.nix` file for each host. this flake is built for a multi-user experience per host, enforced by [`modules/users.nix`](./modules/users.nix), and found in the `default.nix` file for each host.
## todo ## todo
- find a better way to do cloudflare ips - find a better way to do cloudflare ips
- per-host architecture selection, atm it is hardcoded to `aarch64` - per-host architecture selection, atm it is hardcoded to `aarch64`
- move common config such as bootloader and networking settings to [`default.nix`](./default.nix) - move common config such as bootloader and networking settings to [`default.nix`](./default.nix)

View file

@ -8,10 +8,10 @@
boot = { boot = {
initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" ]; initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" ];
initrd.kernelModules = [ ]; initrd.kernelModules = [ ];
kernelModules = [ ]; kernelModules = [ ];
extraModulePackages = [ ]; extraModulePackages = [ ];
# TODO: move bootloader, networking, boot speed to another file? # TODO: move bootloader, networking, boot speed to another file?
kernelPackages = pkgs.linuxPackages_latest; kernelPackages = pkgs.linuxPackages_latest;
loader = { loader = {
# use u-boot over grub # use u-boot over grub

View file

@ -9,9 +9,9 @@ in {
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
boot = { boot = {
tmp.useTmpfs = lib.mkDefault true; tmp.useTmpfs = lib.mkDefault true;
tmp.cleanOnBoot = lib.mkDefault (!config.boot.tmp.useTmpfs); tmp.cleanOnBoot = lib.mkDefault (!config.boot.tmp.useTmpfs);
kernel.sysctl = { kernel.sysctl = {
# magic sysrq key, allows low-level commands through keyboard input # magic sysrq key, allows low-level commands through keyboard input