about summary refs log tree commit diff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..4237c2b
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,24 @@
+{
+  inputs = {
+    nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
+    nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
+  };
+
+  outputs = inputs @ { self, nixpkgs, nixpkgs-unstable }:
+  let
+    system = "x86_64-linux";
+  in {
+    nixosConfigurations = {
+      lapin = nixpkgs.lib.nixosSystem {
+        inherit system;
+
+        specialArgs = {
+          unstable = import nixpkgs-unstable { inherit system; };
+          inherit inputs;
+        };
+
+        modules = [ ./configuration.nix ];
+      };
+    };
+  };
+}