From 84ecfa7ffbcca7df997c9e027e8e11be5af84fba Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Sun, 1 Jan 2023 15:49:20 -0500 Subject: [PATCH] nix --- flake.nix | 23 +++++++++++++++++++++++ home.nix | 3 +++ 2 files changed, 26 insertions(+) create mode 100644 flake.nix create mode 100644 home.nix diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..4e506fc --- /dev/null +++ b/flake.nix @@ -0,0 +1,23 @@ +{ + description = "My Home Manager flake"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; + home-manager.url = "github:nix-community/home-manager"; + home-manager.inputs.nixpkgs.follows = "nixpkgs"; + }; + + outputs = inputs: { + defaultPackage.x86_64-linux = home-manager.defaultPackage.x86_64-linux; + defaultPackage.x86_64-darwin = home-manager.defaultPackage.x86_64-darwin; + + homeConfigurations = { + "tyrel" = inputs.home-manager.lib.homeManagerConfiguration { + system = "x86_64-darwin"; + homeDirectory = "/Users/tyrel"; + username = "tyrel"; + configuration.imports = [ ./home.nix ]; + }; + }; + }; +} diff --git a/home.nix b/home.nix new file mode 100644 index 0000000..4be0d07 --- /dev/null +++ b/home.nix @@ -0,0 +1,3 @@ +{ ... }: { + programs.home-manager.enable = true; +}