treewide: format using nixfmt

Signed-off-by: Bloxx12 <charlie@charlieroot.dev>
Change-Id: I6a6a69641c36f9763e104087a559c148d0449f00
This commit is contained in:
Bloxx12 2025-07-20 01:23:48 +02:00
commit e641dfa114
Signed by: faukah
SSH key fingerprint: SHA256:jpYIt4Vkz1NBTQcks/N9OPTfTFxE6KF2W/rV7hrfrIw
113 changed files with 1545 additions and 1019 deletions

View file

@ -3,7 +3,8 @@
lib,
pkgs,
...
}: {
}:
{
# Time Zone
time.timeZone = "Europe/Zurich";
# Select internationalisation properties.

View file

@ -1,6 +1,7 @@
{
config = {
boot.initrd.luks.devices."cryptroot".device = "/dev/disk/by-uuid/96e8f3d6-8d2d-4e2d-abd9-3eb7f48fed02";
boot.initrd.luks.devices."cryptroot".device =
"/dev/disk/by-uuid/96e8f3d6-8d2d-4e2d-abd9-3eb7f48fed02";
fileSystems = {
"/boot" = {
device = "/dev/disk/by-uuid/B3AC-9050";
@ -10,29 +11,49 @@
"/" = {
device = "none";
fsType = "tmpfs";
options = ["defaults" "size=40%" "mode=755"];
options = [
"defaults"
"size=40%"
"mode=755"
];
};
"/nix" = {
device = "/dev/disk/by-uuid/f0569993-722e-4721-b0d9-8ac537a7a548";
fsType = "btrfs";
options = ["subvol=nix" "compress=zstd" "noatime"];
options = [
"subvol=nix"
"compress=zstd"
"noatime"
];
};
"/persist" = {
device = "/dev/disk/by-uuid/f0569993-722e-4721-b0d9-8ac537a7a548";
neededForBoot = true;
fsType = "btrfs";
options = ["subvol=persist" "compress=zstd" "noatime"];
options = [
"subvol=persist"
"compress=zstd"
"noatime"
];
};
"/home" = {
device = "/dev/disk/by-uuid/f0569993-722e-4721-b0d9-8ac537a7a548";
fsType = "btrfs";
options = ["subvol=home" "compress=zstd" "noatime"];
options = [
"subvol=home"
"compress=zstd"
"noatime"
];
};
"/swap" = {
device = "/dev/disk/by-uuid/f0569993-722e-4721-b0d9-8ac537a7a548";
fsType = "btrfs";
options = ["subvol=swap" "compress=lzo" "noatime"];
options = [
"subvol=swap"
"compress=lzo"
"noatime"
];
};
};
swapDevices = [

View file

@ -3,14 +3,21 @@
lib,
modulesPath,
...
}: {
imports = [(modulesPath + "/installer/scan/not-detected.nix")];
}:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot = {
initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "sd_mod"];
initrd.kernelModules = [];
kernelModules = [];
extraModulePackages = [];
initrd.availableKernelModules = [
"xhci_pci"
"ahci"
"nvme"
"usbhid"
"sd_mod"
];
initrd.kernelModules = [ ];
kernelModules = [ ];
extraModulePackages = [ ];
};
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
@ -21,6 +28,5 @@
# networking.interfaces.enp4s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View file

@ -1 +1 @@
_: {imports = [./monitors.nix];}
_: { imports = [ ./monitors.nix ]; }

View file

@ -3,8 +3,10 @@
lib,
pkgs,
...
}: let
}:
let
xanmod_custom = callPackage ./xanmod.nix;
in {
in
{
boot.kernelPackages = xanmod_custom;
}

View file

@ -1,8 +1,10 @@
{lib, ...}: let
{ lib, ... }:
let
inherit (lib.kernel) no unset;
inherit (lib.attrsets) mapAttrs;
inherit (lib.modules) mkForce;
in {
in
{
boot.kernelPatches = [
{
name = "disable-unused-features";

View file

@ -4,7 +4,8 @@
buildLinux,
kernelPatches,
...
}: let
}:
let
pname = "linux-xanmod";
version = "6.11.5";
vendorSuffix = "xanmod1";
@ -58,17 +59,17 @@
};
})
# 1:1 taken from raf's custom kernel, check out his config for this.
.overrideAttrs (oa: {
prePatch =
oa.prePatch or ""
+ ''
.overrideAttrs
(oa: {
prePatch = oa.prePatch or "" + ''
# bragging rights
echo "Replacing localversion with custom suffix"
substituteInPlace localversion \
--replace-fail "xanmod1" "blox"
'';
});
in {
});
in
{
inherit
xanmod_blox
;

View file

@ -1,7 +1,7 @@
{pkgs, ...}: {
{ pkgs, ... }:
{
environment.systemPackages = builtins.attrValues {
inherit
(pkgs)
inherit (pkgs)
alsa-utils
anki
asciinema