forked from 1Password/shell-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
24 lines (23 loc) · 643 Bytes
/
flake.nix
File metadata and controls
24 lines (23 loc) · 643 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
systems.url = "github:nix-systems/default";
};
outputs = { nixpkgs, systems, ... }:
let
forAllSystems = function:
nixpkgs.lib.genAttrs (import systems) (
system: function nixpkgs.legacyPackages.${system}
);
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShell {
name = "Shell with Go toolchain";
packages = with pkgs; [ go gopls ];
};
});
nixosModules.default = import ./nix/nixos.nix;
hmModules.default = import ./nix/home-manager.nix;
};
}