Compare commits

..

2 commits

Author SHA1 Message Date
07b4cf9273 Updated Lock File, Added Garbage Collection
Some checks failed
/ Check NixOS Configuration (push) Has been cancelled
2024-11-16 06:00:26 +01:00
16d5c3090e Updated Remote-Build Config 2024-11-16 05:57:02 +01:00
5 changed files with 58 additions and 21 deletions

29
flake.lock generated
View file

@ -164,11 +164,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1731375802, "lastModified": 1731721802,
"narHash": "sha256-CvWPEzrl2EA3xrtg9X6K8aqV7T5r0SaDz6PLpGA0yIY=", "narHash": "sha256-bdzCCvI3spAsAhWOt8NUrnyVSXI0DBTf7ZAGxJq05pk=",
"owner": "Infinidoge", "owner": "Infinidoge",
"repo": "nix-minecraft", "repo": "nix-minecraft",
"rev": "b873a123366b9a62f9262414ada8d83b03f1f0bf", "rev": "b169b926e312ac0ea61367a191014a9d6e2114e8",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -177,13 +177,29 @@
"type": "github" "type": "github"
} }
}, },
"nixos-hardware": {
"locked": {
"lastModified": 1731403644,
"narHash": "sha256-T9V7CTucjRZ4Qc6pUEV/kpgNGzQbHWfGcfK6JJLfUeI=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "f6581f1c3b137086e42a08a906bdada63045f991",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "master",
"repo": "nixos-hardware",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1731139594, "lastModified": 1731319897,
"narHash": "sha256-IigrKK3vYRpUu+HEjPL/phrfh7Ox881er1UEsZvw9Q4=", "narHash": "sha256-PbABj4tnbWFMfBp6OcUK5iGy1QY+/Z96ZcLpooIbuEI=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "76612b17c0ce71689921ca12d9ffdc9c23ce40b2", "rev": "dc460ec76cbff0e66e269457d7b728432263166c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -213,6 +229,7 @@
"inputs": { "inputs": {
"lix-module": "lix-module", "lix-module": "lix-module",
"nix-minecraft": "nix-minecraft", "nix-minecraft": "nix-minecraft",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"snowfall-lib": "snowfall-lib", "snowfall-lib": "snowfall-lib",
"sops-nix": "sops-nix" "sops-nix": "sops-nix"

View file

@ -1,6 +1,7 @@
{ {
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
snowfall-lib.url = "github:snowfallorg/lib"; snowfall-lib.url = "github:snowfallorg/lib";
snowfall-lib.inputs.nixpkgs.follows = "nixpkgs"; snowfall-lib.inputs.nixpkgs.follows = "nixpkgs";
sops-nix.url = "github:Mic92/sops-nix"; sops-nix.url = "github:Mic92/sops-nix";
@ -23,6 +24,10 @@
}; };
nix.optimise.automatic = true; nix.optimise.automatic = true;
# Modules for Host HyperC
systems.hosts.HyperC.modules = with inputs; [
];
# Modules for Host voloxo # Modules for Host voloxo
systems.hosts.voloxo.modules = with inputs; [ systems.hosts.voloxo.modules = with inputs; [
]; ];

View file

@ -24,6 +24,31 @@
"steam-unwrapped" "steam-unwrapped"
]; ];
# Configure Remote Builds
nix.settings.trusted-public-keys = [
"cache.kb-games-01:Y9lGS9lw+grILNY+Mmw498mMoBQcYE+OqTpOHBAOajw="
];
nix.distributedBuilds = true;
nix.buildMachines = [
{
hostName = "kb-games-01-remotebuild";
system = "x86_64-linux";
maxJobs = 4;
speedFactor = 2;
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
mandatoryFeatures = [ "big-parallel" ];
}
{
hostName = "voloxo-remotebuild";
system = "x86_64-linux";
maxJobs = 6;
speedFactor = 6;
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
mandatoryFeatures = [ "big-parallel" ];
}
];
# services.tlp.enable = true; # services.tlp.enable = true;
powerManagement.cpufreq.max = 3500000; powerManagement.cpufreq.max = 3500000;
# powerManagement.cpufreq.min = 400000; # powerManagement.cpufreq.min = 400000;
@ -228,21 +253,13 @@
services.transmission.settings = { services.transmission.settings = {
download-dir = "${config.services.transmission.home}/Torrents"; download-dir = "${config.services.transmission.home}/Torrents";
}; };
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
# Open ports in the firewall. services.nix-serve = {
# networking.firewall.allowedTCPPorts = [ ... ]; enable = true;
# networking.firewall.allowedUDPPorts = [ ... ]; secretKeyFile = "/var/cache-HyperC-priv-key.pem";
# Or disable the firewall altogether. };
# networking.firewall.enable = false;
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "24.05"; # Did you read the comment? system.stateVersion = "24.05"; # Did you read the comment?
} }

View file

@ -7,7 +7,6 @@
# Configure Nix # Configure Nix
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.settings.trusted-users = [ "remotebuild" ]; # UNSAVE, Remove ASAP
nix.settings.trusted-public-keys = [ nix.settings.trusted-public-keys = [
"cache.HyperC:90YNJ0eWsuBGVVP989lJh1rL8C0KM6IKbAtEUiu+FCU=" "cache.HyperC:90YNJ0eWsuBGVVP989lJh1rL8C0KM6IKbAtEUiu+FCU="
]; ];

View file

@ -14,7 +14,6 @@
"electron-27.3.11" "electron-27.3.11"
"olm-3.2.16" "olm-3.2.16"
]; ];
nix.settings.trusted-users = [ "remotebuild" ]; # UNSAVE, Remove ASAP
nix.settings.trusted-public-keys = [ nix.settings.trusted-public-keys = [
"cache.HyperC:90YNJ0eWsuBGVVP989lJh1rL8C0KM6IKbAtEUiu+FCU=" "cache.HyperC:90YNJ0eWsuBGVVP989lJh1rL8C0KM6IKbAtEUiu+FCU="
]; ];