diff options
| -rw-r--r-- | templates/default.nix | 1 | ||||
| -rw-r--r-- | templates/nixos/flake.nix | 19 |
2 files changed, 20 insertions, 0 deletions
diff --git a/templates/default.nix b/templates/default.nix index 67d62a0..30c5a5d 100644 --- a/templates/default.nix +++ b/templates/default.nix @@ -9,6 +9,7 @@ in { basic = mkTemplate "basic" "minimal boilerplate for my flakes"; full = mkTemplate "full" "big template for complex flakes (using flake-parts)"; + nixos = mkTemplate "nixos" "minimal boilerplate for flake-based nixos configuration"; }; }; } diff --git a/templates/nixos/flake.nix b/templates/nixos/flake.nix new file mode 100644 index 0000000..2b464cd --- /dev/null +++ b/templates/nixos/flake.nix @@ -0,0 +1,19 @@ +{ + description = "my cool flake"; + + inputs = { + nixpkgs.url = "nixpkgs/nixos-unstable"; + home-manager = { + url = "github:nix-community/home-manager"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + }; + + outputs = {nixpkgs, ...} @ inputs: { + nixosConfigurations."myHostname" = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + modules = [./configuration.nix]; + specialArgs = inputs; + }; + }; +} |
