chromium.nix
1 { 2 pkgs, 3 config, 4 lib, 5 inputs, 6 ... 7 }:let 8 cfg = config.programs.uchromium; 9 inherit(lib) mkIf mkEnableOption; 10 in { 11 options.programs.uchromium.enable = mkEnableOption "uchromium"; 12 13 config = mkIf cfg.enable { 14 inputs.chrome-pwa.url = "github:luis-hebendanz/nixos-chrome-pwa"; 15 16 osModules = [ 17 inputs.chrome-pwa.nixosModule 18 ({ config, pkgs, ... }: { 19 services.chrome-pwa.enable = true; 20 }) 21 ]; 22 23 hm = { 24 home.packages = with pkgs; [ 25 chromium 26 ]; 27 }; 28 }; 29 }