split out phoenix overlay

This commit is contained in:
andromeda
2026-01-25 15:44:32 +01:00
parent e1c510fc64
commit 2386fea0eb
5 changed files with 64 additions and 86 deletions

21
flake.lock generated
View File

@@ -737,26 +737,6 @@
"type": "github"
}
},
"phoenix": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1769035606,
"narHash": "sha256-I9pKhfhAz3JsGBLIqr9MNycTEQn0Bc3jzf0mKeWLlsE=",
"owner": "celenityy",
"repo": "Phoenix",
"rev": "07d9be8cbf938962f9847b0970274b885ff48792",
"type": "github"
},
"original": {
"owner": "celenityy",
"repo": "Phoenix",
"type": "github"
}
},
"root": {
"inputs": {
"agenix": "agenix",
@@ -770,7 +750,6 @@
"noshell": "noshell",
"nur": "nur",
"nvf": "nvf",
"phoenix": "phoenix",
"stylix": "stylix"
}
},

View File

@@ -38,10 +38,6 @@
url = "github:notashelf/nvf";
inputs.nixpkgs.follows = "nixpkgs";
};
phoenix = {
url = "github:celenityy/Phoenix";
inputs.nixpkgs.follows = "nixpkgs";
};
stylix = {
url = "github:nix-community/stylix";
inputs.nixpkgs.follows = "nixpkgs";
@@ -59,11 +55,9 @@
noshell,
nur,
nvf,
phoenix,
stylix,
...
}: let
phoenix' = (import ./modules/nixos/phoenix.nix) {inherit phoenix;};
nix-zulip' = (import "${nix-zulip}/nix/default.nix" {}).output;
machines = import ./machines.nix;
configuration = machine: modules:
@@ -81,7 +75,6 @@
impermanence.nixosModules.impermanence
nixos-mailserver.nixosModule
noshell.nixosModules.default
phoenix'.phoenixModule
nix-zulip'.nixosModules.zulip
{
nixpkgs.overlays = [

View File

@@ -30,6 +30,7 @@
# apps
./modules/nixos/steam.nix
./modules/nixos/phoenix.nix
# substitutors
./substitutors.nix

View File

@@ -1,19 +1,4 @@
{phoenix, ...}: rec {
phoenixOverlay = final: prev: {
phoenix = (final.callPackage (import "${phoenix}/nix/package.nix")
{
}).overrideAttrs {
patches = [
../../patches/0001-autoDisableScopes-unlocked.patch
];
};
withPhoenix = firefoxPackage:
firefoxPackage.override {
extraPoliciesFiles = ["${final.phoenix}/policies.json"];
extraPrefsFiles = ["${final.phoenix}/phoenix.cfg"];
};
};
phoenixModule = {
pkgs,
config,
lib,
@@ -48,7 +33,7 @@
programs.firefox.policies =
(builtins.fromJSON (builtins.readFile "${pkgs.phoenix}/policies.json")).policies;
nixpkgs.overlays = [
phoenixOverlay
(import ../../overlays/phoenix.nix)
(
final: prev:
builtins.listToAttrs (
@@ -57,5 +42,4 @@
)
];
};
};
}

21
overlays/phoenix.nix Normal file
View File

@@ -0,0 +1,21 @@
final: prev: let
phoenix-src = prev.fetchFromGitHub {
owner = "celenityy";
repo = "Phoenix";
rev = "07d9be8cbf938962f9847b0970274b885ff48792";
hash = "sha256-I9pKhfhAz3JsGBLIqr9MNycTEQn0Bc3jzf0mKeWLlsE=";
};
in {
phoenix = (final.callPackage (import "${phoenix-src}/nix/package.nix")
{
}).overrideAttrs {
patches = [
../patches/0001-autoDisableScopes-unlocked.patch
];
};
withPhoenix = firefoxPackage:
firefoxPackage.override {
extraPoliciesFiles = ["${final.phoenix}/policies.json"];
extraPrefsFiles = ["${final.phoenix}/phoenix.cfg"];
};
}