mirror of
https://github.com/librephoenix/nixos-config
synced 2025-07-06 06:52:13 +05:30
Started creating a (currently) unusable hyprland config
This commit is contained in:
parent
0aa71f9662
commit
0b9d486385
6 changed files with 146 additions and 5 deletions
42
user/app/browser/librewolf-wayland.nix
Normal file
42
user/app/browser/librewolf-wayland.nix
Normal file
|
@ -0,0 +1,42 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Module installing librewolf as default browser
|
||||
home.packages = [ pkgs.librewolf-wayland ];
|
||||
|
||||
home.file.".librewolf/librewolf.overrides.cfg".text = ''
|
||||
defaultPref("font.name.serif.x-western","Inconsolata");
|
||||
defaultPref("font.size.variable.x-western",20);
|
||||
defaultPref("browser.toolbars.bookmarks.visibility","always");
|
||||
defaultPref("privacy.resisttFingerprinting.letterboxing", true);
|
||||
defaultPref("network.http.referer.XOriginPolicy",2);
|
||||
defaultPref("privacy.clearOnShutdown.history",true);
|
||||
defaultPref("privacy.clearOnShutdown.downloads",true);
|
||||
defaultPref("privacy.clearOnShutdown.cookies",true);
|
||||
defaultPref("gfx.webrender.software.opengl",false);
|
||||
defaultPref("webgl.disabled",true);
|
||||
pref("font.name.serif.x-western","Inconsolata");
|
||||
pref("font.size.variable.x-western",20);
|
||||
pref("browser.toolbars.bookmarks.visibility","always");
|
||||
pref("privacy.resisttFingerprinting.letterboxing", true);
|
||||
pref("network.http.referer.XOriginPolicy",2);
|
||||
pref("privacy.clearOnShutdown.history",true);
|
||||
pref("privacy.clearOnShutdown.downloads",true);
|
||||
pref("privacy.clearOnShutdown.cookies",true);
|
||||
pref("gfx.webrender.software.opengl",false);
|
||||
pref("webgl.disabled",true);
|
||||
'';
|
||||
|
||||
xdg.mimeApps.defaultApplications = {
|
||||
"text/html" = "librewolf.desktop";
|
||||
"x-scheme-handler/http" = "librewolf.desktop";
|
||||
"x-scheme-handler/https" = "librewolf.desktop";
|
||||
"x-scheme-handler/about" = "librewolf.desktop";
|
||||
"x-scheme-handler/unknown" = "librewolf.desktop";
|
||||
};
|
||||
|
||||
home.sessionVariables = {
|
||||
DEFAULT_BROWSER = "${pkgs.librewolf-wayland}/bin/librewolf";
|
||||
};
|
||||
|
||||
}
|
47
user/wm/hyprland/hyprland.nix
Normal file
47
user/wm/hyprland/hyprland.nix
Normal file
|
@ -0,0 +1,47 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
plugins = [];
|
||||
settings = {};
|
||||
extraConfig = ''
|
||||
bind=SUPER,RETURN,exec,alacritty
|
||||
bind=SUPER,A,exec,emacs
|
||||
bind=SUPER,S,exec,librewolf
|
||||
'';
|
||||
xwayland = {
|
||||
enable = true;
|
||||
};
|
||||
systemdIntegration = true;
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
alacritty
|
||||
kitty
|
||||
feh
|
||||
killall
|
||||
polkit_gnome
|
||||
libva-utils
|
||||
gsettings-desktop-schemas
|
||||
swaynotificationcenter
|
||||
wlr-randr
|
||||
ydotool
|
||||
hyprland-share-picker
|
||||
wl-clipboard
|
||||
hyprland-protocols
|
||||
hyprpicker
|
||||
swayidle
|
||||
swaylock
|
||||
hyprpaper
|
||||
wofi
|
||||
swww
|
||||
grim
|
||||
qt5.qtwayland
|
||||
qt6.qtwayland
|
||||
xdg-utils
|
||||
xdg-desktop-portal
|
||||
xdg-desktop-portal-gtk
|
||||
xdg-desktop-portal-hyprland
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue