massive clean-up/restructure

This commit is contained in:
serenity-F 2024-09-11 23:51:42 +10:00
parent 54da646c04
commit b13498571e
No known key found for this signature in database
48 changed files with 166 additions and 236 deletions

View file

@ -0,0 +1,82 @@
{ inputs, outputs, lib, config, pkgs, ... }:
{
imports = [
# Include the results of the hardware scan.
./hardware-config.nix
#${builtins.fetchTarball "https://github.com/nix-community/disko/archive/master.tar.gz"}/module.nix"
#./network-configuration.nix
../../config.nix
];
# Enable swap on luks
boot = {
loader = {
systemd-boot = {
enable = true;
configurationLimit = 5;
};
efi = {
canTouchEfiVariables = true;
# efiSysMountPoint = "/boot/efi";
};
};
initrd = {
systemd.enable = true;
secrets = {
# "crypto_keyfile.bin" = null;
};
luks = {
# devices."luks-DISK_UUID" = {
# device = "/dev/disk/by-uuid/DISK_UUID";
# keyfile = "/crypto_keyfile.bin";
# };
};
};
};
networking = {
hostName = "persephone";
wireless.enable = false;
networkmanager = {
enable = true;
};
};
services.fstrim.enable = true;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware = {
cpu.intel.updateMicrocode = true;
enableAllFirmware = false;
bluetooth.enable = true;
opengl = {
enable = true;
extraPackages = with pkgs; [
intel-compute-runtime
intel-media-driver
vaapiIntel
vaapiVdpau
libvdpau-va-gl
];
};
};
nix = {
# settings = {
# };
gc = {
automatic = true;
dates = "daily";
options = "--delete-older-than 2d";
persistent = true;
};
};
system.stateVersion = "23.11";
}