Install template

main
Sam Hatfield 2023-11-24 19:15:16 -06:00
parent d962f0419b
commit b88766233f
2 changed files with 27 additions and 0 deletions

View File

@ -15,6 +15,13 @@
system = "x86_64-linux";
overlay = nur.overlay;
in {
templates = {
install = {
path = ./install-template;
description = "A flake to bootstrap a new computer install";
};
default = self.templates.install;
};
nixosModules = {
sehqlr = { config, lib, pkgs, ... }:
let cfg = config.sehqlr;

View File

@ -0,0 +1,20 @@
{
inputs = {
nixpkgs.url = "nixpkgs/nixos-23.05";
sehqlr-config.url = "path:./config";
};
outputs = { self, nixpkgs, sehqlr-config, ... }@inputs:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in {
nixosConfigurations."nixos" = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
./configuration.nix
sehqlr-config.nixosModules.sehqlr
({ config, ... }: { config.sehqlr.graphical = true; })
];
};
};
}