flakes: Migrate the config and miku to flakes
This commit is contained in:
@@ -1,9 +1,15 @@
|
||||
{ config, pkgs, ... }:
|
||||
{ inputs, config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
config = {
|
||||
let
|
||||
cfg = config.ptw.programs.firefox;
|
||||
in {
|
||||
options.ptw.programs.firefox = {
|
||||
enable = lib.mkEnableOption "Configure Firefox using HomeManager";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment = {
|
||||
systemPackages = with pkgs; [ unstable.firefox-wayland tor-browser-bundle-bin ];
|
||||
systemPackages = with pkgs; [ firefox-wayland tor-browser-bundle-bin ];
|
||||
|
||||
# Deploy a Firefox policy to set the search engine and do some other things
|
||||
etc."firefox/policies/policies.json".source = ./policies.json;
|
||||
@@ -16,7 +22,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
home-manager.users."${config.system.singleUser}".programs.firefox = {
|
||||
home-manager.users."${config.ptw.system.singleUser}".programs.firefox = {
|
||||
enable = true;
|
||||
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||
https-everywhere
|
||||
|
||||
Reference in New Issue
Block a user