summaryrefslogtreecommitdiff
path: root/templates/nixos
diff options
context:
space:
mode:
Diffstat (limited to 'templates/nixos')
-rw-r--r--templates/nixos/flake.nix19
1 files changed, 19 insertions, 0 deletions
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;
+ };
+ };
+}