Skip to content

Commit

Permalink
feat(templates): updated template structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Wittano committed Jul 28, 2024
1 parent a2f37df commit c73b495
Show file tree
Hide file tree
Showing 20 changed files with 21 additions and 93 deletions.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions templates/avalonia/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
pkgs = import nixpkgs { inherit system; };
in
{
package.default = pkgs.callPackage ./nix/pkg.nix { };
devShells.default = pkgs.callPackage ./nix/shell.nix { };
}) // { nixosModules.default = ./nix/module.nix; };
package.default = pkgs.callPackage ./default.nix { };
devShells.default = pkgs.callPackage ./shell.nix { };
});
}
15 changes: 0 additions & 15 deletions templates/avalonia/nix/module.nix

This file was deleted.

File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions templates/cmake-clang++/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
pkgs = import nixpkgs { inherit system; };
in
{
package.default = pkgs.callPackage ./nix/pkg.nix { };
devShells.default = pkgs.callPackage ./nix/shell.nix { };
}) // { nixosModules.default = ./nix/module.nix; };
package.default = pkgs.callPackage ./default.nix { };
devShells.default = pkgs.callPackage ./shell.nix { };
});
}
15 changes: 0 additions & 15 deletions templates/cmake-clang++/nix/module.nix

This file was deleted.

File renamed without changes.
5 changes: 2 additions & 3 deletions templates/compose-desktop/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
pkgs = import nixpkgs { inherit system; };
in
{
package.default = pkgs.callPackage ./nix/pkg.nix { };
devShells.default = pkgs.callPackage ./nix/shell.nix { };
}) // { nixosModules.default = ./nix/module.nix; };
devShells.default = pkgs.callPackage ./shell.nix { };
});
}

15 changes: 0 additions & 15 deletions templates/compose-desktop/nix/module.nix

This file was deleted.

File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions templates/flake/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
pkgs = import nixpkgs { inherit system; };
in
{
package.default = pkgs.callPackage ./nix/pkg.nix { };
devShells.default = pkgs.callPackage ./nix/shell.nix { };
}) // { nixosModules.default = ./nix/module.nix; };
package.default = pkgs.callPackage ./default.nix { };
devShells.default = pkgs.callPackage ./shell.nix { };
});
}
15 changes: 0 additions & 15 deletions templates/flake/nix/module.nix

This file was deleted.

2 changes: 0 additions & 2 deletions templates/flake/nix/shell.nix → templates/flake/shell.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{ mkShell
, nixd
, nixpkgs-fmt
, lib
}:
with lib;
mkShell {
nativeBuildInputs = [
# Nix
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions templates/go/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
pkgs = import nixpkgs { inherit system; };
in
{
package.default = pkgs.callPackage ./nix/pkg.nix { };
devShells.default = pkgs.callPackage ./nix/shell.nix { };
}) // { nixosModules.default = ./nix/module.nix; };
package.default = pkgs.callPackage ./default.nix { };
devShells.default = pkgs.callPackage ./shell.nix { };
});
}
15 changes: 0 additions & 15 deletions templates/go/nix/module.nix

This file was deleted.

8 changes: 7 additions & 1 deletion templates/go/nix/shell.nix → templates/go/shell.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{ mkShell, go, gotools, act, nixd, nixpkgs-fmt }: mkShell {
{ mkShell
, go
, gotools
, act
, nixd
, nixpkgs-fmt
}: mkShell {
hardeningDisable = [ "all" ];

GOROOT = "${go}/share/go";
Expand Down

0 comments on commit c73b495

Please sign in to comment.