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 | |
| parent | Feat(home-manager): Make the home configuration better (diff) | |
| download | nixos-config-c0717cd0fc05dd7fc88e6941923570b00ed55f18.zip | |
Fix(home-manager): Import home-manager correctly
Diffstat (limited to '')
| -rw-r--r-- | flake.lock | 19 | ||||
| -rw-r--r-- | flake.nix | 25 |
2 files changed, 42 insertions, 2 deletions
diff --git a/flake.lock b/flake.lock index 94284b5a..e68df48b 100644 --- a/flake.lock +++ b/flake.lock @@ -91,7 +91,8 @@ "inputs": { "home-manager": "home-manager", "nixpkgs": "nixpkgs", - "strip_js_comments": "strip_js_comments" + "strip_js_comments": "strip_js_comments", + "user_js": "user_js" } }, "strip_js_comments": { @@ -117,6 +118,22 @@ "url": "https://codeberg.org/ene/strip_js_comments.git" } }, + "user_js": { + "flake": false, + "locked": { + "lastModified": 1675728165, + "narHash": "sha256-ebSx6DaXoGKcCoK6UcDnWvdAW6J2X6pJRPD1Pw7UNOw=", + "owner": "arkenfox", + "repo": "user.js", + "rev": "73884850632ffe284f76881786f7d5903b917f58", + "type": "github" + }, + "original": { + "owner": "arkenfox", + "repo": "user.js", + "type": "github" + } + }, "utils": { "locked": { "lastModified": 1667395993, 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"; |
