From b7e84fa6048007cda7e6c8226e28bc2db90f792a Mon Sep 17 00:00:00 2001
From: Jacob Janzen <jacob.a.s.janzen@gmail.com>
Date: Sat, 28 Sep 2024 00:01:09 -0500
Subject: add file extensions to files

---
 nixos/.flake/flake.nix.org | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 nixos/.flake/flake.nix.org

(limited to 'nixos/.flake/flake.nix.org')

diff --git a/nixos/.flake/flake.nix.org b/nixos/.flake/flake.nix.org
new file mode 100644
index 0000000..1e3c71b
--- /dev/null
+++ b/nixos/.flake/flake.nix.org
@@ -0,0 +1,34 @@
+#+title: Flake Root
+
+I use the unstable branch of =nixpkgs=. This file defines the outputs for my configuration (system and home).
+#+begin_src nix :tangle ~/.flake/flake.nix :mkdirp yes
+  {
+    description = "My NixOS Configuration";
+
+    inputs = {
+      nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
+    };
+
+    outputs = {
+      self,
+      nixpkgs,
+      home-manager,
+      ...
+    }@inputs: {
+      nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
+        system = "x86_64-linux";
+        specialArgs = { inherit inputs; };
+        modules = [
+          ./system/core.nix
+          home-manager.nixosModules.home-manager
+  	        {
+  	          home-manager.backupFileExtension = "bak";
+  	          home-manager.useGlobalPkgs = true;
+  	          home-manager.useUserPackages = true;
+  	          home-manager.users.jane = import ./home/core.nix;
+  	        }
+        ];
+      };
+    };
+  }
+#+end_src
-- 
cgit v1.2.3