Skip to content

Commit

Permalink
fix(nixVersions)!: latest -> stable
Browse files Browse the repository at this point in the history
Attribute `latest` is gone for some reason
  • Loading branch information
reo101 committed May 11, 2024
1 parent a73cd43 commit 4a12826
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 61 deletions.
94 changes: 39 additions & 55 deletions flake.lock

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

24 changes: 23 additions & 1 deletion machines/nix-darwin/aarch64-darwin/limonka/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,29 @@

nix = {
# Ensure we can work with flakes
package = pkgs.nixVersions.latest-monitored;
package = pkgs.nixVersions.stable-monitored;

# extraOptions = ''
# # Enable flakes and new 'nix' command
# experimental-features = nix-command flakes
# # Allow building multiple derivations in parallel
# max-jobs = auto
# # Deduplicate and optimize nix store
# auto-optimise-store = true
# # Keep outputs and derivations
# keep-outputs = true
# keep-derivations = true
# '';

# registry.nixpkgs.flake = inputs.nixpkgs;
# registry =
# lib.mapAttrs'
# (name: value:
# {
# name = name;
# value = { flake = value; };
# })
# inputs;

settings = {
# Enable flakes and new 'nix' command
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

nix = {
# Ensure we can work with flakes
package = pkgs.nixVersions.latest;
package = pkgs.nixVersions.stable;

# extraOptions = ''
# # Enable flakes and new 'nix' command
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
keep-derivations = true
'';

nix.package = pkgs.nixVersions.latest;
nix.package = pkgs.nixVersions.stable;

time.timeZone = "Europe/Sofia";

Expand Down
2 changes: 1 addition & 1 deletion machines/nixos/x86_64-linux/homix/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
# };

nix = {
package = pkgs.nixVersions.latest;
package = pkgs.nixVersions.stable;

# Enable flakes, the new `nix` commands and better support for flakes in it
extraOptions = ''
Expand Down
8 changes: 6 additions & 2 deletions overlays/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,12 @@
};

nixVersions = prev.nixVersions // {
latest-monitored = inputs.nix-monitored.packages.${final.system}.default.override {
nix = prev.nixVersions.latest;
stable-monitored = inputs.nix-monitored.packages.${final.system}.default.override {
nix = prev.nixVersions.stable;
nix-output-monitor = prev.nix-output-monitor;
};
unstable-monitored = inputs.nix-monitored.packages.${final.system}.default.override {
nix = prev.nixVersions.unstable;
nix-output-monitor = prev.nix-output-monitor;
};
};
Expand Down

0 comments on commit 4a12826

Please sign in to comment.