Compare commits
No commits in common. "85520706655be6ab0be73245646d8299afb9cd91" and "50564f6eb2cb7365629e0f72eb3ed789e4afc2d6" have entirely different histories.
8552070665
...
50564f6eb2
9 changed files with 75 additions and 26 deletions
|
@ -51,12 +51,11 @@
|
|||
overlays = [ nixgl.overlay ];
|
||||
};
|
||||
extraSpecialArgs = {
|
||||
inherit stateVersion inputs nixgl;
|
||||
inherit stateVersion inputs;
|
||||
hostname = hostname;
|
||||
username = username;
|
||||
};
|
||||
modules = [
|
||||
{ nixpkgs.overlays = [ nixgl.overlay ];}
|
||||
./home-manager/default.nix
|
||||
];
|
||||
};
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ inputs, lib, stateVersion, username, hostname, nixgl, ... }:
|
||||
{ inputs, lib, stateVersion, username, hostname, ... }:
|
||||
{
|
||||
imports = [
|
||||
inputs.sops-nix.homeManagerModules.sops
|
||||
|
@ -12,9 +12,7 @@
|
|||
nixpkgs.config.allowUnfree = true;
|
||||
programs.home-manager.enable = true;
|
||||
fonts.fontconfig.enable = true;
|
||||
nixGL.packages = nixgl.packages;
|
||||
nixGL.defaultWrapper = "mesa";
|
||||
nixGL.installScripts = ["mesa"];
|
||||
|
||||
home = {
|
||||
inherit stateVersion username;
|
||||
homeDirectory = "/home/${username}";
|
||||
|
|
|
@ -24,8 +24,14 @@
|
|||
kdenlive.enable = false;
|
||||
mpv.enable = false;
|
||||
};
|
||||
web.firefox.enable = true;
|
||||
web.qutebrowser.enable = true;
|
||||
web.firefox = {
|
||||
enable = true;
|
||||
enableNixGL = true;
|
||||
};
|
||||
web.qutebrowser = {
|
||||
enable = true;
|
||||
enableNixGL = true;
|
||||
};
|
||||
web.webcord.enable = false;
|
||||
gaming.lutris.enable = false;
|
||||
desktop.sway = {
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
};
|
||||
web.firefox = {
|
||||
enable = true;
|
||||
enableNixGL = true;
|
||||
optionalExtensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||
okta-browser-plugin
|
||||
];
|
||||
|
|
|
@ -158,20 +158,6 @@ in
|
|||
desktop = "${config.home.homeDirectory}/documents";
|
||||
publicShare = "${config.home.homeDirectory}/tmp/public";
|
||||
};
|
||||
portal = {
|
||||
enable = true;
|
||||
extraPortals = with pkgs; [
|
||||
xdg-desktop-portal-wlr
|
||||
xdg-desktop-portal-gtk
|
||||
];
|
||||
xdgOpenUsePortal = true;
|
||||
config = {
|
||||
sway.default = [
|
||||
"wlr"
|
||||
"gtk"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -6,7 +6,6 @@ in
|
|||
{
|
||||
config = mkIf config.modules.desktop.sway.enable {
|
||||
wayland.windowManager.sway = {
|
||||
package = config.lib.nixGL.wrap pkgs.sway;
|
||||
enable = true;
|
||||
wrapperFeatures.gtk = true;
|
||||
systemd.enable = true;
|
||||
|
|
|
@ -29,6 +29,11 @@ in
|
|||
description = "Optional Firefox Plugins to install";
|
||||
};
|
||||
|
||||
enableNixGL = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = "Use NixGL to start Firefox";
|
||||
};
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs.browserpass = {
|
||||
|
@ -42,6 +47,24 @@ in
|
|||
"x-scheme-handler/about" = "firefox.desktop";
|
||||
"x-scheme-handler/unknown" = "firefox.desktop";
|
||||
};
|
||||
xdg.desktopEntries."firefox" = mkIf cfg.enableNixGL {
|
||||
name = "Firefox NixGL Powered";
|
||||
exec = "${pkgs.nixgl.nixGLMesa}/bin/nixGLMesa firefox %U";
|
||||
icon = "firefox";
|
||||
terminal = false;
|
||||
type = "Application";
|
||||
startupNotify = true;
|
||||
actions = {
|
||||
"new-private-window" = {
|
||||
exec = "${pkgs.nixgl.nixGLMesa}/bin/nixGLMesa firefox --private-window %U";
|
||||
name = "New Private Window";
|
||||
};
|
||||
"new-window" = {
|
||||
exec = "${pkgs.nixgl.nixGLMesa}/bin/nixGLMesa firefox --new-window %U";
|
||||
name = "New Window";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
xdg.configFile."tridactyl/tridactylrc".text = ''
|
||||
sanitize tridactyllocal tridactylsync
|
||||
|
@ -70,13 +93,13 @@ in
|
|||
allExtensions = cfg.baseExtensions ++ cfg.optionalExtensions;
|
||||
in {
|
||||
enable = true;
|
||||
package = config.lib.nixGL.wrap ( pkgs.wrapFirefox pkgs.firefox-unwrapped {
|
||||
package = pkgs.wrapFirefox pkgs.firefox-unwrapped {
|
||||
nativeMessagingHosts = [
|
||||
# Tridactyl native connector
|
||||
pkgs.tridactyl-native
|
||||
pkgs.browserpass
|
||||
];
|
||||
});
|
||||
};
|
||||
profiles.ephase = {
|
||||
id = 0;
|
||||
name = "ephase";
|
||||
|
|
|
@ -6,13 +6,35 @@ in
|
|||
{
|
||||
options.modules.web.qutebrowser = {
|
||||
enable = mkEnableOption "enable Qutebrowser web browser";
|
||||
|
||||
enableNixGL = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = "Use NixGL to start Qutebrowser";
|
||||
};
|
||||
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
xdg.desktopEntries."org.qutebrowser.qutebrowser" = mkIf cfg.enableNixGL {
|
||||
name = "QuteBrowser NixGL Powered";
|
||||
|
||||
exec = "${pkgs.nixgl.nixGLMesa}/bin/nixGLMesa qutebrowser %u";
|
||||
icon = "qutebrowser";
|
||||
terminal = false;
|
||||
type = "Application";
|
||||
startupNotify = true;
|
||||
actions = {
|
||||
"preference" = {
|
||||
exec = "${pkgs.nixgl.nixGLMesa}/bin/nixGLMesa qutebrowser \"qute://settings\"";
|
||||
name = "Preferences";
|
||||
};
|
||||
};
|
||||
};
|
||||
programs.qutebrowser = {
|
||||
enable = true;
|
||||
package = config.lib.nixGL.wrap pkgs.qutebrowser;
|
||||
loadAutoconfig = true;
|
||||
settings = {
|
||||
|
||||
qt.args = [
|
||||
"autoplay-policy=user-gesture-required"
|
||||
"ignore-gpu-blocklist"
|
||||
|
|
|
@ -16,5 +16,20 @@ in
|
|||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
wlr.enable = true;
|
||||
# gtk portal needed to make gtk apps happy
|
||||
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
||||
config = {
|
||||
common = {
|
||||
default = [
|
||||
"gtk"
|
||||
];
|
||||
"org.freedesktop.impl.portal.ScreenCast" = "wlr";
|
||||
"org.freedesktop.impl.portal.Screenshot" = "wlr";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue