Add flake templates and defaultApp

defaultApp lets you use bin/hey via nix run.
This commit is contained in:
Henrik Lissner 2021-01-20 01:28:49 -05:00
parent a1ab0811bb
commit c92199848c
5 changed files with 31 additions and 4 deletions

View file

@ -64,10 +64,21 @@
devShell."${system}" =
import ./shell.nix { inherit pkgs; };
templates.hey = {
templates = {
full = {
path = ./.;
description = "A grossly incandescent nixos framework";
description = "A grossly incandescent nixos config";
};
minimal = {
path = ./templates/minimal;
description = "A grossly incandescent and minimal nixos config";
};
};
defaultTemplate = self.templates.minimal;
defaultApp."${system}" = {
type = "app";
program = ./bin/hey;
};
defaultTemplate = self.templates.hey;
};
}

View file

@ -0,0 +1,16 @@
{
description = "A grossly incandescent nixos config.";
inputs = {
dotfiles.url = "github:hlissner/dotfiles";
};
outputs = inputs @ { dotfiles, ... }: {
nixosConfigurations = dotfiles.lib.mapHosts ./hosts {
imports = [
# If this is a linode machine
# "${dotfiles}/hosts/linode.nix"
];
};
};
}

View file

View file