kaas
This commit is contained in:
parent
9aa634bd71
commit
3528e22c67
54 changed files with 380 additions and 1243 deletions
81
modules/home/application/chrome/default.nix
Normal file
81
modules/home/application/chrome/default.nix
Normal file
|
@ -0,0 +1,81 @@
|
|||
{ inputs, config, lib, pkgs, namespace, ... }:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
|
||||
cfg = config.${namespace}.application.chrome;
|
||||
in
|
||||
{
|
||||
options.${namespace}.application.chrome = {
|
||||
enable = mkEnableOption "enable chrome";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = with pkgs; [
|
||||
chromium
|
||||
# (pkgs.ungoogled-chromium.override {
|
||||
# commandLineArgs = [
|
||||
# "--enable-features=AcceleratedVideoEncoder"
|
||||
# "--ignore-gpu-blocklist"
|
||||
# "--enable-zero-copy"
|
||||
# "--ozone-platform-hint=auto"
|
||||
# "--password-store=basic"
|
||||
# ];
|
||||
# })
|
||||
];
|
||||
|
||||
programs.chromium = {
|
||||
enable = true;
|
||||
# enablePlasmaBrowserIntegration = true;
|
||||
extensions = let
|
||||
# create_extension_for = browserVersion: { id, sha256, version }: {
|
||||
# inherit id;
|
||||
# crxPath = fetchurl {
|
||||
# url = "https://clients2.google.com/service/update2/crx?response=redirect&acceptformat=crx2,crx3&prodversion=${browserVersion}&x=id%3D${id}%26installsource%3Dondemand%26uc";
|
||||
# name = "${id}.crx";
|
||||
# inherit sha256;
|
||||
# };
|
||||
# inherit version;
|
||||
# };
|
||||
# create_extension = create_extension_for (lib.versions.major pkgs.ungoogled-chromium.version);
|
||||
in [
|
||||
"cjpalhdlnbpafiamejdnhcphjbkeiagm" # UBlock origin
|
||||
"mnjggcdmjocbbbhaepdhchncahnbgone" # Sponsor block
|
||||
"eimadpbcbfnmbkopoojfekhnkhdbieeh" # Dark reader
|
||||
"nngceckbapebfimnlniiiahkandclblb" # Bitwarden
|
||||
# (create_extension {
|
||||
# id = "cjpalhdlnbpafiamejdnhcphjbkeiagm"; # UBlock origin
|
||||
# sha256 = "sha256:1lnk0k8zy0w33cxpv93q1am0d7ds2na64zshvbwdnbjq8x4sw5p6";
|
||||
# version = "1.63.2";
|
||||
# })
|
||||
# (create_extension {
|
||||
# id = "mnjggcdmjocbbbhaepdhchncahnbgone"; # Sponsor block
|
||||
# sha265 = "";
|
||||
# version = "";
|
||||
# })
|
||||
# (create_extension {
|
||||
# id = "eimadpbcbfnmbkopoojfekhnkhdbieeh"; # Dark reader
|
||||
# sha265 = "";
|
||||
# version = "";
|
||||
# })
|
||||
# (create_extension {
|
||||
# id = "nngceckbapebfimnlniiiahkandclblb"; # Bitwarden
|
||||
# sha265 = "";
|
||||
# version = "";
|
||||
# })
|
||||
];
|
||||
# defaultSearchProviderEnabled = true;
|
||||
# defaultSearchProviderSearchURL = "https://duckduckgo.com?q={searchTerms}";
|
||||
# extraOpts = {
|
||||
# "ExtensionManifestV2Availability" = 2;
|
||||
# "BrowserSignin" = 0;
|
||||
# "SyncDisabled" = true;
|
||||
# "PasswordManagerEnabled" = false;
|
||||
# "SpellcheckEnabled" = true;
|
||||
# "SpellcheckLanguage" = [
|
||||
# "nl-NL"
|
||||
# "en-GB"
|
||||
# ];
|
||||
# };
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,26 +0,0 @@
|
|||
{ inputs, config, lib, pkgs, namespace, ... }:
|
||||
let
|
||||
inherit (lib) mkIf mkOption;
|
||||
inherit (lib.types) subModule;
|
||||
|
||||
cfg = config.${namespace}.application;
|
||||
in
|
||||
{
|
||||
options.${namespace}.application = {
|
||||
defaults = mkOption {
|
||||
type = subModule {
|
||||
browser = mkOption {
|
||||
type = enum [ "ladybird" "zen" ];
|
||||
default = "zen";
|
||||
example = "ladybird";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
home.sessionVariables = {
|
||||
BROWSER = cfg.defaults.browser;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
{ inputs, config, lib, pkgs, namespace, ... }:
|
||||
{ config, lib, pkgs, namespace, osConfig ? {}, ... }:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
|
||||
|
@ -16,16 +16,16 @@ in
|
|||
obs-studio-plugins.obs-backgroundremoval
|
||||
obs-studio-plugins.obs-pipewire-audio-capture
|
||||
];
|
||||
|
||||
boot = {
|
||||
extraModulePackages = with config.boot.kernelPackages; [
|
||||
v4l2loopback
|
||||
];
|
||||
|
||||
extraModprobeConfig = ''
|
||||
options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1
|
||||
'';
|
||||
};
|
||||
# boot = {
|
||||
# extraModulePackages = with config.boot.kernelPackages; [
|
||||
# v4l2loopback
|
||||
# ];
|
||||
|
||||
# extraModprobeConfig = ''
|
||||
# options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1
|
||||
# '';
|
||||
# };
|
||||
|
||||
security.polkit.enable = true;
|
||||
};
|
||||
|
|
|
@ -11,6 +11,6 @@ in
|
|||
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = with pkgs; [ onlyoffice-bin ];
|
||||
fonts.packages = with pkgs; [ corefonts ];
|
||||
# fonts.packages = with pkgs; [ corefonts ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -33,23 +33,23 @@ in
|
|||
};
|
||||
|
||||
# https://github.com/FeralInteractive/gamemode
|
||||
gamemode = {
|
||||
enable = true;
|
||||
enableRenice = true;
|
||||
settings = {};
|
||||
};
|
||||
# gamemode = {
|
||||
# enable = true;
|
||||
# enableRenice = true;
|
||||
# settings = {};
|
||||
# };
|
||||
|
||||
gamescope = {
|
||||
enable = true;
|
||||
capSysNice = true;
|
||||
env = {
|
||||
DXVK_HDR = "1";
|
||||
ENABLE_GAMESCOPE_WSI = "1";
|
||||
WINE_FULLSCREEN_FSR = "1";
|
||||
WLR_RENDERER = "vulkan";
|
||||
};
|
||||
args = ["--hdr-enabled"];
|
||||
};
|
||||
# gamescope = {
|
||||
# enable = true;
|
||||
# capSysNice = true;
|
||||
# env = {
|
||||
# DXVK_HDR = "1";
|
||||
# ENABLE_GAMESCOPE_WSI = "1";
|
||||
# WINE_FULLSCREEN_FSR = "1";
|
||||
# WLR_RENDERER = "vulkan";
|
||||
# };
|
||||
# args = ["--hdr-enabled"];
|
||||
# };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue