From f0c954201c339e78742a1d91ac31b61c08cf37d8 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Sat, 6 Jun 2026 19:55:55 +0200 Subject: update flake --- flake.lock | 6 +++--- flake.nix | 49 +++++++++++++++++++++++++------------------------ 2 files changed, 28 insertions(+), 27 deletions(-) diff --git a/flake.lock b/flake.lock index 65dd1c1..1022845 100644 --- a/flake.lock +++ b/flake.lock @@ -2,11 +2,11 @@ "nodes": { "nixpkgs": { "locked": { - "lastModified": 1726463316, - "narHash": "sha256-gI9kkaH0ZjakJOKrdjaI/VbaMEo9qBbSUl93DnU7f4c=", + "lastModified": 1780243769, + "narHash": "sha256-x5UQuRsH3MqI0U9afaXSNqzTPSeZlRLvFAav2Ux1pNw=", "owner": "nixos", "repo": "nixpkgs", - "rev": "99dc8785f6a0adac95f5e2ab05cc2e1bf666d172", + "rev": "331800de5053fcebacf6813adb5db9c9dca22a0c", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 2f78163..feeaf39 100644 --- a/flake.nix +++ b/flake.nix @@ -1,30 +1,31 @@ { - description = "Wofi Pass"; + description = "Wofi Pass"; - inputs = { - nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; - }; + inputs = { + nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; + }; - outputs = - { self, nixpkgs }: - let - pkgs = import nixpkgs { system = "x86_64-linux"; }; - in - { - packages.x86_64-linux.default = pkgs.stdenv.mkDerivation { - name = "wofi-pass"; - src = self; - installPhase = "mkdir -p $out/bin; install -t $out/bin wofi-pass"; - }; + outputs = + { self, nixpkgs }: + let + localSystem = { system = "x86_64-linux"; }; + pkgs = import nixpkgs { inherit localSystem; }; + in + { + packages.x86_64-linux.default = pkgs.stdenv.mkDerivation { + name = "wofi-pass"; + src = self; + installPhase = "mkdir -p $out/bin; install -t $out/bin wofi-pass"; + }; - overlays.default = final: prev: { inherit (self.packages.${prev.system}) wofi-pass; }; + overlays.default = final: prev: { inherit (self.packages.${prev.system}) wofi-pass; }; - nixosModules.default = - { pkgs, ... }: - { - config = { - environment.systemPackages = [ self.packages.${pkgs.system}.default ]; - }; - }; - }; + nixosModules.default = + { pkgs, ... }: + { + config = { + environment.systemPackages = [ self.packages.${pkgs.system}.default ]; + }; + }; + }; } -- cgit v1.2.3-70-g09d2