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

14
flake.lock generated
View File

@@ -43,11 +43,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1728351976, "lastModified": 1728611137,
"narHash": "sha256-X83r7hCo6fzllvgVGT2sJhl0dwZbA4xfud3GFtkwaBg=", "narHash": "sha256-P3IMlCnXU2yK1eosUjZy/zGvjYJLv4aCIK0s/d9iUKY=",
"owner": "Infinidoge", "owner": "Infinidoge",
"repo": "nix-minecraft", "repo": "nix-minecraft",
"rev": "02bae91cf389340c62bb367d4a5b6ad06a2562d1", "rev": "76dd43c0d72e8ada06a7f04348e88f91385791bf",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -74,16 +74,16 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1728352754, "lastModified": 1728492678,
"narHash": "sha256-rIa/pEDxkQqSaDMxNIlsFq0GpKSCeNxWkvhUzdLLrWk=", "narHash": "sha256-9UTxR8eukdg+XZeHgxW5hQA9fIKHsKCdOIUycTryeVw=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "3727d51a8e07e635b9bcbc5f812b16d80d46eaeb", "rev": "5633bcff0c6162b9e4b5f1264264611e950c8ec7",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NixOS", "owner": "NixOS",
"ref": "master", "ref": "nixos-unstable",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }

View File

@@ -2,8 +2,8 @@
description = "Flake for server muffin"; description = "Flake for server muffin";
inputs = { inputs = {
# nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs.url = "github:NixOS/nixpkgs/master"; # nixpkgs.url = "github:NixOS/nixpkgs/master";
nixos-hardware.url = "github:NixOS/nixos-hardware/master"; nixos-hardware.url = "github:NixOS/nixos-hardware/master";