refactor(repo): reformat to nixfmt; relicense to 0BSD

This commit is contained in:
Artur Manuel 2025-03-06 20:45:49 +00:00
commit db2564d828
Signed by: amadaluzia
SSH key fingerprint: SHA256:Zwg7gBuZyaG48ucAZneJwltiXu0+tJb7c3lYt9AYlLg
39 changed files with 451 additions and 318 deletions

View file

@ -1,7 +1,8 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{pkgs, ...}: {
{ pkgs, ... }:
{
imports = [
./config/sysctl.d/performance.nix
./config/sysctl.d/hardening.nix
@ -57,7 +58,7 @@
enable = true;
package = pkgs.scx_git.rustscheds;
scheduler = "scx_lavd";
extraArgs = ["--performance"];
extraArgs = [ "--performance" ];
};
boot.runSize = "100%";
@ -69,11 +70,16 @@
fileSystems."/" = {
fsType = "btrfs";
options = ["compress=zstd:6" "discard" "flushoncommit" "subvol=@"];
options = [
"compress=zstd:6"
"discard"
"flushoncommit"
"subvol=@"
];
};
services.btrfs.autoScrub = {
fileSystems = ["/"]; # Assuming root is formatted with Btrfs.
fileSystems = [ "/" ]; # Assuming root is formatted with Btrfs.
interval = "daily";
enable = true;
};
@ -101,7 +107,11 @@
use-cgroups = true;
};
boot.initrd.kernelModules = ["amdgpu" "sha256" "sha512"];
boot.initrd.kernelModules = [
"amdgpu"
"sha256"
"sha512"
];
# Processor settings for AMD
hardware.cpu.amd = {
@ -115,8 +125,12 @@
# Bootloader.
boot.loader.systemd-boot = {
enable = true;
edk2-uefi-shell = {enable = true;};
memtest86 = {enable = true;};
edk2-uefi-shell = {
enable = true;
};
memtest86 = {
enable = true;
};
configurationLimit = 3;
};
@ -139,7 +153,7 @@
# Enable the X11 windowing system.
services.xserver.enable = true;
services.xserver.videoDrivers = ["amdgpu"];
services.xserver.videoDrivers = [ "amdgpu" ];
services.xserver.updateDbusEnvironment = true;
services.xserver.enableTearFree = true;