refactor: reorganize module layout

This commit is contained in:
4DBug committed 2026-10-16 07:45:16 -05:00
1 parent 9a6bbc26c1
commit 0431bce152
63 files changed
+323

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
{
den.aspects.boot = {
nixos = {
boot = {
# kernelPackages = lib.mkForce pkgs.linuxPackages_zen;
initrd.checkJournalingFS = false;
loader = {
grub.splashImage = null;
systemd-boot = {
enable = true;
configurationLimit = 25;
};
efi.canTouchEfiVariables = true;
};
};
};
};
}
+14
View File
@@ -0,0 +1,14 @@
{ inputs, ... }: {
den.aspects.kernel = {
nixos = { pkgs, ... }: {
nixpkgs.overlays = [ inputs.nix-cachyos-kernel.overlays.pinned ];
boot.kernelPackages = pkgs.linuxPackages_latest;
#boot.kernelPackages = pkgs.cachyosKernels.linuxPackages-cachyos-latest;
#nix.settings.substituters = [ "https://attic.xuyh0120.win/lantian" ];
#nix.settings.trusted-public-keys = [ "lantian:EeAUQ+W+6r7EtwnmYjeVwx5kOGEBpjlBfPlzGlTNvHc=" ];
};
};
}
+23
View File
@@ -0,0 +1,23 @@
{
den.aspects.locale = {
nixos = {
time.timeZone = "America/Chicago";
i18n = {
defaultLocale = "en_US.UTF-8";
extraLocaleSettings = {
LC_ADDRESS = "en_US.UTF-8";
LC_IDENTIFICATION = "en_US.UTF-8";
LC_MEASUREMENT = "en_US.UTF-8";
LC_MONETARY = "en_US.UTF-8";
LC_NAME = "en_US.UTF-8";
LC_NUMERIC = "en_US.UTF-8";
LC_PAPER = "en_US.UTF-8";
LC_TELEPHONE = "en_US.UTF-8";
LC_TIME = "en_US.UTF-8";
};
};
};
};
}
+10
View File
@@ -0,0 +1,10 @@
{
den.aspects.security = {
nixos = {
security.sudo = {
enable = true;
wheelNeedsPassword = false;
};
};
};
}
+19
View File
@@ -0,0 +1,19 @@
{
den.aspects.swap = {
nixos = {
boot.kernel.sysctl = {
"fs.file-max" = 524288;
};
swapDevices = [{
device = "/var/lib/swapfile";
size = 8 * 1024;
}];
zramSwap = {
enable = true;
memoryMax = 64 * 1024 * 1024 * 1024;
};
};
};
}
+11
View File
@@ -0,0 +1,11 @@
{
den.aspects.virtualisation = {
nixos = {
virtualisation = {
libvirtd.enable = true;
spiceUSBRedirection.enable = true;
};
};
};
}