diff options
| author | Alejandro Soto <alejandro@34project.org> | 2025-01-26 15:38:38 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2025-01-26 15:42:00 -0600 |
| commit | 71226ec478b71daf6a0e7d151514083feb1ca18f (patch) | |
| tree | bc627785e7ad45a10b1ccc9d2c116d8412f576d4 /templates/system-flake/flake.nix | |
| parent | 38c2e6d4c7bb4d78cf4c2069a7a22dac7ed00352 (diff) | |
templates: add 'system-flake' template
Diffstat (limited to 'templates/system-flake/flake.nix')
| -rw-r--r-- | templates/system-flake/flake.nix | 34 |
1 files changed, 34 insertions, 0 deletions
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; + }; +} |
