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.nix | 49 +++++++++++++++++++++++++------------------------ 1 file changed, 25 insertions(+), 24 deletions(-) (limited to 'flake.nix') 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