mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-01-18 17:11:39 +01:00
wayland: use river as default
This commit is contained in:
parent
dd997624a9
commit
38d3e744ad
5 changed files with 30 additions and 20 deletions
|
@ -4,18 +4,10 @@ let
|
||||||
inherit (prev) python3Packages;
|
inherit (prev) python3Packages;
|
||||||
inherit (prev) fetchFromGitHub;
|
inherit (prev) fetchFromGitHub;
|
||||||
inherit (prev) fetchPypi;
|
inherit (prev) fetchPypi;
|
||||||
|
inherit (prev) fetchpatch;
|
||||||
inherit (prev) makeWrapper;
|
inherit (prev) makeWrapper;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
wpa_supplicant_gui = prev.wpa_supplicant_gui.overrideAttrs
|
|
||||||
(old: {
|
|
||||||
# better desktop application name. "wpa_gui" kinda sucks
|
|
||||||
postInstall = old.postInstall + ''
|
|
||||||
|
|
||||||
substituteInPlace $out/share/applications/wpa_gui.desktop --replace "Name=wpa_gui" "Name=Wireless connections"
|
|
||||||
'';
|
|
||||||
});
|
|
||||||
|
|
||||||
pcmanfm = prev.pcmanfm.overrideAttrs (_: {
|
pcmanfm = prev.pcmanfm.overrideAttrs (_: {
|
||||||
# remove deskop preferences shortcut
|
# remove deskop preferences shortcut
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
@ -25,6 +17,14 @@ in
|
||||||
|
|
||||||
pww = callPackage ../pkgs/pww { };
|
pww = callPackage ../pkgs/pww { };
|
||||||
|
|
||||||
|
river = prev.river.overrideAttrs (_: {
|
||||||
|
patches = [
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://patch-diff.githubusercontent.com/raw/riverwm/river/pull/735.patch";
|
||||||
|
hash = "sha256-7pwQfXurgJej0NZ+kD2qBQdrqD6pYA1PbHxzG+5rGac=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
});
|
||||||
|
|
||||||
tpm2-pkcs11 = prev.tpm2-pkcs11.override { fapiSupport = false; };
|
tpm2-pkcs11 = prev.tpm2-pkcs11.override { fapiSupport = false; };
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,14 @@
|
||||||
extraPortals = [
|
extraPortals = [
|
||||||
pkgs.xdg-desktop-portal-wlr
|
pkgs.xdg-desktop-portal-wlr
|
||||||
];
|
];
|
||||||
|
config = {
|
||||||
|
common = {
|
||||||
|
default = [ "wlr" ];
|
||||||
|
};
|
||||||
|
"org.freedesktop.impl.portal.Secret" = {
|
||||||
|
default = [ "gnome-keyring" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
# wayland keylogger needs setuid
|
# wayland keylogger needs setuid
|
||||||
programs.wshowkeys.enable = true;
|
programs.wshowkeys.enable = true;
|
||||||
|
@ -31,6 +39,7 @@
|
||||||
# Authentication management.
|
# Authentication management.
|
||||||
|
|
||||||
auth sufficient pam_unix.so nullok likeauth try_first_pass
|
auth sufficient pam_unix.so nullok likeauth try_first_pass
|
||||||
|
auth sufficient ${pkgs.pam_u2f}/lib/security/pam_u2f.so
|
||||||
auth sufficient ${pkgs.fprintd}/lib/security/pam_fprintd.so
|
auth sufficient ${pkgs.fprintd}/lib/security/pam_fprintd.so
|
||||||
auth required pam_deny.so
|
auth required pam_deny.so
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ in
|
||||||
hostname = "falkenstein.vpn.rfive.de";
|
hostname = "falkenstein.vpn.rfive.de";
|
||||||
user = "root";
|
user = "root";
|
||||||
extraOptions = {
|
extraOptions = {
|
||||||
VerifyHostKeyDNS = "ask";
|
VerifyHostKeyDNS = "yes";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
# used for nix remote building
|
# used for nix remote building
|
||||||
|
@ -58,10 +58,6 @@ in
|
||||||
hostname = "tomate.ifsr.de";
|
hostname = "tomate.ifsr.de";
|
||||||
user = "root";
|
user = "root";
|
||||||
};
|
};
|
||||||
"kaki" = {
|
|
||||||
hostname = "kaki.ifsr.de";
|
|
||||||
user = "root";
|
|
||||||
};
|
|
||||||
"git@ifsr.de" = {
|
"git@ifsr.de" = {
|
||||||
match = "Host ifsr.de User git";
|
match = "Host ifsr.de User git";
|
||||||
identityFile = git;
|
identityFile = git;
|
||||||
|
@ -71,11 +67,15 @@ in
|
||||||
"dijkstra" = {
|
"dijkstra" = {
|
||||||
hostname = "login.agdsn.tu-dresden.de";
|
hostname = "login.agdsn.tu-dresden.de";
|
||||||
user = "r5";
|
user = "r5";
|
||||||
|
extraOptions = {
|
||||||
|
VerifyHostKeyDNS = "yes";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
"*.agdsn.network" = {
|
"*.agdsn.network" = {
|
||||||
user = "r5";
|
user = "r5";
|
||||||
extraOptions = {
|
extraOptions = {
|
||||||
ProxyJump = "dijkstra";
|
ProxyJump = "dijkstra";
|
||||||
|
VerifyHostKeyDNS = "yes";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"git@git.agdsn.de" = {
|
"git@git.agdsn.de" = {
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./sway.nix
|
./sway.nix
|
||||||
|
./river.nix
|
||||||
./breaktimer.nix
|
./breaktimer.nix
|
||||||
./waybar.nix
|
./waybar.nix
|
||||||
./shikane.nix
|
./shikane.nix
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
layer = "top";
|
layer = "top";
|
||||||
position = "top";
|
position = "top";
|
||||||
height = 26;
|
height = 26;
|
||||||
modules-left = [ "sway/workspaces" "custom/spotifytitle" "sway/window" ];
|
modules-left = [ "river/tags" "custom/spotifytitle" "river/window" ];
|
||||||
modules-right = [ "network" "cpu" "pulseaudio" "battery" "tray" "custom/notification" "clock" ];
|
modules-right = [ "network" "cpu" "pulseaudio" "battery" "tray" "custom/notification" "clock" ];
|
||||||
network = {
|
network = {
|
||||||
format-wifi = " {essid} ({signalStrength}%)";
|
format-wifi = " {essid} ({signalStrength}%)";
|
||||||
|
@ -20,11 +20,11 @@
|
||||||
format-disconnected = "Disconnected ⚠";
|
format-disconnected = "Disconnected ⚠";
|
||||||
format-alt = "{ifname}: {ipaddr}/{cidr}";
|
format-alt = "{ifname}: {ipaddr}/{cidr}";
|
||||||
};
|
};
|
||||||
"sway/workspaces" = {
|
"river/tags" = {
|
||||||
format = "{icon}";
|
format = "{icon}";
|
||||||
on-click = "activate";
|
on-click = "activate";
|
||||||
};
|
};
|
||||||
"sway/window" = {
|
"river/window" = {
|
||||||
format = " {}";
|
format = " {}";
|
||||||
# separate-outputs = true;
|
# separate-outputs = true;
|
||||||
};
|
};
|
||||||
|
@ -113,18 +113,18 @@
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button {
|
#tags button {
|
||||||
padding: 0 5px;
|
padding: 0 5px;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
color: #${config.colorScheme.colors.base05};
|
color: #${config.colorScheme.colors.base05};
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button.focused {
|
#tags button.focused {
|
||||||
background-color: #${config.colorScheme.colors.base04};
|
background-color: #${config.colorScheme.colors.base04};
|
||||||
box-shadow: inset 0 -3px #${config.colorScheme.colors.base05};
|
box-shadow: inset 0 -3px #${config.colorScheme.colors.base05};
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button.urgent {
|
#tags button.urgent {
|
||||||
background-color: #eb4d4b;
|
background-color: #eb4d4b;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue