Compare commits
2 commits
8cfe753e4e
...
3d77759129
Author | SHA1 | Date | |
---|---|---|---|
![]() |
3d77759129 | ||
![]() |
5b3e6d859b |
5 changed files with 87 additions and 77 deletions
|
@ -27,7 +27,6 @@ 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
|
||||||
|
@ -78,8 +77,6 @@ in
|
||||||
usbutils
|
usbutils
|
||||||
pciutils
|
pciutils
|
||||||
|
|
||||||
swaylock
|
|
||||||
swayidle
|
|
||||||
brightnessctl
|
brightnessctl
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
sway-contrib.grimshot
|
sway-contrib.grimshot
|
||||||
|
@ -132,10 +129,27 @@ in
|
||||||
|
|
||||||
gtk = {
|
gtk = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
font.name = "TeX Gyre Adventor 12";
|
||||||
theme = {
|
theme = {
|
||||||
name = "Adwaita";
|
name = "Juno";
|
||||||
package = pkgs.adwaita-icon-theme;
|
package = pkgs.juno-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
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg = {
|
xdg = {
|
||||||
|
|
|
@ -1,15 +1,18 @@
|
||||||
{ nixosConfig, ... }:
|
{ nixosConfig, ... }:
|
||||||
let
|
let
|
||||||
machines = {
|
machines = {
|
||||||
smithers = [{
|
smithers = [
|
||||||
profile.name = "laptop-only";
|
{
|
||||||
profile.outputs = [
|
profile.name = "laptop-only";
|
||||||
{
|
profile.outputs = [
|
||||||
criteria = "eDP-1";
|
{
|
||||||
scale = 1.3;
|
criteria = "eDP-1";
|
||||||
}
|
status = "enable";
|
||||||
];
|
scale = 1.3;
|
||||||
}
|
mode = "2256x1504@59.999Hz";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
{
|
{
|
||||||
profile.name = "homeoffice";
|
profile.name = "homeoffice";
|
||||||
profile.outputs = [
|
profile.outputs = [
|
||||||
|
@ -18,17 +21,20 @@ let
|
||||||
status = "disable";
|
status = "disable";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
criteria = "DP-10";
|
criteria = "Samsung Electric Company U28E590 HTPJ109320";
|
||||||
scale = 1.3;
|
scale = 1.4;
|
||||||
position = "0,0";
|
position = "0,0";
|
||||||
|
mode = "3840x2160@60.000Hz";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
criteria = "DP-9";
|
criteria = "Samsung Electric Company U28E590 HTPM402579";
|
||||||
scale = 1.3;
|
scale = 1.4;
|
||||||
position = "2952,0";
|
position = "2743,0";
|
||||||
|
mode = "3840x2160@60.000Hz";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}];
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,14 +0,0 @@
|
||||||
{
|
|
||||||
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
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,6 +1,11 @@
|
||||||
{ pkgs, nixosConfig, lib, ... }:
|
{
|
||||||
|
pkgs,
|
||||||
|
nixosConfig,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
lockCmd = "${pkgs.swaylock}/bin/swaylock -i /etc/nixos/lockscreen.png";
|
lockCmd = "${pkgs.gtklock}/bin/gtklock";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
wayland.windowManager.sway = {
|
wayland.windowManager.sway = {
|
||||||
|
@ -16,36 +21,36 @@ in
|
||||||
focus.followMouse = false;
|
focus.followMouse = false;
|
||||||
|
|
||||||
input = {
|
input = {
|
||||||
"type:keyboard" = { xkb_layout = "eu"; };
|
"type:keyboard" = {
|
||||||
"type:mouse" = { pointer_accel = "-1"; };
|
xkb_layout = "eu";
|
||||||
"type:touchpad" = { tap = "enabled"; };
|
};
|
||||||
"1:1:AT_Translated_Set_2_keyboard" = {
|
"type:mouse" = {
|
||||||
# Remap borken ctrl key on internal keyboard for XPS
|
pointer_accel = "-1";
|
||||||
xkb_options = "caps:ctrl_modifier";
|
};
|
||||||
|
"type:touchpad" = {
|
||||||
|
tap = "enabled";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
output = {
|
output =
|
||||||
"*".bg = "/etc/nixos/wallpaper.jpg fill";
|
{
|
||||||
} // lib.optionalAttrs (nixosConfig.networking.hostName == "cray") {
|
"*".bg = "/etc/nixos/wallpaper.jpg fill";
|
||||||
"DP-1" = {
|
}
|
||||||
mode = "3840x2160";
|
// lib.optionalAttrs (nixosConfig.networking.hostName == "cray") {
|
||||||
scale = "1.3";
|
"DP-1" = {
|
||||||
position = "0,0";
|
mode = "3840x2160";
|
||||||
|
scale = "1.3";
|
||||||
|
position = "0,0";
|
||||||
|
};
|
||||||
|
"DP-3" = {
|
||||||
|
mode = "3840x2160";
|
||||||
|
scale = "1.3";
|
||||||
|
position = "2953,0";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
"DP-3" = {
|
|
||||||
mode = "3840x2160";
|
|
||||||
scale = "1.3";
|
|
||||||
position = "2953,0";
|
|
||||||
};
|
|
||||||
} // lib.optionalAttrs (nixosConfig.networking.hostName == "smithers") {
|
|
||||||
"eDP-1" = {
|
|
||||||
mode = "2256x1504";
|
|
||||||
scale = "1.2";
|
|
||||||
position = "0,0";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
gaps = { inner = 5; };
|
gaps = {
|
||||||
|
inner = 5;
|
||||||
|
};
|
||||||
window.border = 2;
|
window.border = 2;
|
||||||
window.hideEdgeBorders = "smart";
|
window.hideEdgeBorders = "smart";
|
||||||
workspaceAutoBackAndForth = true;
|
workspaceAutoBackAndForth = true;
|
||||||
|
@ -89,21 +94,20 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
bars = [{ command = "${pkgs.waybar}/bin/waybar"; }];
|
bars = [{ command = "${pkgs.waybar}/bin/waybar"; }];
|
||||||
|
|
||||||
startup = [
|
startup = [
|
||||||
|
{ command = "${pkgs.swaynotificationcenter}/bin/swaync"; }
|
||||||
{
|
{
|
||||||
command = ''${pkgs.swayidle}/bin/swayidle -w \
|
command = ''
|
||||||
timeout 600 "${lockCmd}" \
|
${pkgs.swayidle}/bin/swayidle -w \
|
||||||
timeout 900 "${pkgs.sway}/bin/swaymsg output * dpms off" \
|
timeout 600 "${lockCmd}" \
|
||||||
resume "${pkgs.sway}/bin/swaymsg output * dpms on" \
|
timeout 900 "${pkgs.sway}/bin/swaymsg output * dpms off" \
|
||||||
before-sleep "${lockCmd}"'';
|
resume "${pkgs.sway}/bin/swaymsg output * dpms on" \
|
||||||
|
before-sleep "${lockCmd}"'';
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
keybindings =
|
keybindings =
|
||||||
let
|
let
|
||||||
mod = "Mod4";
|
mod = "Mod4";
|
||||||
|
@ -112,13 +116,14 @@ in
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
"${mod}+Return" = "exec foot";
|
"${mod}+Return" = "exec foot";
|
||||||
"${mod}+p" = "exec ${pkgs.wofi}/bin/wofi --show drun --gtk-dark";
|
"${mod}+p" = "exec ${pkgs.nwg-drawer}/bin/nwg-drawer";
|
||||||
|
|
||||||
"${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";
|
||||||
|
@ -165,14 +170,11 @@ 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" =
|
"XF86AudioRaiseVolume" = "exec ${pactl} set-sink-volume @DEFAULT_SINK@ +5%";
|
||||||
"exec ${pactl} set-sink-volume @DEFAULT_SINK@ +5%";
|
|
||||||
# Tools, AudioMute, AudioLowerVolume
|
# Tools, AudioMute, AudioLowerVolume
|
||||||
"XF86Tools" = "exec ${lockCmd}";
|
"XF86Tools" = "exec ${lockCmd}";
|
||||||
"XF86AudioMute" =
|
"XF86AudioMute" = "exec ${pactl} set-sink-mute @DEFAULT_SINK@ toggle";
|
||||||
"exec ${pactl} set-sink-mute @DEFAULT_SINK@ toggle";
|
"XF86AudioLowerVolume" = "exec ${pactl} set-sink-volume @DEFAULT_SINK@ -5%";
|
||||||
"XF86AudioLowerVolume" =
|
|
||||||
"exec ${pactl} set-sink-volume @DEFAULT_SINK@ -5%";
|
|
||||||
|
|
||||||
# AudioPrev, AudioPlay, AudioNext
|
# AudioPrev, AudioPlay, AudioNext
|
||||||
"XF86AudioNext" = "exec ${playerctl} next";
|
"XF86AudioNext" = "exec ${playerctl} next";
|
||||||
|
|
|
@ -3,6 +3,8 @@
|
||||||
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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue