Skip to content

The missing piece for effectful operations with Nix

License

Notifications You must be signed in to change notification settings

viperML/activation-manager

Repository files navigation

activation-manager

Usage

{
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
    activation-manager.url = "github:viperML/activation-manager";
  };

  outputs = {self, nixpkgs, activation-manager}: {
    packages."x86_64-linux".default = with nixpkgs.legacyPackages.x86_64-linux;
      buildEnv {
        name = "home";
        paths = [
          # regular packages
          pkgs.eza
          pkgs.neofetch

          (activation-manager.lib.home-bundle {
            inherit pkgs;
            modules = [{
              xdg.configPath."hosts".source = "/etc/hosts";
              xdg.configPath."someDir".source = "/tmp";
            }];
          })
        ];
      };
  };
}
$ nix profile install /path/to/flake && activate

About

The missing piece for effectful operations with Nix

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published