diff options
author | ene <ene@sils.li> | 2023-02-11 16:48:09 +0100 |
---|---|---|
committer | ene <ene@sils.li> | 2023-02-12 17:47:40 +0100 |
commit | c0717cd0fc05dd7fc88e6941923570b00ed55f18 (patch) | |
tree | 42564a13449ce41033b8208047f8481bbf8cef45 /flake.nix | |
parent | Feat(home-manager): Make the home configuration better (diff) | |
download | nixos-config-c0717cd0fc05dd7fc88e6941923570b00ed55f18.tar.gz nixos-config-c0717cd0fc05dd7fc88e6941923570b00ed55f18.zip |
Fix(home-manager): Import home-manager correctly
Diffstat (limited to '')
-rw-r--r-- | flake.nix | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix index 7514aeca..0ff5d4b4 100644 --- a/flake.nix +++ b/flake.nix @@ -12,6 +12,11 @@ url = "github:nix-community/home-manager/master"; inputs.nixpkgs.follows = "nixpkgs"; }; + + user_js = { + url = "github:arkenfox/user.js"; + flake = false; + }; }; outputs = { @@ -19,12 +24,30 @@ nixpkgs, home-manager, strip_js_comments, + user_js, ... } @ inputs: { nixosConfigurations.Tiamat = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; specialArgs = inputs; - modules = [./hosts/desktop/configuration.nix (import ./home-manager/home.nix {})]; + modules = [ + ./hosts/desktop/configuration.nix + home-manager.nixosModules.home-manager + { + home-manager = { + useGlobalPkgs = true; + useUserPackages = true; + users.soispha = import ./home-manager; + extraSpecialArgs = { + inherit strip_js_comments; + inherit user_js; + }; + }; + + # Optionally, use home-manager.extraSpecialArgs to pass + # arguments to home.nix + } + ]; }; # nixosConfigurations.Apzu = nixpkgs.lib.nixosSystem { # system = "x86_64-linux"; |