Compare commits

...

2 Commits

Author SHA1 Message Date
0e7b17b468 fix(darwin): resolve nodejs-related build issues 2025-05-17 15:57:48 -04:00
b4cd8edacd feat(nix): configure nh 2025-05-17 15:57:32 -04:00
5 changed files with 43 additions and 31 deletions

View File

@ -3,12 +3,13 @@
pkgs, pkgs,
... ...
}: { }: {
nix.gc = { nix = {
gc = {
automatic = true; automatic = true;
options = "--delete-older-than 30d"; options = "--delete-older-than 30d";
}; };
nix.optimise.automatic = true; optimise.automatic = true;
nix.settings = { settings = {
extra-experimental-features = [ extra-experimental-features = [
"flakes" "flakes"
"nix-command" "nix-command"
@ -21,7 +22,16 @@
config.my.user config.my.user
]; ];
}; };
nix.package = pkgs.nix; package = pkgs.nix;
};
environment.systemPackages = with pkgs; [
unstable.nh
];
# TODO: make sure hostnames always match flake output name
environment.variables."NH_FLAKE" = ''${config.hm.home.homeDirectory}/Projects/nix-dots'';
programs.zsh.enable = true; programs.zsh.enable = true;
time.timeZone = "America/New_York"; time.timeZone = "America/New_York";
} }

View File

@ -16,7 +16,7 @@ in {
hm.my.sketchybar.enable = true; hm.my.sketchybar.enable = true;
fonts.packages = with pkgs; [ fonts.packages = with pkgs; [
sketchybar-app-font unstable.sketchybar-app-font
]; ];
}; };
} }

View File

@ -30,7 +30,7 @@
); );
in { in {
flake.darwinConfigurations = { flake.darwinConfigurations = {
mac = mkDarwin { neptune = mkDarwin {
modules = [ modules = [
{ {
hm = import ../user/environments/mac/home.nix; hm = import ../user/environments/mac/home.nix;

View File

@ -1,7 +1,4 @@
{inputs, ...}: { {inputs, ...}: {
rust-overlay = inputs.rust-overlay.overlays.default;
vscode-extensions = inputs.nix-vscode-extensions.overlays.default;
# This one brings our custom packages from the 'pkgs' directory # This one brings our custom packages from the 'pkgs' directory
additions = final: prev: additions = final: prev:
{ {
@ -17,13 +14,18 @@
# This one contains whatever you want to overlay # This one contains whatever you want to overlay
# You can change versions, add patches, set compilation flags, anything really. # You can change versions, add patches, set compilation flags, anything really.
# https://nixos.wiki/wiki/Overlays # https://nixos.wiki/wiki/Overlays
modifications = final: prev: modifications = final: prev: {
if prev.stdenv.isDarwin # address build failure on darwin, remove after 25.05
then { nodejs_20-slim = prev.nodejs-slim_22;
# avoid build failure on darwin nodejs_20 = prev.nodejs_22;
inherit (final.unstable) ghostscript; nodejs-slim = prev.nodejs-slim_22;
} nodejs = prev.nodejs_22;
else {}; };
# External overlays
# Included after the above to ensure modifications are applied
rust-overlay = inputs.rust-overlay.overlays.default;
vscode-extensions = inputs.nix-vscode-extensions.overlays.default;
# When applied, the unstable nixpkgs set (declared in the flake inputs) will # When applied, the unstable nixpkgs set (declared in the flake inputs) will
# be accessible through 'pkgs.unstable' # be accessible through 'pkgs.unstable'

View File

@ -8,7 +8,7 @@
icons = import ./config/icons.nix; icons = import ./config/icons.nix;
pkgsMaster = inputs.master.legacyPackages.${system}; pkgsMaster = inputs.master.legacyPackages.${system};
nixvimModule = { nixvimModule = {
pkgs = inputs.nixpkgs.legacyPackages.${system}; inherit pkgs;
module = import ./config; module = import ./config;
extraSpecialArgs = {inherit icons pkgsMaster;}; extraSpecialArgs = {inherit icons pkgsMaster;};
}; };