This commit is contained in:
John Lancaster
2024-12-08 16:22:59 -06:00
parent 30c43f5488
commit 138df54fbc
3 changed files with 16 additions and 6 deletions

View File

@@ -32,4 +32,5 @@
}; };
time.timeZone = "${systemSettings.timeZone}"; time.timeZone = "${systemSettings.timeZone}";
networking.hostName = systemSettings.hostname;
} }

View File

@@ -38,6 +38,7 @@
}; };
pkgs = inputs.nixpkgs.legacyPackages.${systemSettings.system}; pkgs = inputs.nixpkgs.legacyPackages.${systemSettings.system};
pkgs-stable = inputs.nixpkgs-stable.legacyPackages.${systemSettings.system};
in in
{ {
@@ -64,10 +65,18 @@
homeConfigurations = { homeConfigurations = {
useGlobalPkgs = true; useGlobalPkgs = true;
user = home-manager.lib.homeManagerConfiguration { "${userSettings.username}" = home-manager.lib.homeManagerConfiguration {
inherit pkgs; inherit pkgs;
extraSpecialArgs = {inherit inputs outputs pkgs;}; specialArgs = {
modules = [ ./homeManagerModules/home.nix ]; inherit inputs;
inherit outputs;
inherit userSettings;
inherit systemSettings;
};
modules = [
./homeManagerModules/home.nix
({...}: {home.stateVersion = "${stateVersion}";})
];
}; };
}; };
}; };

View File

@@ -1,8 +1,8 @@
{ {
inputs,
lib, lib,
config, config,
pkgs, pkgs,
inputs,
... ...
}: }:
let let
@@ -12,10 +12,10 @@ in
imports = [ ./git.nix ]; imports = [ ./git.nix ];
programs.git.extraConfig.safe.directory = "${homePath}"; programs.git.extraConfig.safe.directory = "${homePath}";
nixpkgs.config.allowUnfree = true;
programs.home-manager.enable = true; programs.home-manager.enable = true;
home = { home = {
stateVersion = "24.05";
# username = "${user}";
homeDirectory = "${homePath}"; homeDirectory = "${homePath}";
packages = [ packages = [
(pkgs.writeShellScriptBin "nfs" '' (pkgs.writeShellScriptBin "nfs" ''