From dcb22ebac5df04a98e009f65d270c86b7b09bdeb Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Wed, 21 Jun 2023 20:49:28 +0100 Subject: [PATCH] Add home-manager config for Monarch to flake.nix --- flake.nix | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 7f484c94..af18d3eb 100644 --- a/flake.nix +++ b/flake.nix @@ -1,13 +1,41 @@ { - inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + description = "Evie's machine configurations"; + + inputs = { + # Specify the source of Home Manager and Nixpkgs. + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + home-manager = { + url = "github:nix-community/home-manager"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + }; outputs = { self, nixpkgs, + home-manager, }: { nixosConfigurations.N0245 = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; modules = [./configuration.nix]; }; + homeConfigurations."tux" = home-manager.lib.homeManagerConfiguration { + pkgs = nixpkgs.legacyPackages."aarch64-darwin"; + modules = [ + ./home.nix + ./home/personal.nix + ./home/gui/wezterm.nix + ({pkgs, ...}: { + home.packages = [pkgs.gcc]; + programs.zsh = { + sessionVariables.CC = "${pkgs.gcc}/bin/gcc"; + envExtra = '' + eval "$(/opt/homebrew/bin/brew shellenv)" + ''; + }; + services.syncthing.enable = true; + }) + ]; + }; }; }