summaryrefslogtreecommitdiff
path: root/modules/nixos/phoenix.nix
diff options
context:
space:
mode:
authorandromeda <andromeda@lenovo>2026-02-21 15:59:08 +0100
committerandromeda <andromeda@lenovo>2026-02-21 15:59:08 +0100
commitde1879b9a0b9a412068785d81cc17bbf947d0eef (patch)
treef3db0eaaa675b872c52f5587a3a84838481a54ba /modules/nixos/phoenix.nix
parent0647d9a8e0d54005b58b286f5caf8e944de3f7f8 (diff)
idk prolly smt ig
Diffstat (limited to 'modules/nixos/phoenix.nix')
-rw-r--r--modules/nixos/phoenix.nix45
1 files changed, 0 insertions, 45 deletions
diff --git a/modules/nixos/phoenix.nix b/modules/nixos/phoenix.nix
deleted file mode 100644
index a656f7f..0000000
--- a/modules/nixos/phoenix.nix
+++ /dev/null
@@ -1,45 +0,0 @@
-{
- pkgs,
- config,
- lib,
- ...
-}: {
- options.programs.firefox.phoenix = {
- enable =
- lib.mkEnableOption "Enable privacy & security hardening of Firefox using the Phoenix configs"
- // {
- default = true;
- };
- firefoxPackages = lib.mkOption {
- type = lib.types.listOf lib.types.str;
- default = ["firefox"];
- description = "The name of Firefox packages of current pkgs to patch with phoenix config and policy.";
- };
- };
- config = let
- cfg = config.programs.firefox.phoenix;
- in
- lib.mkIf cfg.enable {
- assertions = [
- {
- assertion = !pkgs.stdenv.isDarwin;
- message = "Phoenix module has not been ported to nix-darwin yet. Contributions welcomed.";
- }
- ];
- environment.etc."firefox/defaults/pref/phoenix-desktop.js".source = "${pkgs.phoenix}/pref/phoenix-desktop.js";
- environment.etc."firefox/phoenix/userjs".source = "${pkgs.phoenix}/userjs";
- environment.etc."firefox/phoenix/configs".source = "${pkgs.phoenix}/configs";
- environment.etc."firefox/phoenix/assets".source = "${pkgs.phoenix}/assets";
- programs.firefox.policies =
- (builtins.fromJSON (builtins.readFile "${pkgs.phoenix}/policies.json")).policies;
- nixpkgs.overlays = [
- (import ../../overlays/phoenix.nix)
- (
- final: prev:
- builtins.listToAttrs (
- map (p: lib.nameValuePair p (final.withPhoenix prev.${p})) cfg.firefoxPackages
- )
- )
- ];
- };
-}