feat: Massive overhaul (gluster/zfs)

This commit is contained in:
Kyle Brown 2024-01-12 16:19:12 -08:00
parent e0fd172e34
commit 8ad4e9bb44
6 changed files with 10 additions and 14 deletions

View file

@ -17,5 +17,6 @@
qt6.qtwayland
adwaita-qt
adwaita-qt6
mkvtoolnix
];
}

View file

@ -5,7 +5,7 @@
powerOnBoot = true;
};
services.upower.enable = true;
#services.upower.enable = true;
services.joycond.enable = true;
}

View file

@ -9,9 +9,8 @@
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
./zfs.nix
../../common/nixos/baremetal.nix
../../common/networking/gluster
# ./zfs.nix
../../common/networking/zerotier.nix
../../common/editors/emacs.nix
../../common/nixos/docker.nix

View file

@ -9,10 +9,9 @@
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
./zfs.nix
../../common/nixos/baremetal.nix
# ./zfs.nix
../../common/networking/zerotier.nix
../../common/networking/gluster
../../common/editors/emacs.nix
../../common/nixos/docker.nix
../../common/gui/games.nix
@ -35,12 +34,4 @@
# Enable the OpenSSH daemon.
services.openssh.enable = true;
# Logitech G502 stuff
# services.hardware.openrgb.enable = true;
# services.ratbagd.enable = true;
# environment.systemPackages = with pkgs; [
# openrgb-with-all-plugins
# piper
# ];
}

View file

@ -10,7 +10,7 @@
../../common/nixos/zfs.nix
];
networking.hostId = "eb081e21";
boot.zfs.extraPools = ["exos" "p3600"];
boot.zfs.extraPools = ["exos"];
boot.kernelParams = ["zfs.zfs_arc_max=8589934592"]; # 8GB
services.zfs.autoSnapshot = {

View file

@ -58,6 +58,11 @@ trace target_host=hostname: (build target_host "--show-trace")
switch target_host=hostname:
sudo nixos-rebuild switch --flake .#{{target_host}} {{rebuild_flags}}
# Build the NixOS configuration and switch to it on next boot.
[linux]
boot target_host=hostname:
sudo nixos-rebuild boot --flake .#{{target_host}} {{rebuild_flags}}
# Update flake inputs to their latest revisions
update:
nix flake update --commit-lock-file