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 [ openssh.authorizedKeys.keyFiles = inputs.self.lib.getSshKeys [
"deacero" "deacero"
"workstation" "workstation"
"server" "server"
"miniserver" "miniserver"
"galaxy" "galaxy"

View File

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

View File

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

View File

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

View File

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