Compare commits
2 Commits
4834639add
...
0e7b17b468
Author | SHA1 | Date | |
---|---|---|---|
0e7b17b468 | |||
b4cd8edacd |
@ -3,25 +3,35 @@
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
options = "--delete-older-than 30d";
|
||||
nix = {
|
||||
gc = {
|
||||
automatic = true;
|
||||
options = "--delete-older-than 30d";
|
||||
};
|
||||
optimise.automatic = true;
|
||||
settings = {
|
||||
extra-experimental-features = [
|
||||
"flakes"
|
||||
"nix-command"
|
||||
];
|
||||
keep-outputs = true;
|
||||
log-lines = 25;
|
||||
tarball-ttl = 43200;
|
||||
trusted-users = [
|
||||
"root"
|
||||
config.my.user
|
||||
];
|
||||
};
|
||||
package = pkgs.nix;
|
||||
};
|
||||
nix.optimise.automatic = true;
|
||||
nix.settings = {
|
||||
extra-experimental-features = [
|
||||
"flakes"
|
||||
"nix-command"
|
||||
];
|
||||
keep-outputs = true;
|
||||
log-lines = 25;
|
||||
tarball-ttl = 43200;
|
||||
trusted-users = [
|
||||
"root"
|
||||
config.my.user
|
||||
];
|
||||
};
|
||||
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;
|
||||
time.timeZone = "America/New_York";
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ in {
|
||||
hm.my.sketchybar.enable = true;
|
||||
|
||||
fonts.packages = with pkgs; [
|
||||
sketchybar-app-font
|
||||
unstable.sketchybar-app-font
|
||||
];
|
||||
};
|
||||
}
|
||||
|
@ -30,7 +30,7 @@
|
||||
);
|
||||
in {
|
||||
flake.darwinConfigurations = {
|
||||
mac = mkDarwin {
|
||||
neptune = mkDarwin {
|
||||
modules = [
|
||||
{
|
||||
hm = import ../user/environments/mac/home.nix;
|
||||
|
@ -1,7 +1,4 @@
|
||||
{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
|
||||
additions = final: prev:
|
||||
{
|
||||
@ -17,13 +14,18 @@
|
||||
# This one contains whatever you want to overlay
|
||||
# You can change versions, add patches, set compilation flags, anything really.
|
||||
# https://nixos.wiki/wiki/Overlays
|
||||
modifications = final: prev:
|
||||
if prev.stdenv.isDarwin
|
||||
then {
|
||||
# avoid build failure on darwin
|
||||
inherit (final.unstable) ghostscript;
|
||||
}
|
||||
else {};
|
||||
modifications = final: prev: {
|
||||
# address build failure on darwin, remove after 25.05
|
||||
nodejs_20-slim = prev.nodejs-slim_22;
|
||||
nodejs_20 = prev.nodejs_22;
|
||||
nodejs-slim = prev.nodejs-slim_22;
|
||||
nodejs = prev.nodejs_22;
|
||||
};
|
||||
|
||||
# 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
|
||||
# be accessible through 'pkgs.unstable'
|
||||
|
@ -8,7 +8,7 @@
|
||||
icons = import ./config/icons.nix;
|
||||
pkgsMaster = inputs.master.legacyPackages.${system};
|
||||
nixvimModule = {
|
||||
pkgs = inputs.nixpkgs.legacyPackages.${system};
|
||||
inherit pkgs;
|
||||
module = import ./config;
|
||||
extraSpecialArgs = {inherit icons pkgsMaster;};
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user