templates: add 'system-flake' template
This commit is contained in:
parent
4b8609385a
commit
3a3d73d5b6
15 changed files with 212 additions and 0 deletions
34
templates/system-flake/flake.nix
Normal file
34
templates/system-flake/flake.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
|
||||
unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager/release-24.11";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
trivium = {
|
||||
url = "git+https://git.posixlycorrect.com/deepState/trivionomicon.git";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = flakes @ {
|
||||
self,
|
||||
nixpkgs,
|
||||
unstable,
|
||||
home-manager,
|
||||
trivium,
|
||||
}:
|
||||
trivium.lib.mkSystemFlake {
|
||||
system = "x86_64-linux";
|
||||
inherit flakes;
|
||||
|
||||
localOverlayPath = ./pkgs;
|
||||
nixpkgsConfigPath = ./pkgs/config;
|
||||
|
||||
hmSourcePath = ./home;
|
||||
nixosSourcePath = ./sys;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue