Files
zen-browser-flake/flake.nix
isabel dd212be919 refactor: package & config cleanup (#88)
* refactor(package): use package fetchers

builtin fetchers are blocking, therefore also slow. for packaging we
should use the package fetchers

* refactor: build the desktop file as a part of the package

* refactor(default.nix): remove redundant args

* refactor(flake.nix): remove duplicated code & rec

* fix(hm-module)!: typo in mkFireFoxmodule

* fix(hm-module): work with nixpkgs config `allowAliases = false;`

* fix: partial revert of 805c8f56e8

the `lib.mkDefault` was being ignored and the policies would never be
set. perhaps a better thing to do here would be to remove them
completly. otherwise this is the next best thing

* refactor(package): use `hash` over `sha256`

Co-authored-by: Seth Flynn <getchoo@tuta.io>
2025-08-17 13:53:45 -05:00

47 lines
1.0 KiB
Nix

{
description = "Zen Browser";
inputs.nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
inputs.home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
outputs = {
self,
nixpkgs,
home-manager,
}: let
supportedSystems = [
"x86_64-linux"
"aarch64-linux"
"aarch64-darwin"
];
forAllSystems = f:
nixpkgs.lib.genAttrs supportedSystems (
system: f nixpkgs.legacyPackages.${system}
);
in {
packages = forAllSystems (pkgs: import ./default.nix {inherit pkgs;});
formatter = forAllSystems (pkgs: pkgs.alejandra);
homeModules = {
beta = import ./hm-module.nix {
inherit self home-manager;
name = "beta";
};
twilight = import ./hm-module.nix {
inherit self home-manager;
name = "twilight";
};
twilight-official = import ./hm-module.nix {
inherit self home-manager;
name = "twilight-official";
};
default = self.homeModules.beta;
};
};
}