Last active
September 10, 2024 17:32
-
-
Save heywoodlh/c222515efb2727f685b7b0129660b3bf to your computer and use it in GitHub Desktop.
Zen Browser Home-Manager example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
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