From 00fc33cad8d99f3b3105cd10d351cf7511fda141 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Thu, 4 May 2023 13:09:45 -0400 Subject: [PATCH] nix: Add flake.nix This may or may not work; I haven't tested it yet. --- flake.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 flake.nix diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..d339eb0 --- /dev/null +++ b/flake.nix @@ -0,0 +1,18 @@ +{ + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/unstable"; + home-manager.url = "github:nix-community/home-manager/release-22.11"; + home-manager.inputs.nixpkgs.follows = "nixpkgs"; + }; + + outputs = inputs: { + nixosConfigurations.nixos = inputs.nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + modules = [ + ./configuration.nix + inputs.home-manager.nixosModules.home-manager + { home-manager.useGlobalPkgs = true; } + ]; + }; + }; +}