Refactor configuration files to include 'inputs' parameter for improved modularity and consistency across hosts.

This commit is contained in:
Danilo Reyes 2025-10-12 22:57:24 -06:00
parent de5ad541b8
commit be82c5c477
5 changed files with 11 additions and 4 deletions

View File

@ -70,7 +70,7 @@ in
];
openssh.authorizedKeys.keyFiles = inputs.self.lib.getSshKeys [
"deacero"
"workstation"
"workstation"
"server"
"miniserver"
"galaxy"

View File

@ -1,4 +1,4 @@
{ config, ... }:
{ config, inputs, ... }:
{
imports = [
./hardware-configuration.nix

View File

@ -2,6 +2,7 @@
pkgs,
config,
lib,
inputs,
...
}:
{

View File

@ -1,6 +1,7 @@
{
pkgs,
config,
inputs,
...
}:
let

View File

@ -1,4 +1,9 @@
{ lib, config, inputs, ... }:
{
lib,
config,
inputs,
...
}:
{
options.my.users.nixremote = {
enable = lib.mkEnableOption "nixremote user for distributed builds";
@ -6,7 +11,7 @@
type = lib.types.listOf lib.types.path;
default = inputs.self.lib.getSshKeys [
"nixworkstation"
"nixserver"
"nixserver"
"nixminiserver"
];
description = "List of SSH public key files to authorize for nixremote user";