summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsils <sils@sils.li>2023-01-19 22:17:23 +0100
committersils <sils@sils.li>2023-01-19 22:17:23 +0100
commit01cc32c5d9dd7bf548eda1fe626e59e79eda72ad (patch)
tree83ae0da53ea07867e6d25b08c47a35de79db0cc2
parentFormat: Format Code (diff)
downloadnix-config-01cc32c5d9dd7bf548eda1fe626e59e79eda72ad.zip
Structure: Flakeify
Flakes enable a lot of nice options.
-rw-r--r--flake.lock25
-rw-r--r--flake.nix11
2 files changed, 36 insertions, 0 deletions
diff --git a/flake.lock b/flake.lock
new file mode 100644
index 0000000..f519a1f
--- /dev/null
+++ b/flake.lock
@@ -0,0 +1,25 @@
+{
+ "nodes": {
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1673947312,
+ "narHash": "sha256-xx/2nRwRy3bXrtry6TtydKpJpqHahjuDB5sFkQ/XNDE=",
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "2d38b664b4400335086a713a0036aafaa002c003",
+ "type": "github"
+ },
+ "original": {
+ "id": "nixpkgs",
+ "type": "indirect"
+ }
+ },
+ "root": {
+ "inputs": {
+ "nixpkgs": "nixpkgs"
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+}
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..16f49fb
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,11 @@
+{
+ outputs = {
+ self,
+ nixpkgs,
+ }: {
+ nixosConfigurations.thinklappi = nixpkgs.lib.nixosSystem {
+ system = "x86_64-linux";
+ modules = [./configuration.nix];
+ };
+ };
+}