seperate out remote builds
This commit is contained in:
parent
f6bfae5e1e
commit
6aec2e2372
4 changed files with 23 additions and 26 deletions
15
flake.nix
15
flake.nix
|
|
@ -81,20 +81,7 @@
|
||||||
};
|
};
|
||||||
pochita = nixpkgs.lib.nixosSystem {
|
pochita = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = {inherit inputs outputs;};
|
specialArgs = {inherit inputs outputs;};
|
||||||
modules = [
|
modules = [./hosts/pochita/configuration.nix];
|
||||||
./hosts/pochita/configuration.nix
|
|
||||||
raspberry-pi-nix.nixosModules.raspberry-pi
|
|
||||||
nixos-hardware.nixosModules.raspberry-pi-5
|
|
||||||
vscode-server.nixosModules.default
|
|
||||||
agenix.nixosModules.default
|
|
||||||
home-manager.nixosModules.home-manager
|
|
||||||
{
|
|
||||||
environment.systemPackages = [
|
|
||||||
agenix.packages.aarch64-linux.default
|
|
||||||
osbm-nvim.packages.aarch64-linux.default
|
|
||||||
];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
pochita-sd = nixpkgs.lib.nixosSystem {
|
pochita-sd = nixpkgs.lib.nixosSystem {
|
||||||
modules = [
|
modules = [
|
||||||
|
|
|
||||||
|
|
@ -2,34 +2,28 @@
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
|
inputs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../../modules
|
../../modules
|
||||||
|
inputs.raspberry-pi-nix.nixosModules.raspberry-pi
|
||||||
|
inputs.nixos-hardware.nixosModules.raspberry-pi-5
|
||||||
|
inputs.vscode-server.nixosModules.default
|
||||||
|
inputs.agenix.nixosModules.default
|
||||||
|
inputs.home-manager.nixosModules.home-manager
|
||||||
];
|
];
|
||||||
|
|
||||||
nix.distributedBuilds = true;
|
|
||||||
nix.buildMachines = [
|
|
||||||
{
|
|
||||||
hostName = "192.168.0.2";
|
|
||||||
systems = ["x86_64-linux" "aarch64-linux"];
|
|
||||||
supportedFeatures = ["big-parallel" "kvm"];
|
|
||||||
sshKey = "/home/osbm/.ssh/id_ed25519";
|
|
||||||
sshUser = "osbm";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
myModules = {
|
myModules = {
|
||||||
enableKDE = false;
|
enableKDE = false;
|
||||||
enableFonts = false;
|
enableFonts = false;
|
||||||
blockYoutube = false;
|
blockYoutube = false;
|
||||||
blockTwitter = false;
|
blockTwitter = false;
|
||||||
enableTailscale = true;
|
enableTailscale = true;
|
||||||
# enableJellyfin = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
i18n.inputMethod.enable = lib.mkForce false; # no need for japanese input method
|
i18n.inputMethod.enable = lib.mkForce false; # no need for japanese input method
|
||||||
programs.firefox.enable = lib.mkForce false; # no need for firefox
|
|
||||||
|
|
||||||
# enable hyprland
|
# enable hyprland
|
||||||
# programs.hyprland.enable = true;
|
# programs.hyprland.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@
|
||||||
./i18n.nix
|
./i18n.nix
|
||||||
./jellyfin.nix
|
./jellyfin.nix
|
||||||
./nix-settings.nix
|
./nix-settings.nix
|
||||||
|
./remote-builds.nix
|
||||||
./secrets.nix
|
./secrets.nix
|
||||||
./sound.nix
|
./sound.nix
|
||||||
./tailscale.nix
|
./tailscale.nix
|
||||||
|
|
|
||||||
15
modules/remote-builds.nix
Normal file
15
modules/remote-builds.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
{config, outputs, ...}:{
|
||||||
|
|
||||||
|
nix.distributedBuilds = true;
|
||||||
|
nix.builders-use-substitutes = true;
|
||||||
|
nix.buildMachines = [
|
||||||
|
{
|
||||||
|
hostName = "ymir.curl-boga.ts.net";
|
||||||
|
systems = ["x86_64-linux" "aarch64-linux"];
|
||||||
|
supportedFeatures = outputs.nixosConfigurations.ymir.config.nix.settings.system-features;
|
||||||
|
sshKey = config.age.secrets.ssh-key-private.path;
|
||||||
|
sshUser = "osbm";
|
||||||
|
protocol = "ssh-ng";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue