summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix49
1 files changed, 25 insertions, 24 deletions
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 ];
+ };
+ };
+ };
}