diff options
| author | Fuwn <[email protected]> | 2024-09-13 06:15:21 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-09-13 06:15:21 -0700 |
| commit | b04e57f21396c7d71d79f04bd2a5b40d69bee3da (patch) | |
| tree | c2eab977fa4a70ce19537262b2ea58317aacf35d | |
| parent | 11c3e7825e6785fb8f085b8c0d59c0bd8796a604 (diff) | |
| download | pywal.nix-b04e57f21396c7d71d79f04bd2a5b40d69bee3da.tar.xz pywal.nix-b04e57f21396c7d71d79f04bd2a5b40d69bee3da.zip | |
chore(nix): use flake-utils for per-system
| -rw-r--r-- | README.md | 4 | ||||
| -rw-r--r-- | flake.lock | 21 | ||||
| -rw-r--r-- | flake.nix | 9 |
3 files changed, 30 insertions, 4 deletions
@@ -23,7 +23,7 @@ works well. rev = "..."; # Use the current commit revision hash hash = "..."; # Use the current commit sha256 hash } - )).${builtins.currentSystem}.homeManagerModules.default + )).homeManagerModules.${builtins.currentSystem}.default ]; } ``` @@ -53,7 +53,7 @@ module. inputs.home-manager.lib.homeManagerConfiguration { modules = [ - inputs.pywal-nix.${pkgs.system}.homeManagerModules.default + inputs.pywal-nix.homeManagerModules.${pkgs.system}.default ]; }; @@ -14,6 +14,26 @@ "url": "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz" } }, + "flake-utils": { + "inputs": { + "systems": [ + "systems" + ] + }, + "locked": { + "lastModified": 1710146030, + "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, "nixpkgs": { "locked": { "lastModified": 1726137256, @@ -32,6 +52,7 @@ "root": { "inputs": { "flake-compat": "flake-compat", + "flake-utils": "flake-utils", "nixpkgs": "nixpkgs", "systems": "systems" } @@ -3,15 +3,20 @@ nixpkgs.url = "github:NixOS/nixpkgs"; systems.url = "github:nix-systems/default"; flake-compat.url = "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz"; + + flake-utils = { + url = "github:numtide/flake-utils"; + inputs.systems.follows = "systems"; + }; }; outputs = { nixpkgs, - systems, + flake-utils, ... }: - (nixpkgs.lib.genAttrs (import systems)) (system: { + flake-utils.lib.eachDefaultSystem (system: { homeManagerModules.default = { config, ... }: let |