fixed the the lib problem

This commit is contained in:
2023-03-01 23:52:27 +00:00
parent 41d73d457e
commit 4ecf7ad0d7
2 changed files with 9 additions and 5 deletions

View File

@@ -65,7 +65,8 @@
pkgs' = mkPkgs nixpkgs-unstable [];
lib = nixpkgs.lib.extend
(self: super: { my = import ./lib { inherit pkgs inputs outputs; lib = self; }; });
(self: super: { my = import ./lib { inherit pkgs inputs outputs; lib = self; }; }// home-manager.lib);
in {
lib = lib.my;
packages."${system}" =
@@ -95,6 +96,7 @@
##import our HM modules
## -- imported in ./home-manger/general
homeManagerModules = builtins.listToAttrs (map
(name: {
inherit name;
@@ -129,8 +131,9 @@
homeConfigurations = {
# FIXME replace with your username@hostname
"sstent@Go3" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
extraSpecialArgs = { inherit inputs outputs; hostName = "Go3"; };
# pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
pkgs = pkgs;
extraSpecialArgs = { inherit inputs outputs lib; hostName = "Go3"; };
modules = [
# > Our main home-manager configuration file <
./home-manager/users/sstent
@@ -138,7 +141,7 @@
];
};
"sstent@StuPC" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
# pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
extraSpecialArgs = { inherit inputs outputs; hostName = "StuPC";};
modules = [
# > Our main home-manager configuration file <

View File

@@ -6,9 +6,10 @@ cfg = config.custom.keybase;
username = config.home.username;
secretstore = config._secretstore;
in {
# imports = [
# "${inputs.self}/libs/map.nix"
# "${inputs.self}/lib/hm_secrets.nix"
# ];
options.custom.keybase = {