Refactor configuration files to include 'inputs' parameter for improved modularity and consistency across hosts.
This commit is contained in:
parent
de5ad541b8
commit
be82c5c477
@ -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"
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
{ config, ... }:
|
{ config, inputs, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
|
inputs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
config,
|
config,
|
||||||
|
inputs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
|
|||||||
@ -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";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user