From 71226ec478b71daf6a0e7d151514083feb1ca18f Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Sun, 26 Jan 2025 15:38:38 -0600 Subject: templates: add 'system-flake' template --- templates/system-flake/flake.nix | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 templates/system-flake/flake.nix (limited to 'templates/system-flake/flake.nix') diff --git a/templates/system-flake/flake.nix b/templates/system-flake/flake.nix new file mode 100644 index 0000000..7b4ec56 --- /dev/null +++ b/templates/system-flake/flake.nix @@ -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; + }; +} -- cgit v1.2.3