diff options
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/flake.nix b/flake.nix index 93a558c..204de9a 100644 --- a/flake.nix +++ b/flake.nix @@ -1,31 +1,34 @@ { description = "Home Manager configuration of venomade"; - 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"; }; + nix-darwin-emacs = { + url = "github:nix-giant/nix-darwin-emacs/065050b9e06a30c01b41539b75464fff972fecd6"; + }; }; - outputs = - { nixpkgs, home-manager, ... }: + { nixpkgs, home-manager, nix-darwin-emacs, ... }: let - system = "aarch64-darwin"; - pkgs = nixpkgs.legacyPackages.${system}; + mkHome = system: + let + pkgs = nixpkgs.legacyPackages.${system}; + in + home-manager.lib.homeManagerConfiguration { + inherit pkgs; + modules = [ ./home.nix ]; + extraSpecialArgs = { + inherit system nix-darwin-emacs; + }; + }; in { - homeConfigurations."venomade" = home-manager.lib.homeManagerConfiguration { - inherit pkgs; - - # Specify your home configuration modules here, for example, - # the path to your home.nix. - modules = [ ./home.nix ]; - - # Optionally use extraSpecialArgs - # to pass through arguments to home.nix + homeConfigurations = { + "venomade" = mkHome "aarch64-linux"; + "venomade-darwin" = mkHome "aarch64-darwin"; }; }; } |
