mirror of
https://github.com/Dichgrem/DCGOS.git
synced 2025-12-16 19:22:00 -05:00
remove:zfs
This commit is contained in:
@@ -16,13 +16,6 @@
|
|||||||
HotSpot-Use-Case = false;
|
HotSpot-Use-Case = false;
|
||||||
### See https://nixos.wiki/wiki/Internet_Connection_Sharing
|
### See https://nixos.wiki/wiki/Internet_Connection_Sharing
|
||||||
|
|
||||||
ZFS-Networking-HostID = "";
|
|
||||||
### See https://search.nixos.org/options?channel=unstable&show=networking.hostId&from=0&size=30&sort=relevance&query=networking.hostId
|
|
||||||
### Could be generated by `head -c4 /dev/urandom | od -A none -t x4`
|
|
||||||
|
|
||||||
ZFS-Use-Case = false;
|
|
||||||
### See https://openzfs.github.io/openzfs-docs/Getting%20Started/NixOS/index.html
|
|
||||||
|
|
||||||
## Software related
|
## Software related
|
||||||
QEMU-VM-Use-Case = true;
|
QEMU-VM-Use-Case = true;
|
||||||
### See https://github.com/qemu/qemu ; https://github.com/virt-manager/virt-manager
|
### See https://github.com/qemu/qemu ; https://github.com/virt-manager/virt-manager
|
||||||
|
|||||||
@@ -16,13 +16,6 @@
|
|||||||
HotSpot-Use-Case = false;
|
HotSpot-Use-Case = false;
|
||||||
### See https://nixos.wiki/wiki/Internet_Connection_Sharing
|
### See https://nixos.wiki/wiki/Internet_Connection_Sharing
|
||||||
|
|
||||||
ZFS-Networking-HostID = "";
|
|
||||||
### See https://search.nixos.org/options?channel=unstable&show=networking.hostId&from=0&size=30&sort=relevance&query=networking.hostId
|
|
||||||
### Could be generated by `head -c4 /dev/urandom | od -A none -t x4`
|
|
||||||
|
|
||||||
ZFS-Use-Case = false;
|
|
||||||
### See https://openzfs.github.io/openzfs-docs/Getting%20Started/NixOS/index.html
|
|
||||||
|
|
||||||
## Software related
|
## Software related
|
||||||
QEMU-VM-Use-Case = false;
|
QEMU-VM-Use-Case = false;
|
||||||
### See https://github.com/qemu/qemu ; https://github.com/virt-manager/virt-manager
|
### See https://github.com/qemu/qemu ; https://github.com/virt-manager/virt-manager
|
||||||
|
|||||||
@@ -13,7 +13,6 @@
|
|||||||
Locale
|
Locale
|
||||||
StateVersion
|
StateVersion
|
||||||
TimeZone
|
TimeZone
|
||||||
ZFS-Use-Case
|
|
||||||
;
|
;
|
||||||
in
|
in
|
||||||
with lib; {
|
with lib; {
|
||||||
@@ -55,7 +54,6 @@ in
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
theme = mkForce "${pkgs.minimal-grub-theme}";
|
theme = mkForce "${pkgs.minimal-grub-theme}";
|
||||||
zfsSupport = ZFS-Use-Case;
|
|
||||||
};
|
};
|
||||||
systemd-boot = mkIf (BootLoader == "systemd-boot") {
|
systemd-boot = mkIf (BootLoader == "systemd-boot") {
|
||||||
configurationLimit = 50;
|
configurationLimit = 50;
|
||||||
|
|||||||
@@ -1,42 +0,0 @@
|
|||||||
{
|
|
||||||
hostname,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
inherit
|
|
||||||
(import ../../hosts/${hostname}/env.nix)
|
|
||||||
KernelPackages
|
|
||||||
ZFS-Networking-HostID
|
|
||||||
ZFS-Use-Case
|
|
||||||
;
|
|
||||||
in
|
|
||||||
with lib; {
|
|
||||||
config = mkIf ZFS-Use-Case {
|
|
||||||
boot = {
|
|
||||||
kernelParams = ["zfs_force=1"];
|
|
||||||
supportedFilesystems = ["zfs"];
|
|
||||||
zfs = {
|
|
||||||
devNodes = "/dev/disk/by-id";
|
|
||||||
forceImportRoot = false;
|
|
||||||
package = mkIf (strings.hasInfix "linuxPackages_cachyos" KernelPackages) pkgs.zfs_cachyos;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
networking.hostId = ZFS-Networking-HostID;
|
|
||||||
services.zfs = {
|
|
||||||
autoScrub = {
|
|
||||||
enable = true;
|
|
||||||
interval = "weekly";
|
|
||||||
};
|
|
||||||
trim = {
|
|
||||||
enable = true; # HDD no need
|
|
||||||
interval = "weekly";
|
|
||||||
};
|
|
||||||
autoSnapshot.enable = true;
|
|
||||||
};
|
|
||||||
systemd.services = {
|
|
||||||
zfs-share.enable = mkForce false;
|
|
||||||
zfs-zed.enable = mkForce false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user