Compare commits

..

No commits in common. "3d77759129965def736250090f6d6a2692afc390" and "8cfe753e4edd7f27b1bfa5acd4243e1395ca9a43" have entirely different histories.

5 changed files with 77 additions and 87 deletions

View file

@ -27,6 +27,7 @@ in
modules/foot.nix modules/foot.nix
modules/manual.nix modules/manual.nix
modules/tig.nix modules/tig.nix
modules/mako.nix
modules/nm-applet.nix modules/nm-applet.nix
modules/blueman-applet.nix modules/blueman-applet.nix
../secrets/ssh-config.nix ../secrets/ssh-config.nix
@ -77,6 +78,8 @@ in
usbutils usbutils
pciutils pciutils
swaylock
swayidle
brightnessctl brightnessctl
wl-clipboard wl-clipboard
sway-contrib.grimshot sway-contrib.grimshot
@ -129,26 +132,9 @@ in
gtk = { gtk = {
enable = true; enable = true;
font.name = "TeX Gyre Adventor 12";
theme = { theme = {
name = "Juno"; name = "Adwaita";
package = pkgs.juno-theme; package = pkgs.adwaita-icon-theme;
};
iconTheme = {
name = "Papirus-Dark";
package = pkgs.papirus-icon-theme;
};
gtk3.extraConfig = {
Settings = ''
gtk-application-prefer-dark-theme=1
'';
};
gtk4.extraConfig = {
Settings = ''
gtk-application-prefer-dark-theme=1
'';
}; };
}; };

View file

