Add policies
This commit is contained in:
parent
0c0d74e474
commit
7691359d01
1 changed files with 260 additions and 0 deletions
|
|
@ -3,6 +3,266 @@
|
|||
programs.firefox = {
|
||||
enable = nixosConfig.jalr.gui.enable;
|
||||
package = pkgs.firefox-esr;
|
||||
policies = {
|
||||
AllowedDomainsForApps = "";
|
||||
CaptivePortal = false;
|
||||
DNSOverHTTPS.Enabled = false;
|
||||
DisableAppUpdate = true;
|
||||
DisableFeedbackCommands = true;
|
||||
DisableFirefoxAccounts = true;
|
||||
DisableFirefoxScreenshots = true;
|
||||
DisableFirefoxStudies = true;
|
||||
DisablePocket = true;
|
||||
DisableTelemetry = true;
|
||||
DisplayBookmarksToolbar = "newtab";
|
||||
DisplayMenuBar = "never";
|
||||
EncryptedMediaExtensions = { Enabled = false; Locked = true; };
|
||||
NoDefaultBookmarks = true;
|
||||
OfferToSaveLogins = false;
|
||||
StartDownloadsInTempDirectory = true;
|
||||
UserMessaging = {
|
||||
WhatsNew = false;
|
||||
ExtensionRecommendations = false;
|
||||
FeatureRecommendations = false;
|
||||
UrlbarInterventions = false;
|
||||
SkipOnboarding = true;
|
||||
MoreFromMozilla = false;
|
||||
Locked = false;
|
||||
};
|
||||
Permissions = {
|
||||
Camera = {
|
||||
/*
|
||||
Allow = ["https://example.org" "https://example.org:1234"];
|
||||
Block = ["https://example.edu"];
|
||||
BlockNewRequests = true | false;
|
||||
Locked = true | false;
|
||||
*/
|
||||
};
|
||||
Microphone = { };
|
||||
Location = { };
|
||||
Notifications = { };
|
||||
Autoplay = { };
|
||||
};
|
||||
PopupBlocking = {
|
||||
/* Allow = ["http://example.org/" "http://example.edu/"]; */
|
||||
Default = false;
|
||||
Locked = false;
|
||||
};
|
||||
Bookmarks = (
|
||||
builtins.map
|
||||
(b: b // {
|
||||
Folder = "Nix";
|
||||
Placement = "toolbar";
|
||||
}) [
|
||||
{
|
||||
Title = "NixOS Manual";
|
||||
URL = "https://nixos.org/manual/nixos/stable/";
|
||||
}
|
||||
{
|
||||
Title = "Nix manual";
|
||||
URL = "https://nix.dev/manual/nix/2.18/stable";
|
||||
}
|
||||
{
|
||||
Title = "Nixpkgs manual";
|
||||
URL = "https://nixos.org/manual/nixpkgs/stable/";
|
||||
}
|
||||
{
|
||||
Title = "Noogle";
|
||||
URL = "https://noogle.dev/";
|
||||
}
|
||||
{
|
||||
Title = "Home Manager Configuration Options";
|
||||
URL = "https://nix-community.github.io/home-manager/options.xhtml";
|
||||
}
|
||||
{
|
||||
Title = "Home Manager Option Search";
|
||||
URL = "https://mipmip.github.io/home-manager-option-search/";
|
||||
}
|
||||
{
|
||||
Title = "NixOS Status";
|
||||
URL = "https://status.nixos.org/";
|
||||
}
|
||||
{
|
||||
Title = "krops";
|
||||
URL = "https://cgit.krebsco.de/krops/about/";
|
||||
}
|
||||
{
|
||||
Title = "Awesome Nix";
|
||||
URL = "https://github.com/nix-community/awesome-nix";
|
||||
}
|
||||
]
|
||||
) ++ (
|
||||
builtins.map
|
||||
(b: b // {
|
||||
Folder = "Digitaler Dienst";
|
||||
Placement = "toolbar";
|
||||
}) [
|
||||
{
|
||||
Title = "GitLab";
|
||||
URL = "https://gitlab.digitaler-dienst.net/";
|
||||
}
|
||||
{
|
||||
Title = "Moco";
|
||||
URL = "https://digitaler-dienst.mocoapp.com/activities";
|
||||
}
|
||||
{
|
||||
Title = "Leantime";
|
||||
URL = "https://todo.digitaler-dienst.gmbh/";
|
||||
}
|
||||
{
|
||||
Title = "Nextcloud";
|
||||
URL = "https://nx52865.your-storageshare.de/";
|
||||
}
|
||||
{
|
||||
Title = "FreeScout";
|
||||
URL = "https://tickets.digitaler-dienst.gmbh/";
|
||||
}
|
||||
{
|
||||
Title = "Personio";
|
||||
URL = "https://laemmermann.personio.de/";
|
||||
}
|
||||
]
|
||||
) ++ [
|
||||
{
|
||||
Title = "Fefes Blog";
|
||||
URL = "https://blog.fefe.de";
|
||||
Placement = "toolbar";
|
||||
#Placement = "menu";
|
||||
#Favicon = "https://example.com/favicon.ico";
|
||||
}
|
||||
];
|
||||
/*
|
||||
ManagedBookmarks = [
|
||||
{
|
||||
toplevel_name = "My managed bookmarks folder";
|
||||
}
|
||||
{
|
||||
url = "example.com";
|
||||
name = "Example";
|
||||
}
|
||||
{
|
||||
name = "Mozilla links";
|
||||
children = [
|
||||
{
|
||||
url = "https://mozilla.org";
|
||||
name = "Mozilla.org";
|
||||
}
|
||||
{
|
||||
url = "https://support.mozilla.org/";
|
||||
name = "SUMO";
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
*/
|
||||
SearchEngines.Default = "DuckDuckGo";
|
||||
SearchEngines.Remove = [
|
||||
"Google"
|
||||
"Wikipedia (en)"
|
||||
];
|
||||
SearchEngines.Add = [
|
||||
{
|
||||
Name = "Startpage";
|
||||
URLTemplate = "https://www.startpage.com/sp/search";
|
||||
Method = "POST";
|
||||
PostData = "qadf=none&query={searchTerms}";
|
||||
IconURL = "https://www.startpage.com/sp/cdn/favicons/mobile/android-icon-192x192.png";
|
||||
Alias = "sp";
|
||||
}
|
||||
{
|
||||
Name = "DuckDuckGo";
|
||||
URLTemplate = "https://duckduckgo.com/?q={searchTerms}";
|
||||
Method = "GET";
|
||||
IconURL = "https://duckduckgo.com/favicon.ico";
|
||||
Alias = "ddg";
|
||||
}
|
||||
|
||||
# Wikipedia
|
||||
{
|
||||
Name = "Wikipedia en";
|
||||
URLTemplate = "https://en.wikipedia.org/wiki/Special:Search?search={searchTerms}";
|
||||
Method = "GET";
|
||||
IconURL = "https://en.wikipedia.org/static/images/icons/wikipedia.png";
|
||||
Alias = "wen";
|
||||
}
|
||||
{
|
||||
Name = "Wikipedia de";
|
||||
URLTemplate = "https://de.wikipedia.org/w/index.php?search={searchTerms}";
|
||||
Method = "GET";
|
||||
IconURL = "https://www.wikipedia.de/img/wikipedia.png";
|
||||
Alias = "wde";
|
||||
}
|
||||
{
|
||||
Name = "Nix Packages";
|
||||
URLTemplate = "https://search.nixos.org/packages?query={searchTerms}";
|
||||
Method = "GET";
|
||||
IconURL = "https://nixos.org/favicon.png";
|
||||
Alias = "pkg";
|
||||
}
|
||||
{
|
||||
Name = "NixOS Options";
|
||||
URLTemplate = "https://search.nixos.org/options?query={searchTerms}";
|
||||
Method = "GET";
|
||||
IconURL = "https://nixos.org/favicon.png";
|
||||
Alias = "opt";
|
||||
}
|
||||
{
|
||||
Name = "Docker images";
|
||||
URLTemplate = "https://hub.docker.com/search/?q={searchTerms}";
|
||||
Method = "GET";
|
||||
IconURL = "https://hub.docker.com/favicon.ico";
|
||||
Alias = "docker";
|
||||
}
|
||||
{
|
||||
Name = "GitHub";
|
||||
URLTemplate = "https://github.com/search?q={searchTerms}";
|
||||
Method = "GET";
|
||||
IconURL = "https://github.githubassets.com/favicons/favicon.svg";
|
||||
Alias = "gh";
|
||||
}
|
||||
|
||||
# Shopping
|
||||
{
|
||||
Name = "Amazon de";
|
||||
URLTemplate = "https://www.amazon.de/s?k={searchTerms}";
|
||||
Method = "GET";
|
||||
IconURL = "https://www.amazon.de/favicon.ico";
|
||||
Alias = "amde";
|
||||
}
|
||||
{
|
||||
Name = "Ebay de";
|
||||
URLTemplate = "https://www.ebay.de/sch/i.html?_nkw={searchTerms}";
|
||||
Method = "GET";
|
||||
IconURL = "https://pages.ebay.com/favicon.ico";
|
||||
Alias = "ebde";
|
||||
}
|
||||
|
||||
# Dictionary
|
||||
{
|
||||
Name = "dict.cc";
|
||||
URLTemplate = "https://www.dict.cc/?s={searchTerms}";
|
||||
Method = "GET";
|
||||
IconURL = "https://www4.dict.cc/img/favicons/favicon4.png";
|
||||
Alias = "dcc";
|
||||
}
|
||||
{
|
||||
Name = "Duden";
|
||||
URLTemplate = "https://www.duden.de/suchen/dudenonline/{searchTerms}";
|
||||
Method = "GET";
|
||||
IconURL = "https://www.duden.de/sites/default/res/apple-touch-icon/180x180.png";
|
||||
Alias = "duden";
|
||||
}
|
||||
|
||||
# Map
|
||||
{
|
||||
Name = "OpenStreetMap";
|
||||
URLTemplate = "https://www.openstreetmap.org/search?query={searchTerms}";
|
||||
Method = "GET";
|
||||
IconURL = "https://www.openstreetmap.org/assets/favicon-194x194-79d3fb0152c735866e64b1d7535d504483cd13c2fad0131a6142bd9629d30de2.png";
|
||||
Alias = "osm";
|
||||
}
|
||||
];
|
||||
};
|
||||
profiles.default = {
|
||||
id = 0;
|
||||
isDefault = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue