Skip to content

Instantly share code, notes, and snippets.

@heywoodlh
Last active September 10, 2024 17:32
Show Gist options
  • Save heywoodlh/c222515efb2727f685b7b0129660b3bf to your computer and use it in GitHub Desktop.
Save heywoodlh/c222515efb2727f685b7b0129660b3bf to your computer and use it in GitHub Desktop.
Zen Browser Home-Manager example
{
description = "my home-manager flake";
inputs = {
home-manager = {
url = "github:nix-community/home-manager/release-24.05";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-utils.url = "github:numtide/flake-utils";
zen-browser.url = "github:heywoodlh/flakes?dir=zen-browser";
};
outputs = inputs@{ self, nixpkgs, home-manager, flake-utils, zen-browser, ... }:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
in {
packages.homeConfigurations = {
heywoodlh = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
{
home = {
username = "heywoodlh";
homeDirectory = "/home/heywoodlh";
};
home.stateVersion = "24.05";
home.packages = [
zen-browser.packages.${system}.default
];
}
];
extraSpecialArgs = inputs;
};
};
}
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment