Skip to content

Commit

Permalink
feat: move to unstable linux builder; move flake template to unstable
Browse files Browse the repository at this point in the history
  • Loading branch information
konradmalik committed Jun 8, 2024
1 parent 4bb2296 commit 4ec2ce2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
2 changes: 1 addition & 1 deletion hosts/common/global/docker/darwin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
virtualisation.docker = {
enable = false;
ephemeral = true;
package = pkgs.stable.darwin.linux-builder;
package = pkgs.darwin.linux-builder;
config = import ./linux.nix;
};
}
2 changes: 1 addition & 1 deletion hosts/common/global/nix/darwin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
linux-builder = {
enable = false;
ephemeral = true;
package = pkgs.stable.darwin.linux-builder;
package = pkgs.darwin.linux-builder;
};
};
services.nix-daemon.enable = true;
Expand Down
14 changes: 1 addition & 13 deletions templates/default/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,12 @@
description = "Development environment for this project";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
};

outputs =
{ ... }@inputs:
let
mkOverlay =
input: name:
(final: prev: {
"${name}" = import input {
system = final.system;
config = final.config;
};
});

forAllSystems =
function:
inputs.nixpkgs.lib.genAttrs
Expand All @@ -33,7 +23,6 @@
import inputs.nixpkgs {
inherit system;
config.allowUnfree = true;
overlays = [ (mkOverlay inputs.nixpkgs-unstable "unstable") ];
}
)
);
Expand All @@ -42,7 +31,6 @@
devShells = forAllSystems (pkgs: {
default = pkgs.mkShell {
name = "Shell for this project";

packages = [ ];
};
});
Expand Down

0 comments on commit 4ec2ce2

Please sign in to comment.