abstracted hostnames so that each machine can now use seperate home-manager configs

This commit is contained in:
2025-07-29 23:26:03 -07:00
parent 8e5e8f9a08
commit 2fac0e3705
5 changed files with 36 additions and 18 deletions

View File

@@ -8,6 +8,7 @@
pkgs-unstable,
inputs,
configPath,
hostname,
...
}:
@@ -36,6 +37,17 @@
persistent = true;
options = "--delete-older-than 30d";
};
#let
# system = pkgs.system;
# unstable = import (builtins.fetchTarball {
# url = "https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz";
# sha256 = "09dahi81cn02gnzsc8a00n945dxc18656ar0ffx5vgxjj1nhgsvy";
# }) {
# inherit system;
# config.allowUnfree = true;
# };
#in
# Dynamic power managment
# powerManagement = {
@@ -264,6 +276,7 @@
configPath
inputs
pkgs-unstable
hostname
;
};
users = {

View File

@@ -2,18 +2,7 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, pkgs-unstable, inputs, ... }:
#let
# system = pkgs.system;
# unstable = import (builtins.fetchTarball {
# url = "https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz";
# sha256 = "09dahi81cn02gnzsc8a00n945dxc18656ar0ffx5vgxjj1nhgsvy";
# }) {
# inherit system;
# config.allowUnfree = true;
# };
#in
{ config, pkgs, pkgs-unstable, inputs, hostname, ... }:
{
imports =
@@ -306,7 +295,7 @@
];
home-manager = {
extraSpecialArgs = { inherit inputs; };
extraSpecialArgs = { inherit inputs hostname; };
users = {
"rogueking" = import ./../../home-manager/home.nix;
};