merge in poseidon configs temporarily
This commit is contained in:
parent
ca8d2c7262
commit
26842b27a6
13 changed files with 685 additions and 0 deletions
92
hosts/servers/poseidon/old/default.nix
Normal file
92
hosts/servers/poseidon/old/default.nix
Normal file
|
|
@ -0,0 +1,92 @@
|
|||
{config, pkgs, lib, ...}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./oci-containers
|
||||
./nvidia.nix
|
||||
];
|
||||
|
||||
|
||||
|
||||
#boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.kernelPackages = pkgs.linuxPackages_6_6;
|
||||
boot.kernelParams = lib mkForce [ "nohibernate" "ipv6.disable=1" ];
|
||||
boot.loader.grub = lib.mkForce {
|
||||
enable = true;
|
||||
device = "nodev";
|
||||
zfsSupport = true;
|
||||
efiSupport = true;
|
||||
copyKernels = true;
|
||||
efiInstallAsRemovable = true;
|
||||
mirroredBoots = [
|
||||
{ devices = [ "/dev/disk/by-uuid/E862-56D1" ]; path = "/boot"; }
|
||||
# { devices = [ "/dev/disk/by-uuid/5DF0-A042" ]; path = "/boot-fallback"; }
|
||||
];
|
||||
};
|
||||
boot.blacklistedKernelModules = ["nouveau"];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "nixroot/root";
|
||||
fsType = "zfs";
|
||||
};
|
||||
|
||||
fileSystems."/nix" =
|
||||
{ device = "nixroot/root/nix";
|
||||
fsType = "zfs";
|
||||
};
|
||||
|
||||
fileSystems."/var" =
|
||||
{ device = "nixroot/root/var";
|
||||
fsType = "zfs";
|
||||
};
|
||||
|
||||
fileSystems."/home" =
|
||||
{ device = "nixroot/root/home";
|
||||
fsType = "zfs";
|
||||
};
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/E862-56D1";
|
||||
fsType = "vfat";
|
||||
options = [ "nofail" "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
# fileSystems."/boot-fallback" = {
|
||||
# device = "/dev/disk/by-uuid/5DF0-A042";
|
||||
# fsType = "vfat";
|
||||
# options = [ "nofail" "fmask=0077" "dmask=0077" ];
|
||||
# };
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
# per server packages
|
||||
environment.systemPackages = with pkgs; [
|
||||
speedtest-cli
|
||||
storcli
|
||||
storcli2
|
||||
];
|
||||
|
||||
# per server networking options
|
||||
networking.hostName = "poseidon";
|
||||
networking.hostId = "1f2d79e1";
|
||||
networking.networkmanager.insertNameservers = [ "10.5.0.1" "1.1.1.1" ];
|
||||
|
||||
# Mounts
|
||||
boot.zfs.extraPools = [
|
||||
"Velaris"
|
||||
# "Aeolus"
|
||||
];
|
||||
# systemd.services.zfs-mount.enable = false;
|
||||
# fileSystems = {
|
||||
# "/Velaris" = {
|
||||
# device = "Velaris";
|
||||
# fsType = "zfs";
|
||||
# options = [ "nofail" ];
|
||||
# };
|
||||
# "/Aeolus" = {
|
||||
# device = "Aeolus";
|
||||
# fsType = "zfs";
|
||||
# options = [ "nofail" ];
|
||||
# };
|
||||
# };
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue