SBIL66XUEAYRITCGPQUNJUUVUWOFPDD4Q3F2POQRBNMS6GDUZAPQC { self, config, inputs, lib, pkgs, keys, ... }: letinherit (lib) enabled mkIf optionalAttrs;in {# Common user configurationusers.users.james = {shell = pkgs.nushell;} // optionalAttrs config.isLinux {isNormalUser = true;extraGroups = [ "wheel" ];openssh.authorizedKeys.keys = [ keys.james ];} // optionalAttrs config.isDarwin {name = "james";home = "/Users/james";};# Home Manager common config (Linux only)home-manager = mkIf config.isLinux {users.james = {};sharedModules = [{home.stateVersion = "24.11";programs.home-manager = enabled;}];};}
# will do later# nix.distributedBuilds = true;# nix.buildMachines = self.nixosConfigurations# |> attrsToList# |> filter ({ name, value }:# name != (config.networking.hostName or config.networking.computerName or "") &&# value.config.users.users ? build)# |> map ({ name, value }: {# hostName = name;# maxJobs = 20;# protocol = "ssh-ng";# sshUser = "build";# supportedFeatures = [ "benchmark" "big-parallel" "kvm" "nixos-test" ];# system = value.config.nixpkgs.hostPlatform.system;# });
nix.distributedBuilds = true;nix.buildMachines = self.nixosConfigurations|> attrsToList|> filter ({ name, value }:name != (config.networking.hostName or config.networking.computerName or "") &&value.config.users.users ? build)|> map ({ name, value }: {hostName = name;maxJobs = 20;protocol = "ssh-ng";sshUser = "build";supportedFeatures = [ "benchmark" "big-parallel" "kvm" "nixos-test" ];system = value.config.nixpkgs.hostPlatform.system;});
users.users.james.hashedPasswordFile = config.age.secrets.password.path;
users.users.james = {isNormalUser = true;shell = pkgs.nushell;hashedPasswordFile = config.age.secrets.password.path;extraGroups = [ "wheel" ];openssh.authorizedKeys.keys = [ keys.james ];};
users.users.james.hashedPasswordFile = config.age.secrets.password.path;
users.users.james = {isNormalUser = true;shell = pkgs.nushell;hashedPasswordFile = config.age.secrets.password.path;extraGroups = [ "wheel" ];openssh.authorizedKeys.keys = [ keys.james ];};