tidying up
This commit is contained in:
parent
924fef5ce4
commit
54eb4fce32
7 changed files with 203 additions and 180 deletions
|
|
@ -2,88 +2,35 @@
|
|||
|
||||
{
|
||||
imports = [
|
||||
## Include the results of the hardware scan.
|
||||
./hardware.nix
|
||||
#${builtins.fetchTarball "https://github.com/nix-community/disko/archive/master.tar.gz"}/module.nix"
|
||||
./network.nix
|
||||
|
||||
## Import necessary flake modules
|
||||
#"${builtins.fetchTarball "<flake module url>"}/module.nix"
|
||||
|
||||
## Include host specific options
|
||||
./hardware
|
||||
./network
|
||||
|
||||
## Include core config options
|
||||
../../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";
|
||||
#};
|
||||
#};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
services.fstrim.enable = true;
|
||||
|
||||
powerManagement = {
|
||||
enable = true;
|
||||
powertop.enable = true;
|
||||
#cpuFreqGovernor = Lib.mkDefault "powersave";
|
||||
#cpufreq = {
|
||||
#min = 80000;
|
||||
#max = 2000000;
|
||||
#};
|
||||
};
|
||||
|
||||
environment.memoryAllocator.provider = "graphene-hardened-light";
|
||||
|
||||
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 = {
|
||||
## Automatically run 'nix-collect-garbage',
|
||||
automatic = true;
|
||||
## every day,
|
||||
dates = "daily";
|
||||
options = "--delete-older-than 2d";
|
||||
## and clear junk older than 1 day
|
||||
options = "--delete-older-than 1d";
|
||||
|
||||
## No clue what this does lol.
|
||||
persistent = true;
|
||||
};
|
||||
};
|
||||
|
||||
system.stateVersion = "23.11";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue