Hypr + fuse + ssh

This commit is contained in:
Lennart J. Kurzweg (Nx2)
2024-04-15 10:20:40 +02:00
parent 1a300f02ab
commit d336212904
4 changed files with 53 additions and 42 deletions

View File

@@ -4,6 +4,7 @@ in
{ {
imports = [ imports = [
./system-modules/hardware-configuration.nix ./system-modules/hardware-configuration.nix
./system-modules/fuse.nix
./system-modules/nvidia.nix # only does stuff if nvidia.enabled ./system-modules/nvidia.nix # only does stuff if nvidia.enabled
./system-modules/users.nix ./system-modules/users.nix
./system-modules/sound.nix ./system-modules/sound.nix

View File

@@ -3,7 +3,7 @@ let
animation-speed = "2"; animation-speed = "2";
transparency = rice.transparency; transparency = rice.transparency;
gap-size = 10; gap-size = 10;
rounding = 10; rounding = 3;
border-width = 3; border-width = 3;
monitors = { monitors = {
xps = { xps = {
@@ -116,40 +116,40 @@ in
d1 = if host == "NxXPS" then monitors.xps.main.name else monitors.north.main.name; d1 = if host == "NxXPS" then monitors.xps.main.name else monitors.north.main.name;
d2 = if host == "NxXPS" then monitors.xps.second.name else monitors.north.left.name; d2 = if host == "NxXPS" then monitors.xps.second.name else monitors.north.left.name;
d3 = if host == "NxXPS" then monitors.xps.main.name else monitors.north.right.name; d3 = if host == "NxXPS" then monitors.xps.main.name else monitors.north.right.name;
compact = ",gapsin:0, gapsout:0, rounding:0, bordersize:0"; compact = "gapsin:0, gapsout:0, bordersize:1, rounding:false";
in in
[ [
"${d1}, 11, default:true" "11, monitor:${d1}, default:true"
"${d1}, 12" "12, monitor:${d1}"
"${d1}, 13" "13, monitor:${d1}"
"${d1}, 14" "14, monitor:${d1}"
"${d1}, 15" "15, monitor:${d1}"
"${d1}, 16" "16, monitor:${d1}"
"${d1}, 17" "17, monitor:${d1}"
"${d1}, 18" "18, monitor:${d1}"
"${d1}, 19" "19, monitor:${d1}"
"${d1}, 10 ${compact}" "10, monitor:${d1}, ${compact}"
"${d1}, 100 ${compact}" "100, monitor:${d1}, ${compact}"
"${d2}, 21 ${compact}" "21, monitor:${d2}, default:true, ${compact}"
"${d2}, 22" "22, monitor:${d2}"
"${d2}, 23" "23, monitor:${d2}"
"${d2}, 24" "24, monitor:${d2}"
"${d2}, 25" "25, monitor:${d2}"
"${d2}, 26" "26, monitor:${d2}"
"${d2}, 27" "27, monitor:${d2}"
"${d2}, 28" "28, monitor:${d2}"
"${d2}, 29" "29, monitor:${d2}"
"${d2}, 20" "20, monitor:${d2}"
"${d3}, 31, default:true" "31, monitor:${d3}, default:${let x = if host == "NxNORTH" then "true" else "false"; in x}"
"${d3}, 32" "32, monitor:${d3}"
"${d3}, 33" "33, monitor:${d3}"
"${d3}, 34" "34, monitor:${d3}"
"${d3}, 35" "35, monitor:${d3}"
"${d3}, 36" "36, monitor:${d3}"
"${d3}, 37" "37, monitor:${d3}"
"${d3}, 38" "38, monitor:${d3}"
"${d3}, 39" "39, monitor:${d3}"
"${d3}, 30 ${compact}" "30, monitor:${d3}, ${compact}"
]; ];
# "device:logitech-wireless-mouse-mx-master-1" = { # "device:logitech-wireless-mouse-mx-master-1" = {
@@ -179,7 +179,7 @@ in
gaps_in = builtins.div gap-size 2; gaps_in = builtins.div gap-size 2;
gaps_out = gap-size; gaps_out = gap-size;
border_size = border-width; border_size = border-width;
"col.active_border" = "rgba(${rice.color.red}ff)"; "col.active_border" = "rgba(${rice.color.red}ff) rgba(${rice.color.bright-cyan}ff) 45deg";
"col.inactive_border" = "rgba(${rice.color.black}ff)"; "col.inactive_border" = "rgba(${rice.color.black}ff)";
cursor_inactive_timeout = 10; cursor_inactive_timeout = 10;
@@ -276,7 +276,7 @@ in
windowrulev2 = [ windowrulev2 = [
"opacity ${transparency},class:^(com.chatterino.*)$" "opacity ${transparency},class:^(com.chatterino.*)$"
"opacity ${transparency},class:^(chatterino)$" "opacity ${transparency},class:^(chatterino)$"
"bordercolor rgba(${rice.color.bright-magenta}ff) rgba(${rice.color.magenta}), pinned:1" "bordercolor rgba(${rice.color.bright-magenta}ff), pinned:1"
]; ];
windowrule = [ windowrule = [
@@ -528,7 +528,7 @@ in
extraConfig = '' extraConfig = ''
submap = browserSM submap = browserSM
bind = , W, exec, waybar_mode unset bind = , W, exec, waybar_mode unset
bind = , W, exec, hyprctl dispatch exec [workspace 11] firefox bind = , W, exec, hyprctl dispatch exec firefox
bind = , W, submap, reset bind = , W, submap, reset
bind = , Y, exec, waybar_mode unset bind = , Y, exec, waybar_mode unset
@@ -536,7 +536,7 @@ in
bind = , Y, submap, reset bind = , Y, submap, reset
bind = , T, exec, waybar_mode unset bind = , T, exec, waybar_mode unset
bind = , T, exec, hyprctl dispatch exec [workspace 10] "firefox https://twitch.tv" bind = , T, exec, hyprctl dispatch exec firefox https://twitch.tv
bind = , T, submap, reset bind = , T, submap, reset
bind = , R, exec, waybar_mode unset bind = , R, exec, waybar_mode unset
@@ -837,16 +837,16 @@ in
workspaceMargin = 30 workspaceMargin = 30
workspaceBorderSize = 3 workspaceBorderSize = 3
centerAligned = true centerAligned = true
overrideGaps = 10 overrideGaps = false
gapsIn = 10 gapsIn = 0
gapsOut = 10 gapsOut = 0
hideBackgroundLayers = false hideBackgroundLayers = false
drawActiveWorkspace = true drawActiveWorkspace = true
autoDrag = true autoDrag = true
autoScroll = true autoScroll = true
exitOnClick = false exitOnClick = false
switchOnDrop = false switchOnDrop = false
exitOnSwitch = false exitOnSwitch = trueß
showNewWorkspace = true showNewWorkspace = true
showEmptyWorkspace = false showEmptyWorkspace = false
} }

View File

@@ -1,7 +1,10 @@
{ config, pkgs, lib, system, user, allowed, secrets, ... }: { config, pkgs, lib, system, user, allowed, secrets, ... }:
{ {
home.packages = with pkgs; [
sshfs
];
home.file.".ssh/config".text = '' home.file.".ssh/config".text = ''

7
system-modules/fuse.nix Normal file
View File

@@ -0,0 +1,7 @@
{ config, pkgs, ...}:
{
environment.systemPackages = with pkgs; [
jmtpfs
];
}