ctucx.git: nixfiles

ctucx' nixfiles

commit 61931ec2ed7f5ecf4f23a61c439a781061f4a451
parent ae511e9a61ee3da8266c39fc2522dceb8600eb1e
Author: Leah (ctucx) <git@ctu.cx>
Date: Sat, 9 Nov 2024 20:45:08 +0100

flake: `nix-std` as overlay
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/configurations/darwin/aerospace.nix b/configurations/darwin/aerospace.nix
@@ -1,7 +1,6 @@
 { inputs, pkgs, ... }:
 
 let
-  std         = inputs.nix-std.lib;
   newTerminal = pkgs.writeScript "newTerminalWindow.sh" ''
     #!/usr/bin/env bash
     # Open iTerm2 with single instance

@@ -33,7 +32,7 @@ in {
   home-manager.users.leah.home.file.".aerospace.toml".text = (builtins.replaceStrings
     [ "\"mode.main.binding\"" "\"mode.resize.binding\"" "\"if.app-id\"" "\"if.during-aerospace-startup\"" ]
     [ "mode.main.binding"     "mode.resize.binding"     "if.app-id"     "if.during-aerospace-startup"]
-  (std.serde.toTOML {
+  (pkgs.std.serde.toTOML {
     enable-normalization-flatten-containers                         = false;
     enable-normalization-opposite-orientation-for-nested-containers = false;
 
diff --git a/flake.nix b/flake.nix
@@ -36,7 +36,7 @@
             "olm-3.2.16"
           ];
           overlays = overlays;
-        };
+        };          
 
         specialArgs = {
           inherit inputs;

@@ -64,6 +64,7 @@
 
       (final: prev: {
         dns      = inputs.dns-nix;
+        std      = inputs.nix-std.lib;
         unstable = inputs.nixpkgsUnstable.legacyPackages.${prev.system};
       })