2022-12-20 22:54:25 +00:00
|
|
|
|
{ config, pkgs, lib, ... }:
|
2022-12-19 22:35:54 +00:00
|
|
|
|
|
2022-12-20 23:25:05 +00:00
|
|
|
|
let
|
2022-12-21 19:29:15 +00:00
|
|
|
|
|
2022-12-20 23:25:05 +00:00
|
|
|
|
catppuccin-alacritty = pkgs.fetchFromGitHub {
|
|
|
|
|
owner = "catppuccin";
|
|
|
|
|
repo = "alacritty";
|
|
|
|
|
rev = "3c808cbb4f9c87be43ba5241bc57373c793d2f17";
|
|
|
|
|
sha256 = "w9XVtEe7TqzxxGUCDUR9BFkzLZjG8XrplXJ3lX6f+x0=";
|
|
|
|
|
};
|
|
|
|
|
|
2022-12-24 15:58:49 +00:00
|
|
|
|
catppuccin-discord = pkgs.fetchFromGitHub {
|
|
|
|
|
owner = "catppuccin";
|
|
|
|
|
repo = "discord";
|
|
|
|
|
rev = "159aac939d8c18da2e184c6581f5e13896e11697";
|
|
|
|
|
sha256 = "sha256-cWpog52Ft4hqGh8sMWhiLUQp/XXipOPnSTG6LwUAGGA=";
|
|
|
|
|
};
|
|
|
|
|
|
2022-12-24 16:34:50 +00:00
|
|
|
|
catppuccin-bat = pkgs.fetchFromGitHub {
|
|
|
|
|
owner = "catppuccin";
|
|
|
|
|
repo = "bat";
|
|
|
|
|
rev = "ba4d16880d63e656acced2b7d4e034e4a93f74b1";
|
|
|
|
|
sha256 = "1g2r6j33f4zys853i1c5gnwcdbwb6xv5w6pazfdslxf69904lrg9";
|
|
|
|
|
};
|
|
|
|
|
|
2022-12-21 19:29:15 +00:00
|
|
|
|
in {
|
2022-12-23 14:56:01 +00:00
|
|
|
|
imports = [ ./hardware-configuration.nix ];
|
2022-12-19 22:35:54 +00:00
|
|
|
|
|
2022-12-20 22:58:57 +00:00
|
|
|
|
# networking
|
2022-12-20 10:33:21 +00:00
|
|
|
|
networking.hostName = "neodymium";
|
2022-12-20 22:58:57 +00:00
|
|
|
|
networking.networkmanager.enable = true;
|
2022-12-23 14:27:43 +00:00
|
|
|
|
networking.firewall.enable = true;
|
2022-12-23 14:32:11 +00:00
|
|
|
|
networking.firewall.allowedTCPPorts = [ ];
|
|
|
|
|
networking.firewall.allowedUDPPorts = [ ];
|
2022-12-20 10:33:21 +00:00
|
|
|
|
|
2022-12-20 18:02:03 +00:00
|
|
|
|
# use systemd-boot EFI boot loader
|
2022-12-19 22:35:54 +00:00
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
|
2022-12-23 14:28:01 +00:00
|
|
|
|
# clean /tmp at each boot
|
|
|
|
|
boot.cleanTmpDir = true;
|
|
|
|
|
|
2022-12-23 14:39:43 +00:00
|
|
|
|
# use latest kernel
|
|
|
|
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
|
|
|
|
2022-12-23 14:28:14 +00:00
|
|
|
|
# restrict nix command to sudoers
|
|
|
|
|
nix.allowedUsers = [ "@wheel" ];
|
|
|
|
|
|
2022-12-20 22:58:57 +00:00
|
|
|
|
# hardware
|
2022-12-20 18:02:03 +00:00
|
|
|
|
hardware = {
|
|
|
|
|
enableRedistributableFirmware = true;
|
|
|
|
|
opengl = {
|
|
|
|
|
enable = true;
|
|
|
|
|
driSupport = true;
|
|
|
|
|
};
|
|
|
|
|
};
|
2022-12-19 22:35:54 +00:00
|
|
|
|
|
2022-12-20 18:02:03 +00:00
|
|
|
|
# internationalisation
|
2022-12-19 22:35:54 +00:00
|
|
|
|
time.timeZone = "Europe/Paris";
|
2022-12-20 18:02:03 +00:00
|
|
|
|
i18n.defaultLocale = "en_DK.UTF-8";
|
2022-12-21 19:29:15 +00:00
|
|
|
|
console.keyMap = "fr";
|
2022-12-19 22:35:54 +00:00
|
|
|
|
|
2022-12-20 22:58:57 +00:00
|
|
|
|
# fonts
|
2022-12-19 22:35:54 +00:00
|
|
|
|
fonts.fonts = with pkgs; [
|
2022-12-21 17:41:57 +00:00
|
|
|
|
noto-fonts
|
|
|
|
|
noto-fonts-cjk
|
|
|
|
|
noto-fonts-extra
|
|
|
|
|
noto-fonts-emoji
|
|
|
|
|
fira-code
|
|
|
|
|
fira-code-symbols
|
2022-12-19 22:35:54 +00:00
|
|
|
|
(nerdfonts.override { fonts = [ "FiraCode" ]; })
|
|
|
|
|
];
|
|
|
|
|
|
2022-12-20 22:58:57 +00:00
|
|
|
|
# audio
|
2022-12-19 22:35:54 +00:00
|
|
|
|
services.pipewire = {
|
|
|
|
|
enable = true;
|
|
|
|
|
alsa.enable = true;
|
|
|
|
|
pulse.enable = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
services.dbus.enable = true;
|
|
|
|
|
xdg.portal = {
|
|
|
|
|
enable = true;
|
|
|
|
|
wlr.enable = true;
|
2022-12-21 19:29:15 +00:00
|
|
|
|
extraPortals = [ pkgs.xdg-desktop-portal-gtk pkgs.xdg-desktop-portal-wlr ];
|
2022-12-19 22:35:54 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
programs.light.enable = true;
|
|
|
|
|
|
2022-12-20 11:40:34 +00:00
|
|
|
|
users.mutableUsers = false;
|
2022-12-19 22:35:54 +00:00
|
|
|
|
users.users.laurent = {
|
|
|
|
|
isNormalUser = true;
|
2022-12-20 11:40:34 +00:00
|
|
|
|
initialPassword = "laurent";
|
|
|
|
|
extraGroups = [ "wheel" "video" ];
|
2022-12-20 15:17:00 +00:00
|
|
|
|
shell = pkgs.zsh;
|
2022-12-20 11:40:34 +00:00
|
|
|
|
};
|
|
|
|
|
home-manager.users.laurent = {
|
|
|
|
|
home.stateVersion = "22.11";
|
|
|
|
|
home.packages = with pkgs; [
|
2022-12-20 15:17:00 +00:00
|
|
|
|
duf
|
2022-12-19 22:58:32 +00:00
|
|
|
|
tmux
|
|
|
|
|
htop
|
|
|
|
|
rsync
|
|
|
|
|
pwgen
|
2022-12-19 22:35:54 +00:00
|
|
|
|
neovim
|
2022-12-20 22:58:57 +00:00
|
|
|
|
|
2022-12-21 13:02:07 +00:00
|
|
|
|
dconf
|
|
|
|
|
|
2022-12-19 22:35:54 +00:00
|
|
|
|
baobab
|
2022-12-19 22:58:32 +00:00
|
|
|
|
pavucontrol
|
|
|
|
|
|
2022-12-20 14:04:29 +00:00
|
|
|
|
grim
|
|
|
|
|
mako
|
|
|
|
|
slurp
|
|
|
|
|
waybar
|
|
|
|
|
pamixer
|
2022-12-19 22:35:54 +00:00
|
|
|
|
swaylock
|
|
|
|
|
swayidle
|
|
|
|
|
wl-clipboard
|
2022-12-20 11:40:34 +00:00
|
|
|
|
|
|
|
|
|
mpv
|
|
|
|
|
feh
|
|
|
|
|
keepassxc
|
|
|
|
|
x2goclient
|
|
|
|
|
thunderbird
|
|
|
|
|
element-desktop
|
2022-12-21 14:13:52 +00:00
|
|
|
|
libreoffice-fresh
|
2022-12-19 22:35:54 +00:00
|
|
|
|
];
|
|
|
|
|
|
2022-12-20 14:25:41 +00:00
|
|
|
|
home.pointerCursor = {
|
|
|
|
|
name = "Catppuccin-Mocha-Dark-Cursors";
|
|
|
|
|
package = pkgs.catppuccin-cursors.mochaDark;
|
|
|
|
|
size = 32;
|
2022-12-20 23:45:38 +00:00
|
|
|
|
gtk.enable = true;
|
|
|
|
|
x11.enable = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
gtk = {
|
|
|
|
|
enable = true;
|
|
|
|
|
font = {
|
|
|
|
|
name = "Inter";
|
|
|
|
|
package = pkgs.inter;
|
|
|
|
|
size = 10;
|
|
|
|
|
};
|
|
|
|
|
iconTheme = {
|
|
|
|
|
name = "Papirus-Dark";
|
|
|
|
|
package = pkgs.papirus-icon-theme;
|
|
|
|
|
};
|
|
|
|
|
theme = {
|
|
|
|
|
name = "Catppuccin-Mocha-Standard-Blue-Dark";
|
|
|
|
|
package = pkgs.catppuccin-gtk;
|
2022-12-20 14:25:41 +00:00
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2022-12-20 15:17:00 +00:00
|
|
|
|
programs.zsh = {
|
|
|
|
|
enable = true;
|
|
|
|
|
enableAutosuggestions = true;
|
|
|
|
|
enableSyntaxHighlighting = true;
|
|
|
|
|
enableCompletion = true;
|
|
|
|
|
sessionVariables = {
|
|
|
|
|
MANPAGER = "nvim +Man!";
|
|
|
|
|
VISUAL = "nvim";
|
|
|
|
|
EDITOR = "nvim";
|
|
|
|
|
};
|
2022-12-24 16:58:20 +00:00
|
|
|
|
# shellAliases = {
|
|
|
|
|
# cat = "bat";
|
|
|
|
|
# df = "duf";
|
|
|
|
|
# };
|
2022-12-20 15:17:00 +00:00
|
|
|
|
history = {
|
|
|
|
|
size = 1000000000;
|
|
|
|
|
path = "$HOME/.zsh_history";
|
|
|
|
|
extended = true;
|
|
|
|
|
};
|
2022-12-21 21:37:21 +00:00
|
|
|
|
loginExtra = ''
|
|
|
|
|
if [[ "$(tty)" == "/dev/tty1" ]]; then
|
|
|
|
|
exec sway
|
|
|
|
|
fi
|
|
|
|
|
'';
|
2022-12-20 22:54:25 +00:00
|
|
|
|
initExtra = ''
|
|
|
|
|
bindkey -e
|
|
|
|
|
bindkey "^[[1;5C" forward-word
|
|
|
|
|
bindkey "^[[1;5D" backward-word
|
|
|
|
|
bindkey "^[[1;3C" forward-word
|
|
|
|
|
bindkey "^[[1;3D" backward-word
|
|
|
|
|
bindkey '^H' backward-kill-word
|
|
|
|
|
bindkey '5~' kill-word
|
2022-12-21 20:03:18 +00:00
|
|
|
|
eval "$(direnv hook zsh)"
|
2022-12-20 22:54:25 +00:00
|
|
|
|
'';
|
2022-12-20 15:17:00 +00:00
|
|
|
|
plugins = [
|
2022-12-20 22:54:25 +00:00
|
|
|
|
{
|
|
|
|
|
name = "powerlevel10k";
|
|
|
|
|
src = pkgs.zsh-powerlevel10k;
|
|
|
|
|
file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
name = "powerlevel10k-config";
|
2022-12-21 19:29:15 +00:00
|
|
|
|
src = lib.cleanSource ./.;
|
2022-12-20 22:54:25 +00:00
|
|
|
|
file = ".p10k.zsh";
|
|
|
|
|
}
|
2022-12-20 15:17:00 +00:00
|
|
|
|
{
|
|
|
|
|
name = "zsh-nix-shell";
|
|
|
|
|
file = "nix-shell.plugin.zsh";
|
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
|
owner = "chisui";
|
|
|
|
|
repo = "zsh-nix-shell";
|
|
|
|
|
rev = "v0.5.0";
|
|
|
|
|
sha256 = "0za4aiwwrlawnia4f29msk822rj9bgcygw6a8a6iikiwzjjz0g91";
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
|
2022-12-21 21:37:21 +00:00
|
|
|
|
programs.direnv = { # TODO: use github:numtide/devshell ?
|
2022-12-21 20:03:18 +00:00
|
|
|
|
enable = true;
|
|
|
|
|
nix-direnv.enable = true;
|
|
|
|
|
};
|
|
|
|
|
|
2022-12-24 15:58:49 +00:00
|
|
|
|
programs.webcord = {
|
|
|
|
|
enable = true;
|
|
|
|
|
themes = {
|
|
|
|
|
CatpuccinMocha = "${catppuccin-discord}/themes/mocha.theme.css";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2022-12-20 11:40:34 +00:00
|
|
|
|
programs.git = {
|
|
|
|
|
enable = true;
|
|
|
|
|
userName = "Laureηt";
|
|
|
|
|
userEmail = "laurent@fainsin.bzh";
|
|
|
|
|
signing = {
|
|
|
|
|
signByDefault = true;
|
2022-12-21 19:29:15 +00:00
|
|
|
|
key =
|
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINTvwXCT99s1EwOCeGQ28jyCAH/RBoLZza9k5I7wWdEu laurent@neodymium";
|
2022-12-20 11:40:34 +00:00
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2022-12-24 16:34:50 +00:00
|
|
|
|
programs.bat = {
|
|
|
|
|
enable = true;
|
|
|
|
|
themes = {
|
|
|
|
|
catppuccin =
|
|
|
|
|
builtins.readFile "${catppuccin-bat}/Catppuccin-mocha.tmTheme";
|
|
|
|
|
};
|
|
|
|
|
config.theme = "catppuccin";
|
2022-12-24 16:58:20 +00:00
|
|
|
|
extraPackages = with pkgs.bat-extras; [ batman ];
|
|
|
|
|
};
|
|
|
|
|
programs.zsh.shellAliases = {
|
|
|
|
|
cat = "bat";
|
|
|
|
|
man = "batman";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
programs.exa = { enable = true; };
|
|
|
|
|
programs.zsh.shellAliases = {
|
|
|
|
|
l = "exa -l -h -g --icons --git --time-style=long-iso";
|
|
|
|
|
ls = "exa -l -h -g --icons --git --time-style=long-iso --grid";
|
|
|
|
|
ll = "exa -l -h -g --icons --grid --git --time-style=long-iso -a";
|
2022-12-24 16:34:50 +00:00
|
|
|
|
};
|
|
|
|
|
|
2022-12-20 23:25:05 +00:00
|
|
|
|
programs.alacritty = {
|
|
|
|
|
enable = true;
|
|
|
|
|
settings = {
|
|
|
|
|
import = [ "${catppuccin-alacritty}/catppuccin-mocha.yml" ];
|
|
|
|
|
window.opacity = 0.825;
|
2022-12-21 18:51:08 +00:00
|
|
|
|
font = {
|
|
|
|
|
normal.family = "FiraCode Nerd Font Mono";
|
|
|
|
|
size = 9.5;
|
|
|
|
|
};
|
2022-12-20 23:25:05 +00:00
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2022-12-20 18:04:02 +00:00
|
|
|
|
programs.librewolf = {
|
|
|
|
|
enable = true;
|
|
|
|
|
settings = {
|
|
|
|
|
"privacy.clearOnShutdown.history" = false;
|
|
|
|
|
"privacy.clearOnShutdown.downloads" = false;
|
|
|
|
|
"privacy.donottrackheader.enabled" = true;
|
2022-12-23 15:30:53 +00:00
|
|
|
|
"browser.ctrlTab.sortByRecentlyUsed" = true; # change Ctrl+Tab behaviour
|
2022-12-20 18:04:02 +00:00
|
|
|
|
"general.autoScroll" = true;
|
2022-12-23 15:30:53 +00:00
|
|
|
|
"pdfjs.viewerCssTheme" = 2; # dark theme for pdf viewer
|
|
|
|
|
"browser.startup.page" = 3; # always restore tabs
|
2022-12-20 18:04:02 +00:00
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2022-12-23 19:54:01 +00:00
|
|
|
|
programs.vscode = {
|
|
|
|
|
enable = true;
|
|
|
|
|
package = pkgs.vscodium;
|
|
|
|
|
extensions = with pkgs.vscode-extensions; [
|
|
|
|
|
bbenoist.nix
|
|
|
|
|
brettm12345.nixfmt-vscode
|
|
|
|
|
arrterian.nix-env-selector
|
|
|
|
|
|
|
|
|
|
eamodio.gitlens
|
|
|
|
|
github.copilot
|
|
|
|
|
|
|
|
|
|
editorconfig.editorconfig
|
|
|
|
|
yzhang.markdown-all-in-one
|
|
|
|
|
|
|
|
|
|
catppuccin.catppuccin-vsc
|
|
|
|
|
file-icons.file-icons
|
|
|
|
|
];
|
|
|
|
|
userSettings = {
|
|
|
|
|
"editor.fontFamily" = "'FiraCode Nerd Font Mono', 'Noto Color Emoji'";
|
|
|
|
|
"editor.fontLigatures" = true;
|
|
|
|
|
"editor.formatOnSave" = true;
|
|
|
|
|
"git.autofetch" = true;
|
|
|
|
|
"git.confirmSync" = false;
|
|
|
|
|
"git.enableSmartCommit" = true;
|
|
|
|
|
"terminal.integrated.fontFamily" =
|
|
|
|
|
"'FiraCode Nerd Font Mono', 'Noto Color Emoji'";
|
|
|
|
|
"window.menuBarVisibility" = "toggle";
|
|
|
|
|
"window.zoomLevel" = -0.25;
|
|
|
|
|
"workbench.colorTheme" = "Catppuccin Mocha";
|
|
|
|
|
"workbench.editor.untitled.hint" = "hidden";
|
|
|
|
|
"workbench.iconTheme" = "file-icons";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2022-12-20 11:40:34 +00:00
|
|
|
|
wayland.windowManager.sway = {
|
|
|
|
|
enable = true;
|
|
|
|
|
config = rec {
|
|
|
|
|
modifier = "Mod4";
|
|
|
|
|
terminal = "alacritty";
|
|
|
|
|
input = {
|
|
|
|
|
"type:touchpad" = {
|
|
|
|
|
dwt = "disable";
|
|
|
|
|
tap = "enabled";
|
|
|
|
|
natural_scroll = "disabled";
|
|
|
|
|
middle_emulation = "enabled";
|
|
|
|
|
};
|
|
|
|
|
"type:keyboard" = {
|
|
|
|
|
xkb_numlock = "enabled";
|
|
|
|
|
xkb_layout = "fr";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
output = {
|
|
|
|
|
"*" = {
|
|
|
|
|
bg = "~/Pictures/wallpapers/kai-oberhauser-unsplash.jpg fill";
|
|
|
|
|
};
|
2022-12-20 14:04:29 +00:00
|
|
|
|
eDP-1 = {
|
|
|
|
|
mode = "1920x1080";
|
|
|
|
|
adaptive_sync = "on";
|
|
|
|
|
};
|
|
|
|
|
eDP-2 = {
|
|
|
|
|
mode = "1920x1080";
|
|
|
|
|
adaptive_sync = "on";
|
|
|
|
|
};
|
2022-12-21 19:29:15 +00:00
|
|
|
|
DP-1 = { disable = ""; };
|
2022-12-20 14:04:29 +00:00
|
|
|
|
};
|
|
|
|
|
fonts = {
|
|
|
|
|
names = [ "FiraCode" ];
|
|
|
|
|
size = 10.0;
|
2022-12-20 11:40:34 +00:00
|
|
|
|
};
|
2022-12-21 19:29:15 +00:00
|
|
|
|
bars = [{ command = "${pkgs.waybar}/bin/waybar"; }];
|
2022-12-20 14:04:29 +00:00
|
|
|
|
gaps = {
|
|
|
|
|
smartGaps = true;
|
|
|
|
|
inner = 5;
|
|
|
|
|
};
|
2022-12-21 19:29:15 +00:00
|
|
|
|
window = { border = 0; };
|
|
|
|
|
floating = { border = 0; };
|
|
|
|
|
focus = { followMouse = "no"; };
|
2022-12-20 14:04:29 +00:00
|
|
|
|
startup = [
|
|
|
|
|
{ command = "element-desktop"; }
|
|
|
|
|
{ command = "thunderbird"; }
|
|
|
|
|
{ command = "webcord"; }
|
2022-12-20 22:58:57 +00:00
|
|
|
|
{
|
2022-12-20 14:04:29 +00:00
|
|
|
|
command = ''
|
|
|
|
|
swayidle -w \
|
|
|
|
|
timeout 100 'swaylock -f --grace 3' \
|
|
|
|
|
timeout 130 'swaymsg "output * dpms off"' \
|
|
|
|
|
resume 'swaymsg "output * dpms on"' \
|
|
|
|
|
timeout 300 'systemctl suspend' \
|
|
|
|
|
before-sleep 'swaylock -f'
|
2022-12-20 22:58:57 +00:00
|
|
|
|
'';
|
2022-12-20 14:04:29 +00:00
|
|
|
|
}
|
2022-12-20 11:40:34 +00:00
|
|
|
|
];
|
2022-12-21 13:02:07 +00:00
|
|
|
|
assigns = {
|
2022-12-24 17:05:03 +00:00
|
|
|
|
"8" = [{ class = "^WebCord$"; }];
|
2022-12-21 13:02:07 +00:00
|
|
|
|
"9" = [{ class = "^Element$"; }];
|
2022-12-23 15:04:52 +00:00
|
|
|
|
"10" = [{ app_id = "thunderbird"; }];
|
2022-12-21 13:02:07 +00:00
|
|
|
|
};
|
2022-12-20 11:40:34 +00:00
|
|
|
|
keybindings = {
|
|
|
|
|
# Start a terminal
|
|
|
|
|
"${modifier}+Return" = "exec ${terminal}";
|
2022-12-20 14:04:29 +00:00
|
|
|
|
# Kill focused window
|
|
|
|
|
"${modifier}+q" = "kill";
|
|
|
|
|
# Reload the configuration file
|
|
|
|
|
"${modifier}+twosuperior" = "reload";
|
|
|
|
|
# Exit sway (logs you out of your Wayland session)
|
2022-12-21 19:29:15 +00:00
|
|
|
|
"${modifier}+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'";
|
2022-12-20 14:04:29 +00:00
|
|
|
|
# Lock
|
|
|
|
|
"${modifier}+Delete" = "exec swaylock -f";
|
|
|
|
|
|
|
|
|
|
# Screenshot whole screen
|
|
|
|
|
"Print" = "exec grim `date +'%Y-%m-%dT%H:%M:%S'`.png";
|
|
|
|
|
# Screenshot whole screen to clipboard
|
|
|
|
|
"Shift+Print" = "exec grim - | wl-copy -t 'image/png'";
|
|
|
|
|
# Screenshot area
|
2022-12-21 19:29:15 +00:00
|
|
|
|
"${modifier}+Print" =
|
2022-12-21 21:44:07 +00:00
|
|
|
|
"exec slurp -d | grim -g - `date +'%Y-%m-%dT%H:%M:%S'`.png";
|
2022-12-20 14:04:29 +00:00
|
|
|
|
# Screenshot area to clipboard
|
2022-12-21 19:29:15 +00:00
|
|
|
|
"${modifier}+Shift+Print" =
|
2022-12-24 17:18:59 +00:00
|
|
|
|
"exec slurp -d | grim -g - - | wl-copy -t 'image/png'";
|
2022-12-20 14:04:29 +00:00
|
|
|
|
|
|
|
|
|
# backlight
|
|
|
|
|
"XF86MonBrightnessUp" = "exec light -A 5";
|
|
|
|
|
"XF86MonBrightnessDown" = "exec light -U 5";
|
|
|
|
|
|
|
|
|
|
# audio
|
|
|
|
|
"XF86AudioMute" = "exec pamixer --sink 0 -t";
|
|
|
|
|
"XF86AudioRaiseVolume" = "exec pamixer -i 5";
|
|
|
|
|
"XF86AudioLowerVolume" = "exec pamixer -d 5";
|
|
|
|
|
"XF86AudioMicMute" = "exec pamixer --source 0 -t";
|
|
|
|
|
|
|
|
|
|
# split horizontally or vertically
|
|
|
|
|
"${modifier}+b" = "splith";
|
|
|
|
|
"${modifier}+v" = "splitv";
|
|
|
|
|
# Make the current focus fullscreen
|
|
|
|
|
"${modifier}+f" = "fullscreen";
|
|
|
|
|
# Toggle the current focus between tiling and floating mode
|
|
|
|
|
"${modifier}+s" = "floating toggle";
|
|
|
|
|
|
|
|
|
|
# Move your focus around
|
|
|
|
|
"${modifier}+Left" = "focus left";
|
|
|
|
|
"${modifier}+Down" = "focus down";
|
|
|
|
|
"${modifier}+Up" = "focus up";
|
|
|
|
|
"${modifier}+Right" = "focus right";
|
|
|
|
|
# Move the focused window around
|
|
|
|
|
"${modifier}+Shift+Left" = "move left";
|
|
|
|
|
"${modifier}+Shift+Down" = "move down";
|
|
|
|
|
"${modifier}+Shift+Up" = "move up";
|
|
|
|
|
"${modifier}+Shift+Right" = "move right";
|
|
|
|
|
|
2022-12-20 11:40:34 +00:00
|
|
|
|
# Switch to workspace
|
|
|
|
|
"${modifier}+ampersand" = "workspace 1";
|
|
|
|
|
"${modifier}+eacute" = "workspace 2";
|
|
|
|
|
"${modifier}+quotedbl" = "workspace 3";
|
|
|
|
|
"${modifier}+apostrophe" = "workspace 4";
|
|
|
|
|
"${modifier}+parenleft" = "workspace 5";
|
|
|
|
|
"${modifier}+minus" = "workspace 6";
|
|
|
|
|
"${modifier}+egrave" = "workspace 7";
|
|
|
|
|
"${modifier}+underscore" = "workspace 8";
|
|
|
|
|
"${modifier}+ccedilla" = "workspace 9";
|
|
|
|
|
"${modifier}+agrave" = "workspace 10";
|
|
|
|
|
"${modifier}+KP_1" = "workspace 11";
|
|
|
|
|
"${modifier}+KP_2" = "workspace 12";
|
|
|
|
|
"${modifier}+KP_3" = "workspace 13";
|
|
|
|
|
"${modifier}+KP_4" = "workspace 14";
|
|
|
|
|
"${modifier}+KP_5" = "workspace 15";
|
|
|
|
|
"${modifier}+KP_6" = "workspace 16";
|
|
|
|
|
"${modifier}+KP_7" = "workspace 17";
|
|
|
|
|
"${modifier}+KP_8" = "workspace 18";
|
|
|
|
|
"${modifier}+KP_9" = "workspace 19";
|
|
|
|
|
"${modifier}+KP_0" = "workspace 20";
|
|
|
|
|
"${modifier}+KP_End" = "workspace 11";
|
|
|
|
|
"${modifier}+KP_Down" = "workspace 12";
|
|
|
|
|
"${modifier}+KP_Next" = "workspace 13";
|
|
|
|
|
"${modifier}+KP_Left" = "workspace 14";
|
|
|
|
|
"${modifier}+KP_Begin" = "workspace 15";
|
|
|
|
|
"${modifier}+KP_Right" = "workspace 16";
|
|
|
|
|
"${modifier}+KP_Home" = "workspace 17";
|
|
|
|
|
"${modifier}+KP_Up" = "workspace 18";
|
|
|
|
|
"${modifier}+KP_Prior" = "workspace 19";
|
|
|
|
|
"${modifier}+KP_Insert" = "workspace 20";
|
2022-12-20 22:58:57 +00:00
|
|
|
|
|
2022-12-20 11:40:34 +00:00
|
|
|
|
# Move focused container to workspace
|
2022-12-21 19:29:15 +00:00
|
|
|
|
"${modifier}+Shift+ampersand" =
|
|
|
|
|
"move container to workspace number 1";
|
2022-12-20 11:40:34 +00:00
|
|
|
|
"${modifier}+Shift+eacute" = "move container to workspace number 2";
|
|
|
|
|
"${modifier}+Shift+quotedbl" = "move container to workspace number 3";
|
2022-12-21 19:29:15 +00:00
|
|
|
|
"${modifier}+Shift+apostrophe" =
|
|
|
|
|
"move container to workspace number 4";
|
|
|
|
|
"${modifier}+Shift+parenleft" =
|
|
|
|
|
"move container to workspace number 5";
|
2022-12-20 11:40:34 +00:00
|
|
|
|
"${modifier}+Shift+minus" = "move container to workspace number 6";
|
|
|
|
|
"${modifier}+Shift+egrave" = "move container to workspace number 7";
|
2022-12-21 19:29:15 +00:00
|
|
|
|
"${modifier}+Shift+underscore" =
|
|
|
|
|
"move container to workspace number 8";
|
2022-12-20 11:40:34 +00:00
|
|
|
|
"${modifier}+Shift+ccedilla" = "move container to workspace number 9";
|
|
|
|
|
"${modifier}+Shift+agrave" = "move container to workspace number 10";
|
|
|
|
|
"${modifier}+Shift+KP_End" = "move container to workspace number 11";
|
|
|
|
|
"${modifier}+Shift+KP_Down" = "move container to workspace number 12";
|
|
|
|
|
"${modifier}+Shift+KP_Next" = "move container to workspace number 13";
|
|
|
|
|
"${modifier}+Shift+KP_Left" = "move container to workspace number 14";
|
2022-12-21 19:29:15 +00:00
|
|
|
|
"${modifier}+Shift+KP_Begin" =
|
|
|
|
|
"move container to workspace number 15";
|
|
|
|
|
"${modifier}+Shift+KP_Right" =
|
|
|
|
|
"move container to workspace number 16";
|
2022-12-20 11:40:34 +00:00
|
|
|
|
"${modifier}+Shift+KP_Home" = "move container to workspace number 17";
|
|
|
|
|
"${modifier}+Shift+KP_Up" = "move container to workspace number 18";
|
2022-12-21 19:29:15 +00:00
|
|
|
|
"${modifier}+Shift+KP_Prior" =
|
|
|
|
|
"move container to workspace number 19";
|
|
|
|
|
"${modifier}+Shift+KP_Insert" =
|
|
|
|
|
"move container to workspace number 20";
|
2022-12-20 11:40:34 +00:00
|
|
|
|
};
|
2022-12-20 14:04:29 +00:00
|
|
|
|
workspaceOutputAssign = [
|
|
|
|
|
{
|
|
|
|
|
workspace = "1";
|
|
|
|
|
output = "eDP-1 eDP-2";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
workspace = "2";
|
|
|
|
|
output = "eDP-1 eDP-2";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
workspace = "3";
|
|
|
|
|
output = "eDP-1 eDP-2";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
workspace = "4";
|
|
|
|
|
output = "eDP-1 eDP-2";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
workspace = "5";
|
|
|
|
|
output = "eDP-1 eDP-2";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
workspace = "6";
|
|
|
|
|
output = "eDP-1 eDP-2";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
workspace = "7";
|
|
|
|
|
output = "eDP-1 eDP-2";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
workspace = "8";
|
|
|
|
|
output = "eDP-1 eDP-2";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
workspace = "9";
|
|
|
|
|
output = "eDP-1 eDP-2";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
workspace = "10";
|
|
|
|
|
output = "eDP-1 eDP-2";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
workspace = "11";
|
|
|
|
|
output = "DP-1";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
workspace = "12";
|
|
|
|
|
output = "DP-1";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
workspace = "13";
|
|
|
|
|
output = "DP-1";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
workspace = "14";
|
|
|
|
|
output = "DP-1";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
workspace = "15";
|
|
|
|
|
output = "DP-1";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
workspace = "16";
|
|
|
|
|
output = "DP-1";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
workspace = "17";
|
|
|
|
|
output = "DP-1";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
workspace = "18";
|
|
|
|
|
output = "DP-1";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
workspace = "19";
|
|
|
|
|
output = "DP-1";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
workspace = "20";
|
|
|
|
|
output = "DP-1";
|
|
|
|
|
}
|
|
|
|
|
];
|
2022-12-20 11:40:34 +00:00
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
2022-12-20 10:33:21 +00:00
|
|
|
|
|
2022-12-20 18:02:03 +00:00
|
|
|
|
# enable ssh agent
|
2022-12-20 10:33:21 +00:00
|
|
|
|
programs.ssh.startAgent = true;
|
2022-12-19 22:35:54 +00:00
|
|
|
|
|
2022-12-20 18:02:03 +00:00
|
|
|
|
# enable polkit
|
2022-12-19 22:35:54 +00:00
|
|
|
|
security.polkit.enable = true;
|
|
|
|
|
|
2022-12-20 18:02:03 +00:00
|
|
|
|
# enable unfree
|
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
|
|
|
|
|
|
# experimental features
|
|
|
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
|
|
2022-12-19 22:35:54 +00:00
|
|
|
|
# This value determines the NixOS release from which the default
|
|
|
|
|
# settings for stateful data, like file locations and database versions
|
|
|
|
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
|
|
|
|
# this value at the release version of the first install of this system.
|
|
|
|
|
# Before changing this value read the documentation for this option
|
|
|
|
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
|
|
|
|
system.stateVersion = "22.11"; # Did you read the comment?
|
|
|
|
|
}
|