make all system.nix files functions

This commit is contained in:
jacekpoz 2024-09-01 22:28:35 +02:00
parent dc21222846
commit 554a2784b4
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8
5 changed files with 7 additions and 5 deletions

View file

@ -1,4 +1,4 @@
{
_: {
poz.other.system = {
hostname = "chmura";
username = "chmura";

View file

@ -31,7 +31,9 @@
generic = createHost;
}."${host.type}";
path' = append host.dir "system.nix";
cfg = import path';
cfg = (import path') {
inherit inputs;
};
in {
name = cfg.poz.other.system.hostname;
value = createFn host.dir;

View file

@ -1,4 +1,4 @@
{
_: {
poz.other = {
system = {
hostname = "niks";

View file

@ -1,4 +1,4 @@
{
_: {
poz.other = {
system = {
hostname = "niks";

View file

@ -1,4 +1,4 @@
{
_: {
poz.other = {
system = {
hostname = "niks";