-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathflake.nix
35 lines (35 loc) · 1.09 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
flake-root.url = "github:srid/flake-root";
mission-control.url = "github:Platonic-Systems/mission-control";
};
outputs = inputs@{ self, nixpkgs, flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = nixpkgs.lib.systems.flakeExposed;
imports = [
inputs.flake-root.flakeModule
inputs.mission-control.flakeModule
];
perSystem = { pkgs, lib, config, ... }: {
mission-control.scripts = {
hello = {
description = "Say Hello";
exec = "echo Hello";
};
fmt = {
description = "Format the top-level Nix files";
exec = "${lib.getExe pkgs.nixpkgs-fmt} ./*.nix";
category = "Tools";
};
ponysay = {
exec = pkgs.ponysay;
};
};
devShells.default =
let shell = pkgs.mkShell { };
in config.mission-control.installToDevShell shell;
};
};
}