summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2024-01-31 22:02:28 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2024-01-31 22:02:28 +0530
commit01bb0877c285383fd2857920048bd2576f4d31e9 (patch)
treeb6f26596f1051baf5b791450d6158a69363f6c76 /flake.nix
parent578dd91bd1af79b256166ecf797344611790e267 (diff)
restructure
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..1ea7430
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,28 @@
+{
+ description = "Nix Configuration";
+
+ inputs = {
+ # Nixpkgs
+ nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
+
+ # Home manager
+ home-manager = {
+ url = "github:nix-community/home-manager";
+ inputs.nixpkgs.follows = "nixpkgs";
+ };
+ };
+
+ outputs = { self, nixpkgs, ... }@inputs: {
+ # nixos-rebuild --flake .#machine
+ nixosConfigurations = {
+ z = nixpkgs.lib.nixosSystem {
+ system = "x86_64-linux";
+ specialArgs = { inherit inputs; };
+ modules = [
+ ./machines/z/configuration.nix
+ inputs.home-manager.nixosModules.default
+ ];
+ };
+ };
+ };
+}