Skip to content

Commit

Permalink
Look for cache on cache.garnix.io
Browse files Browse the repository at this point in the history
  • Loading branch information
ritiek committed Oct 20, 2024
1 parent f7f6a00 commit 632579c
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 17 deletions.
55 changes: 43 additions & 12 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
nur.url = "github:nix-community/NUR";
# stable.url = "github:NixOS/nixpkgs/nixos-24.05";
stable.url = "github:NixOS/nixpkgs/nixos-24.05";
unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
# local.url = "git+file:///home/ritiek/Downloads/nixpkgs";
# local.url = "github:ritiek/nixpkgs/init-piano-rs";
Expand All @@ -20,10 +20,11 @@
# url = "github:nix-community/home-manager/release-24.05";
# inputs.nixpkgs.follows = "nixpkgs";
# };
# wezterm-flake.url = "github:wez/wezterm/main?dir=nix";

wezterm-flake = {
url = "github:wez/wezterm/main?dir=nix";
inputs.nixpkgs.follows = "nixpkgs";
# Commenting out as compilation fails (as of 10th Oct, 2024).
# inputs.nixpkgs.follows = "nixpkgs";
};

rose-pine-hyprcursor = {
Expand Down Expand Up @@ -65,6 +66,7 @@

hyprgrass = {
url = "github:horriblename/hyprgrass";
# inputs.nixpkgs.follows = "nixpkgs";
inputs.hyprland.follows = "hyprland";
};
};
Expand Down
14 changes: 13 additions & 1 deletion generators/minimal.nix
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,19 @@
memoryPercent = 100;
};

nix.settings.auto-optimise-store = true;
nix.settings = {
auto-optimise-store = true;
substituters = [
"https://nix-community.cachix.org"
"https://cache.garnix.io"
"https://hyprland.cachix.org"
];
trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
];
};

# For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
system.stateVersion = "24.05"; # Did you read the comment?
Expand Down
10 changes: 10 additions & 0 deletions machines/clawsiecats/minimal.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@
nix.settings = {
experimental-features = [ "nix-command" "flakes" ];
auto-optimise-store = true;
substituters = [
"https://nix-community.cachix.org"
"https://cache.garnix.io"
"https://hyprland.cachix.org"
];
trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
];
};

environment.persistence."/nix/persist/system" = {
Expand Down
2 changes: 2 additions & 0 deletions machines/mishy/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,12 @@
auto-optimise-store = true;
substituters = [
"https://nix-community.cachix.org"
"https://cache.garnix.io"
"https://hyprland.cachix.org"
];
trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
];
};
Expand Down
2 changes: 1 addition & 1 deletion machines/mishy/home/hyprland/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ in
# enableNvidiaPatches = true;
# xwayland.enable = false;
plugins = [
inputs.hyprgrass.packages.${pkgs.system}.default
# inputs.hyprgrass.packages.${pkgs.system}.default
];
systemd = {
enable = true;
Expand Down

0 comments on commit 632579c

Please sign in to comment.