homemanager support v0

This commit is contained in:
ari committed 2024-08-10 12:57:23 -04:00
1 parent 73013afe1c
commit 63bdca6f54
2 files changed
+5 -3

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@ let
gitconfigs =
(builtins.filterSource (path: type: type != "directory") ./gitconfigs);
gitconfigFiles = builtins.attrNames (builtins.readDir gitconfigs);
makeCommonGitConfigs = { extraGitConfigs }: {
makeCommonGitConfigs = { extraGitConfigs ? [ ] }: {
delta = { enable = true; };
extraConfig = {
color = { ui = "auto"; };
+4 -2
View File
@@ -14,7 +14,7 @@ let
(import ./main.nix attrs)
] ++ extraConfiguration;
eachSystem = nixpkgs.lib.genAttrs (import systems);
pkgs = eachSystem (system:
allPkgs = eachSystem (system:
import nixpkgs {
system = system;
config = { allowUnfree = true; };
@@ -63,11 +63,13 @@ let
{ modules ? [ ]
, homeManagerVersion
, user
, system ? "x86_64-linux"
}:
let
hm = (import ../home-manager.nix {
stateVersion = homeManagerVersion;
});
pkgs = allPkgs."${system}";
in
home-manager.lib.homeManagerConfiguration {
inherit pkgs;
@@ -78,7 +80,7 @@ let
in
{
eachSystem = eachSystem;
pkgs = pkgs;
pkgs = allPkgs;
makeNixOsModule = makeNixOsModule;
makeHLService = makeHLService;
makeDarwinModule = makeDarwinModule;