mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
templates/basic-overlay-flake: init template
This commit is contained in:
parent
6542a0f3f4
commit
7ac5991cc4
@ -347,6 +347,10 @@
|
|||||||
path = ./templates/basic-devshell;
|
path = ./templates/basic-devshell;
|
||||||
description = "Basic development shell template";
|
description = "Basic development shell template";
|
||||||
};
|
};
|
||||||
|
basic-overlay-flake = {
|
||||||
|
path = ./templates/basic-overlay-flake;
|
||||||
|
description = "Basic overlay as a flake";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# No amount of formatters will make this codebase nicer but it sure does
|
# No amount of formatters will make this codebase nicer but it sure does
|
||||||
|
17
templates/basic-overlay-flake/flake.nix
Normal file
17
templates/basic-overlay-flake/flake.nix
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
description = ''
|
||||||
|
Basic flake template for an overlay with flake and traditional channels.
|
||||||
|
'';
|
||||||
|
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs = inputs@{ self, nixpkgs, ... }:
|
||||||
|
let systems = inputs.flake-utils.lib.defaultSystems;
|
||||||
|
in inputs.flake-utils.lib.eachSystem systems (system: {
|
||||||
|
devShells.default =
|
||||||
|
import ./shell.nix { pkgs = import nixpkgs { inherit system; }; };
|
||||||
|
});
|
||||||
|
}
|
5
templates/basic-overlay-flake/modules/README.adoc
Normal file
5
templates/basic-overlay-flake/modules/README.adoc
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
= Modules
|
||||||
|
:toc:
|
||||||
|
|
||||||
|
This is where various modules will go.
|
||||||
|
Preferably, it should have a hierarchy that denotes where it belongs to (e.g., `./modules/nixos/MODULE.nix`, `./modules/home-manager/MODULE2.nix`).
|
4
templates/basic-overlay-flake/pkgs/default.nix
Normal file
4
templates/basic-overlay-flake/pkgs/default.nix
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{ pkgs ? import <nixpkgs> { } }:
|
||||||
|
|
||||||
|
# Import the packages in a centralized file to make it easier for integrating.
|
||||||
|
{ }
|
5
templates/basic-overlay-flake/shell.nix
Normal file
5
templates/basic-overlay-flake/shell.nix
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{ pkgs ? import <nixpkgs> { } }:
|
||||||
|
|
||||||
|
with pkgs;
|
||||||
|
|
||||||
|
mkShell { packages = [ ]; }
|
Loading…
Reference in New Issue
Block a user