tidied hosts/ directory, updated hosts/persephone/ structure

This commit is contained in:
serenity-F 2024-11-13 00:13:52 +10:00
parent 709d746617
commit 1798520906
No known key found for this signature in database
14 changed files with 96 additions and 58 deletions

View file

@ -1,36 +1,56 @@
{ inputs, outputs, lib, config, pkgs, ... }:
{ inputs, outputs, modulesPath, lib, config, pkgs, ... }:
{
imports = [
## Import necessary flake modules
#"${builtins.fetchTarball "<flake module url>"}/module.nix"
## Host specific files
./hardware-configuration.nix # hardware config
./network-configuration.nix # network config
./modules # more host specific configs
## Include host specific options
./hardware
./network
## Include core config options
## Shared 'core' config options
../../config.nix
];
nix = {
hardware = {
#settings = {
#};
## Enable bluetooth inside Persephone
bluetooth.enable = true;
gc = {
## Automatically run 'nix-collect-garbage',
automatic = true;
## every day,
dates = "daily";
## and clear junk older than 1 day
options = "--delete-older-than 1d";
graphics = {
enable = true;
## Packages for the iGPU inside Persephone
extraPackages = with pkgs; [
intel-compute-runtime
intel-media-driver
vaapiIntel
vaapiVdpau
libvdpau-va-gl
];
## No clue what this does lol.
persistent = true;
};
};
programs = {
## For tweaking system performance
corectrl = {
enable = true;
};
## Performance tweaking continued
tuxclocker = {
enable = true;
useUnfree = true;
};
};
## Some packages for managing the hardware inside Persephone
environment.systemPackages = with pkgs; [
nvtopPackages.intel
];
}