26 lines
650 B
Nix
26 lines
650 B
Nix
{pkgs, ... }:
|
|
|
|
{
|
|
user.packages = with pkgs; [
|
|
firefox-bin
|
|
(makeDesktopItem {
|
|
name = "firefox-private";
|
|
desktopName = "Firefox (Private)";
|
|
genericName = "Open a private Firefox window";
|
|
icon = "firefox";
|
|
exec = "${firefox-bin}/bin/firefox --private-window";
|
|
categories = "Network";
|
|
})
|
|
];
|
|
home.file = let cfgPath = ".mozilla/firefox"; in {
|
|
"${cfgPath}/profiles.ini".text = ''
|
|
[Profile0]
|
|
Name=default
|
|
IsRelative=1
|
|
Path=${cfg.profileName}.default
|
|
Default=1
|
|
[General]
|
|
StartWithLastProfile=1
|
|
Version=2
|
|
'';
|