From 2f64183c6ce53fc0a903ee3cf43074751ebac529 Mon Sep 17 00:00:00 2001 From: logical_code Date: Sun, 6 Jul 2025 22:13:28 -0400 Subject: [PATCH] Add flake.nix --- flake.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 flake.nix diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..cbccbd1 --- /dev/null +++ b/flake.nix @@ -0,0 +1,25 @@ +{ + description = "My Shit Ass Nix Build"; + + outputs = inputs @ { + self, + nixpkgs, + ... + }: rec { + # The output for your laptop build + nixosConfigurations = { + laptop = nixpkgs.lib.nixosSystem { + specialArgs = {inherit self inputs;}; + modules = [ + ./hosts/laptop #individual config + ./modules/nixos #share configs + ]; + }; + }; + }; + + # Flake inputs, think of it as external repos + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + }; +} \ No newline at end of file