add reflac and misc changes

This commit is contained in:
2024-10-11 13:44:28 -04:00
parent dfa8472c04
commit 0f7f9e77dc
3 changed files with 25 additions and 23 deletions

View File

@@ -55,23 +55,22 @@
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
# 1 sec timeout
# 1s timeout
timeout = 1;
};
initrd = {
compressor = "zstd";
compressorArgs = [ "-19" ];
};
kernelModules = [
# kernel module for case fan control
"nct6775"
];
# kernelModules = [
# # kernel module for case fan control
# "nct6775"
# ];
};
environment.etc = {
"issue".text = "muffin server :3\n";
"issue".text = "";
};
# Set your time zone.
@@ -86,11 +85,6 @@
};
};
#Intel GPU stuff
nixpkgs.config.packageOverrides = pkgs: {
vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
};
hardware.graphics = {
enable = true;
extraPackages = with pkgs; [
@@ -100,8 +94,6 @@
];
};
hardware.intelgpu.driver = "xe";
#fwupd for updating firmware
services.fwupd = {
enable = true;
@@ -146,6 +138,16 @@
${pkgs.smartmontools}/bin/smartctl -a "$i" | ${pkgs.gnugrep}/bin/grep "SMART overall-health self-assessment test result:" | ${pkgs.coreutils}/bin/cut -d' ' -f6
done
'')
flac
(pkgs.writeScriptBin "reflac" (
builtins.readFile (
pkgs.fetchurl {
url = "https://raw.githubusercontent.com/chungy/reflac/refs/heads/master/reflac";
sha256 = "61c6cc8be3d276c6714e68b55e5de0e6491f50bbf195233073dbce14a1e278a7";
}
)
))
];
services.zfs = {