From 2b8d4a1dce68561387bb98a22d424401ca11305b Mon Sep 17 00:00:00 2001 From: biscuit Date: Fri, 6 Jun 2025 07:40:20 -0500 Subject: [PATCH] upd --- info.nix | 16 ++++++++++++++++ nixos/desktop/configuration.nix | 19 ++++++++++++++----- 2 files changed, 30 insertions(+), 5 deletions(-) diff --git a/info.nix b/info.nix index 9e13648..706926f 100644 --- a/info.nix +++ b/info.nix @@ -18,10 +18,26 @@ neo = "nix run github:fred-drake/neovim#"; }; + # Custom Applications apps = pkgs: with pkgs; [ delfin ]; + trustedUsers = [ + "lsoriano" + "@groups" + ]; + + buildMachines = [ + { + hostName = "192.168.68.81"; + sshUser = "lsoriano"; + sshKey = "~/.ssh/id_rsa"; + system = "x86_64-linux"; + supportedFeatures = ["big-parallel" "kvm" "nixos-test"]; + } + ]; + touchpadSupport = false; } diff --git a/nixos/desktop/configuration.nix b/nixos/desktop/configuration.nix index b692402..194886e 100644 --- a/nixos/desktop/configuration.nix +++ b/nixos/desktop/configuration.nix @@ -1,8 +1,8 @@ { - config, - lib, pkgs, allowUnfree, + buildMachines, + trustedUsers, ... }: { imports = [ @@ -21,10 +21,19 @@ nixpkgs.config.allowUnfree = allowUnfree; nix.settings = { - trusted-users = [ - "lsoriano" - ]; + trusted-users = trustedUsers; experimental-features = ["nix-command" "flakes"]; }; + + programs.ssh.extraConfig = '' + Host macair + User lsoriano + HostName 192.168.68.81 + ''; + + nix.distributedBuilds = true; + nix.settings.builders-use-substitutes = true; + + nix.buildMachines = buildMachines; system.stateVersion = "25.05"; }