tweak: host testing
This commit is contained in:
parent
daff922742
commit
38b0b6fc11
2 changed files with 77 additions and 31 deletions
|
|
@ -3,6 +3,7 @@
|
||||||
{
|
{
|
||||||
|
|
||||||
flake.nixosModules.zfs-support =
|
flake.nixosModules.zfs-support =
|
||||||
|
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
|
|
@ -36,12 +37,6 @@
|
||||||
kernelPackages = lib.mkForce latestKernelPackage;
|
kernelPackages = lib.mkForce latestKernelPackage;
|
||||||
# adds zfs support at boot
|
# adds zfs support at boot
|
||||||
supportedFilesystems = [ "zfs" ];
|
supportedFilesystems = [ "zfs" ];
|
||||||
|
|
||||||
# imports zfs pools on host device
|
|
||||||
zfs = {
|
|
||||||
extraPools = [ "orcus" ];
|
|
||||||
forceImportRoot = false;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# adds zfs to system packages
|
# adds zfs to system packages
|
||||||
|
|
@ -53,4 +48,17 @@
|
||||||
# data integrity service
|
# data integrity service
|
||||||
services.zfs.autoScrub.enable = true;
|
services.zfs.autoScrub.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
flake.nixosModules.zfs-hades =
|
||||||
|
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
|
||||||
|
zfs = {
|
||||||
|
extraPools = [ "orcus" ];
|
||||||
|
forceImportRoot = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,37 +3,75 @@
|
||||||
{
|
{
|
||||||
|
|
||||||
# defines the hades specific configuration
|
# defines the hades specific configuration
|
||||||
flake.nixosConfigurations.hades = inputs.nixpkgs.lib.nixosSystem {
|
flake.nixosConfigurations.hades =
|
||||||
|
inputs.nixpkgs.lib.nixosSystem
|
||||||
|
|
||||||
# modules that comprise the host specific configuration
|
{
|
||||||
modules = with self.nixosModules; [
|
|
||||||
|
|
||||||
# shared system modules
|
# modules that comprise the host specific configuration
|
||||||
core
|
modules = with self.nixosModules; [
|
||||||
|
|
||||||
# host-specific options
|
# shared system modules
|
||||||
hades-configuration
|
core
|
||||||
hades-hardware
|
#user-options
|
||||||
|
|
||||||
# extra modules to include on host
|
# host-specific modules
|
||||||
# in order of priority
|
#hades-configuration
|
||||||
terminal
|
hades-hardware
|
||||||
desktop
|
zfs-hades
|
||||||
multimedia
|
|
||||||
zfs-support
|
|
||||||
gaming
|
|
||||||
music
|
|
||||||
music-production
|
|
||||||
virtual-reality
|
|
||||||
network-proxy
|
|
||||||
virtualisation
|
|
||||||
|
|
||||||
# users to include on host
|
# feature modules
|
||||||
#user-options
|
virtualisation
|
||||||
serenity
|
network-proxy
|
||||||
|
zfs-support
|
||||||
|
terminal
|
||||||
|
desktop
|
||||||
|
music
|
||||||
|
gaming
|
||||||
|
multimedia
|
||||||
|
virtual-reality
|
||||||
|
music-production
|
||||||
|
|
||||||
];
|
# user modules
|
||||||
|
serenity
|
||||||
|
|
||||||
};
|
];
|
||||||
|
|
||||||
|
# set hostname
|
||||||
|
networking.hostName = "hades";
|
||||||
|
|
||||||
|
# bootloader settings
|
||||||
|
boot.loader = {
|
||||||
|
systemd-boot.enable = true;
|
||||||
|
efi.canTouchEfiVariables = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# supported filesystems at boot
|
||||||
|
boot.supportedFilesystems = [
|
||||||
|
"vfat"
|
||||||
|
"ext4"
|
||||||
|
#"ntfs"
|
||||||
|
];
|
||||||
|
|
||||||
|
# enable printing support
|
||||||
|
services.printing.enable = true;
|
||||||
|
|
||||||
|
# fstrim for ssd
|
||||||
|
services.fstrim.enable = true;
|
||||||
|
|
||||||
|
# corsair mouse software
|
||||||
|
hardware.ckb-next.enable = true;
|
||||||
|
|
||||||
|
# other packages for hades peripherals
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
|
||||||
|
#input-remapper
|
||||||
|
#razergenie
|
||||||
|
#openrazer-daemon
|
||||||
|
#openrgb-with-all-plugins
|
||||||
|
|
||||||
|
];
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue