tidied hosts/ directory, updated hosts/persephone/ structure
This commit is contained in:
parent
709d746617
commit
1798520906
14 changed files with 96 additions and 58 deletions
|
|
@ -1,24 +1,27 @@
|
|||
{ lib, config, pkgs, modulesPath, ... }:
|
||||
{ inputs, outputs, modulesPath, lib, config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./network-configuration.nix
|
||||
../../core/config.nix
|
||||
|
||||
#./modules/syncthing.nix # got nuked, wasn't functional anyway :shrug:
|
||||
#./modules/disko.nix # BROKEN
|
||||
./modules/zfs.nix
|
||||
## Host specific files
|
||||
./hardware-configuration.nix # hardware config
|
||||
./network-configuration.nix # network config
|
||||
./modules # more host specific configs
|
||||
|
||||
## Shared 'core' config options
|
||||
../../config.nix
|
||||
|
||||
];
|
||||
|
||||
hardware = {
|
||||
|
||||
enableAllFirmware = true;
|
||||
## No bluetooth inside Hades (yet)
|
||||
bluetooth.enable = false;
|
||||
|
||||
graphics = {
|
||||
enable = true;
|
||||
## Packages for integrated graphics inside Hades
|
||||
|
||||
## Packages for the iGPU inside Hades
|
||||
extraPackages = with pkgs; [
|
||||
#intel-compute-runtime
|
||||
#intel-media-driver
|
||||
|
|
@ -26,12 +29,14 @@
|
|||
#vaapiVdpau
|
||||
#libvdpau-va-gl
|
||||
];
|
||||
|
||||
};
|
||||
|
||||
## Packages for the dGPU inside Hades
|
||||
amdgpu = {
|
||||
initrd.enable = true;
|
||||
opencl.enable = true;
|
||||
|
||||
## Vulkan packages for the dGPU inside Hades
|
||||
amdvlk = {
|
||||
enable = true;
|
||||
#package = [ ];
|
||||
|
|
@ -40,21 +45,23 @@
|
|||
#settings = {
|
||||
#};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
programs = {
|
||||
## For tweaking Radeon GPUs
|
||||
|
||||
## For tweaking system performance
|
||||
corectrl = {
|
||||
enable = true;
|
||||
## Allows tweaking GPU performance
|
||||
gpuOverclock = {
|
||||
enable = true;
|
||||
## Allows changing clocks and volts
|
||||
## Needed for radeon GPU overclocking
|
||||
ppfeaturemask = "0xfffd7fff";
|
||||
};
|
||||
};
|
||||
|
||||
## Performance tweaking continued
|
||||
tuxclocker = {
|
||||
enable = true;
|
||||
enableAMD = true;
|
||||
|
|
@ -63,7 +70,7 @@
|
|||
|
||||
};
|
||||
|
||||
## Some packages for managing the radeon GPU inside Hades
|
||||
## Some packages for managing the hardware inside Hades
|
||||
environment.systemPackages = with pkgs; [
|
||||
umr
|
||||
radeontop
|
||||
|
|
|
|||
14
hosts/hades/modules/default.nix
Normal file
14
hosts/hades/modules/default.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{ inputs, outputs, modulesPath, lib, config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
|
||||
## Selected modules for import
|
||||
./zfs.nix # zfs storage config
|
||||
./disko.nix # disk/partition config
|
||||
./network.nix # network/internet config
|
||||
./syncthing.nix # syncthing config
|
||||
|
||||
];
|
||||
|
||||
}
|
||||
|
|
@ -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
|
||||
];
|
||||
|
||||
}
|
||||
|
|
|
|||
13
hosts/persephone/modules/default.nix
Normal file
13
hosts/persephone/modules/default.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{ inputs, outputs, modulesPath, lib, config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
|
||||
## Selected modules for import
|
||||
./disko.nix # disk/partition config
|
||||
./network.nix # network/internet config
|
||||
./syncthing.nix # syncthing config
|
||||
|
||||
];
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue