aboutsummaryrefslogtreecommitdiff
path: root/nix/lib
diff options
context:
space:
mode:
Diffstat (limited to 'nix/lib')
-rw-r--r--nix/lib/mkSystem.nix18
-rw-r--r--nix/lib/overlays.nix14
2 files changed, 19 insertions, 13 deletions
diff --git a/nix/lib/mkSystem.nix b/nix/lib/mkSystem.nix
index c9c8074..b54a4f4 100644
--- a/nix/lib/mkSystem.nix
+++ b/nix/lib/mkSystem.nix
@@ -3,7 +3,11 @@
{ nixpkgs, inputs }:
name:
-{ system, user, darwin ? false, }:
+{
+ system,
+ user,
+ darwin ? false,
+}:
let
# The config files for this system.
@@ -12,13 +16,11 @@ let
userHMConfig = ../users/${user}/home-manager.nix;
# NixOS vs nix-darwin functionst
- systemFunc =
- if darwin then inputs.darwin.lib.darwinSystem else nixpkgs.lib.nixosSystem;
- home-manager = if darwin then
- inputs.home-manager.darwinModules
- else
- inputs.home-manager.nixosModules;
-in systemFunc rec {
+ systemFunc = if darwin then inputs.darwin.lib.darwinSystem else nixpkgs.lib.nixosSystem;
+ home-manager =
+ if darwin then inputs.home-manager.darwinModules else inputs.home-manager.nixosModules;
+in
+systemFunc rec {
inherit system;
modules = [
diff --git a/nix/lib/overlays.nix b/nix/lib/overlays.nix
index 531c725..7b338c6 100644
--- a/nix/lib/overlays.nix
+++ b/nix/lib/overlays.nix
@@ -1,5 +1,9 @@
-let path = ../../overlays;
-in with builtins;
-map (n: import (path + ("/" + n))) (filter (n:
- match ".*\\.nix" n != null || pathExists (path + ("/" + n + "/default.nix")))
- (attrNames (readDir path)))
+let
+ path = ../../overlays;
+in
+with builtins;
+map (n: import (path + ("/" + n))) (
+ filter (n: match ".*\\.nix" n != null || pathExists (path + ("/" + n + "/default.nix"))) (
+ attrNames (readDir path)
+ )
+)