about summary refs log tree commit diff
path: root/flake.nix
diff options
context:
space:
mode:
authorazahi <azat@bahawi.net>2025-02-17 02:21:56 +0300
committerazahi <azat@bahawi.net>2025-02-17 02:21:56 +0300
commit59180328cda59817d71cd58c8f48ead047375064 (patch)
tree2cdd7d1bfa309839ef624c19daf283f510aacf69 /flake.nix
parent2025-02-05 (diff)
2025-02-17
Diffstat (limited to '')
-rw-r--r--flake.nix14
1 files changed, 6 insertions, 8 deletions
diff --git a/flake.nix b/flake.nix
index 24d5cb3..2a7613d 100644
--- a/flake.nix
+++ b/flake.nix
@@ -13,7 +13,7 @@
     flake-parts.url = "github:hercules-ci/flake-parts";
 
     # TODO https://github.com/NixOS/nixpkgs/pull/360866
-    nixpkgs-amneziawg.url = "github:azahi/nixpkgs/add-amneziawg-to-wg-quick";
+    nixpkgs-amneziawg.url = "github:averyanalex/nixpkgs/add-amneziawg-to-wg-quick";
 
     nixos-hardware.url = "github:NixOS/nixos-hardware";
 
@@ -102,7 +102,6 @@
       url = "github:dwarfmaster/arkenfox-nixos";
       inputs = {
         flake-compat.follows = "flake-compat";
-        flake-utils.follows = "flake-utils";
         nixpkgs.follows = "nixpkgs";
         pre-commit.follows = "git-hooks";
       };
@@ -162,13 +161,13 @@
   };
 
   outputs =
-    inputs@{ self, nixpkgs, ... }:
+    inputs@{ self, ... }:
     let
-      lib = nixpkgs.lib.extend (lib: _: import ./lib { inherit inputs lib system; });
+      lib = inputs.nixpkgs.lib.extend (lib: _: import ./lib { inherit inputs lib system; });
 
       system = "x86_64-linux";
 
-      pkgs = import nixpkgs {
+      pkgs = import inputs.nixpkgs {
         inherit system;
         overlays = [
           self.overlays.default
@@ -176,13 +175,12 @@
         ];
       };
     in
-    with lib;
     {
       inherit lib;
 
       apps.${system}.default = {
         type = "app";
-        program = getExe self.packages.${system}.nixfiles;
+        program = lib.getExe self.packages.${system}.nixfiles;
       };
 
       packages.${system} = {
@@ -210,7 +208,7 @@
 
       checks.${system} = import ./checks.nix { inherit inputs pkgs system; };
 
-      nixosModules.default = _: { imports = attrValues (modulesIn ./modules); };
+      nixosModules.default = _: { imports = lib.modulesIn ./modules |> lib.attrValues; };
 
       nixosConfigurations = import ./configurations { inherit inputs lib pkgs; };
 

Consider giving Nix/NixOS a try! <3