@ -1,15 +1,12 @@
{ nixosConfig, ... }: { nixosConfig, ... }:
let let
machines = { machines = {
smithers = [ smithers = [{
{
profile.name = "laptop-only"; profile.name = "laptop-only";
profile.outputs = [ profile.outputs = [
{ {
criteria = "eDP-1"; criteria = "eDP-1";
status = "enable";
scale = 1.3; scale = 1.3;
mode = "2256x1504@59.999Hz";
} }
]; ];
} }
@ -21,20 +18,17 @@ let
status = "disable"; status = "disable";
} }
{ {
criteria = "Samsung Electric Company U28E590 HTPJ109320"; criteria = "DP-10";
scale = 1.4; scale = 1.3;
position = "0,0"; position = "0,0";
mode = "3840x2160@60.000Hz";
} }
{ {
criteria = "Samsung Electric Company U28E590 HTPM402579"; criteria = "DP-9";
scale = 1.4; scale = 1.3;
position = "2743,0"; position = "2952,0";
mode = "3840x2160@60.000Hz";
}
];
} }
]; ];
}];
}; };
in in
{ {

View file

@ -0,0 +1,14 @@
{
services.mako = {
enable = true;
groupBy = "app-name";
defaultTimeout = 5000;
extraConfig = ''
font=Inconsolata 10
background-color=#1d2021
border-color=#ebdbb2
border-radius=10
text-color=#ebdbb2
'';
};
}

View file

@ -1,11 +1,6 @@
{ { pkgs, nixosConfig, lib, ... }:
pkgs,
nixosConfig,
lib,
...
}:
let let
lockCmd = "${pkgs.gtklock}/bin/gtklock"; lockCmd = "${pkgs.swaylock}/bin/swaylock -i /etc/nixos/lockscreen.png";
in in
{ {
wayland.windowManager.sway = { wayland.windowManager.sway = {
@ -21,21 +16,17 @@ in
focus.followMouse = false; focus.followMouse = false;
input = { input = {
"type:keyboard" = { "type:keyboard" = { xkb_layout = "eu"; };
xkb_layout = "eu"; "type:mouse" = { pointer_accel = "-1"; };
}; "type:touchpad" = { tap = "enabled"; };
"type:mouse" = { "1:1:AT_Translated_Set_2_keyboard" = {
pointer_accel = "-1"; # Remap borken ctrl key on internal keyboard for XPS
}; xkb_options = "caps:ctrl_modifier";
"type:touchpad" = {
tap = "enabled";
}; };
}; };
output = output = {
{
"*".bg = "/etc/nixos/wallpaper.jpg fill"; "*".bg = "/etc/nixos/wallpaper.jpg fill";
} } // lib.optionalAttrs (nixosConfig.networking.hostName == "cray") {
// lib.optionalAttrs (nixosConfig.networking.hostName == "cray") {
"DP-1" = { "DP-1" = {
mode = "3840x2160"; mode = "3840x2160";
scale = "1.3"; scale = "1.3";
@ -46,11 +37,15 @@ in
scale = "1.3"; scale = "1.3";
position = "2953,0"; position = "2953,0";
}; };
} // lib.optionalAttrs (nixosConfig.networking.hostName == "smithers") {
"eDP-1" = {
mode = "2256x1504";
scale = "1.2";
position = "0,0";
};
}; };
gaps = { gaps = { inner = 5; };
inner = 5;
};
window.border = 2; window.border = 2;
window.hideEdgeBorders = "smart"; window.hideEdgeBorders = "smart";
workspaceAutoBackAndForth = true; workspaceAutoBackAndForth = true;
@ -94,13 +89,12 @@ in
}; };
}; };
bars = [{ command = "${pkgs.waybar}/bin/waybar"; }]; bars = [{ command = "${pkgs.waybar}/bin/waybar"; }];
startup = [ startup = [
{ command = "${pkgs.swaynotificationcenter}/bin/swaync"; }
{ {
command = '' command = ''${pkgs.swayidle}/bin/swayidle -w \
${pkgs.swayidle}/bin/swayidle -w \
timeout 600 "${lockCmd}" \ timeout 600 "${lockCmd}" \
timeout 900 "${pkgs.sway}/bin/swaymsg output * dpms off" \ timeout 900 "${pkgs.sway}/bin/swaymsg output * dpms off" \
resume "${pkgs.sway}/bin/swaymsg output * dpms on" \ resume "${pkgs.sway}/bin/swaymsg output * dpms on" \
@ -108,6 +102,8 @@ in
} }
]; ];
keybindings = keybindings =
let let
mod = "Mod4"; mod = "Mod4";
@ -116,14 +112,13 @@ in
in in
{ {
"${mod}+Return" = "exec foot"; "${mod}+Return" = "exec foot";
"${mod}+p" = "exec ${pkgs.nwg-drawer}/bin/nwg-drawer"; "${mod}+p" = "exec ${pkgs.wofi}/bin/wofi --show drun --gtk-dark";
"${mod}+Shift+c" = "reload"; "${mod}+Shift+c" = "reload";
"${mod}+Shift+q" = "kill"; "${mod}+Shift+q" = "kill";
"${mod}+Shift+e" = "${mod}+Shift+e" =
"exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'"; "exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'";
"${mod}+x" = "move workspace to output right"; "${mod}+x" = "move workspace to output right";
"${mod}+n" = "exec ${pkgs.swaynotificationcenter}/bin/swaync-client -t";
"${mod}+h" = "focus left"; "${mod}+h" = "focus left";
"${mod}+j" = "focus down"; "${mod}+j" = "focus down";
@ -170,11 +165,14 @@ in
# Print, Pause, AudioRaiseVolume # Print, Pause, AudioRaiseVolume
"Print" = "exec grimshot save area"; "Print" = "exec grimshot save area";
"Pause" = "exec systemctl suspend"; "Pause" = "exec systemctl suspend";
"XF86AudioRaiseVolume" = "exec ${pactl} set-sink-volume @DEFAULT_SINK@ +5%"; "XF86AudioRaiseVolume" =
"exec ${pactl} set-sink-volume @DEFAULT_SINK@ +5%";
# Tools, AudioMute, AudioLowerVolume # Tools, AudioMute, AudioLowerVolume
"XF86Tools" = "exec ${lockCmd}"; "XF86Tools" = "exec ${lockCmd}";
"XF86AudioMute" = "exec ${pactl} set-sink-mute @DEFAULT_SINK@ toggle"; "XF86AudioMute" =
"XF86AudioLowerVolume" = "exec ${pactl} set-sink-volume @DEFAULT_SINK@ -5%"; "exec ${pactl} set-sink-mute @DEFAULT_SINK@ toggle";
"XF86AudioLowerVolume" =
"exec ${pactl} set-sink-volume @DEFAULT_SINK@ -5%";
# AudioPrev, AudioPlay, AudioNext # AudioPrev, AudioPlay, AudioNext
"XF86AudioNext" = "exec ${playerctl} next"; "XF86AudioNext" = "exec ${playerctl} next";

View file

@ -3,8 +3,6 @@
programs.sway.enable = true; programs.sway.enable = true;
programs.sway.package = null; programs.sway.package = null;
security.pam.services.gtklock = {};
# autologin # autologin
services.greetd = { services.greetd = {
enable = true; enable = true;