mirror of
https://github.com/librephoenix/nixos-config
synced 2025-04-21 01:34:34 +05:30
Started creating a (currently) unusable hyprland config
This commit is contained in:
parent
0aa71f9662
commit
0b9d486385
|
@ -16,7 +16,7 @@
|
||||||
email = "librephoenix3@pm.me"; # email (used for certain configurations)
|
email = "librephoenix3@pm.me"; # email (used for certain configurations)
|
||||||
dotfilesDir = "~/.dotfiles"; # absolute path of the local repo
|
dotfilesDir = "~/.dotfiles"; # absolute path of the local repo
|
||||||
theme = "ayu-dark"; # selcted theme from my themes directory (./themes/)
|
theme = "ayu-dark"; # selcted theme from my themes directory (./themes/)
|
||||||
wm = "xmonad"; # Selected window manager or desktop environment; must select one in both ./user/wm/ and ./system/wm/
|
wm = "hyprland"; # Selected window manager or desktop environment; must select one in both ./user/wm/ and ./system/wm/
|
||||||
browser = "librewolf"; # Default browser; must select one from ./user/app/browser/
|
browser = "librewolf"; # Default browser; must select one from ./user/app/browser/
|
||||||
editor = "emacsclient"; # Default editor;
|
editor = "emacsclient"; # Default editor;
|
||||||
term = "alacritty -o font.size=20"; # Default terminal command;
|
term = "alacritty -o font.size=20"; # Default terminal command;
|
||||||
|
|
33
system/wm/hyprland.nix
Normal file
33
system/wm/hyprland.nix
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
# Import wayland config
|
||||||
|
imports = [ ./wayland.nix
|
||||||
|
./pipewire.nix
|
||||||
|
./dbus.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
# Security
|
||||||
|
security = {
|
||||||
|
pam.services.swaylock = {
|
||||||
|
text = ''
|
||||||
|
auth include login
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
programs = {
|
||||||
|
hyprland = {
|
||||||
|
enable = true;
|
||||||
|
xwayland = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
waybar = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.waybar.overrideAttrs (oldAttrs: {
|
||||||
|
mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true" ];
|
||||||
|
});
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
23
system/wm/wayland.nix
Normal file
23
system/wm/wayland.nix
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [ ./pipewire.nix
|
||||||
|
./dbus.nix
|
||||||
|
./gnome-keyring.nix
|
||||||
|
./fonts.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
environment.systemPackages = [ pkgs.wayland ];
|
||||||
|
|
||||||
|
# Configure xwayland
|
||||||
|
services.xserver = {
|
||||||
|
enable = true;
|
||||||
|
layout = "us";
|
||||||
|
xkbVariant = "";
|
||||||
|
xkbOptions = "caps:escape";
|
||||||
|
displayManager.gdm = {
|
||||||
|
enable = true;
|
||||||
|
wayland = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -14,10 +14,6 @@
|
||||||
xkbVariant = "";
|
xkbVariant = "";
|
||||||
xkbOptions = "caps:escape";
|
xkbOptions = "caps:escape";
|
||||||
excludePackages = [ pkgs.xterm ];
|
excludePackages = [ pkgs.xterm ];
|
||||||
windowManager.xmonad = {
|
|
||||||
enable = true;
|
|
||||||
enableContribAndExtras = true;
|
|
||||||
};
|
|
||||||
displayManager = {
|
displayManager = {
|
||||||
lightdm.enable = true;
|
lightdm.enable = true;
|
||||||
sessionCommands = ''
|
sessionCommands = ''
|
||||||
|
|
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…
Reference in a new issue