mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
swayidle, gammastep, backups, base16 wip, weechat, xdg
This commit is contained in:
parent
11fe66c3db
commit
22cf8ab600
29 changed files with 296 additions and 79 deletions
|
|
@ -5,6 +5,7 @@
|
||||||
boot.loader.systemd-boot.configurationLimit = 8;
|
boot.loader.systemd-boot.configurationLimit = 8;
|
||||||
|
|
||||||
nixpkgs.config = { allowUnfree = true; };
|
nixpkgs.config = { allowUnfree = true; };
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
nixPath = [
|
nixPath = [
|
||||||
"nixpkgs=${sources.nixpkgs}"
|
"nixpkgs=${sources.nixpkgs}"
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,9 @@
|
||||||
./packages.nix
|
./packages.nix
|
||||||
./email.nix
|
./email.nix
|
||||||
./gpg.nix
|
./gpg.nix
|
||||||
|
./weechat.nix
|
||||||
./gtk.nix
|
./gtk.nix
|
||||||
./music.nix
|
./music.nix
|
||||||
|
./mpv.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
realName = "kat witch";
|
realName = "kat witch";
|
||||||
userName = "kat@kittywit.ch";
|
userName = "kat@kittywit.ch";
|
||||||
passwordCommand = ''
|
passwordCommand = ''
|
||||||
bitw -p gpg://${
|
${pkgs.arc.pkgs.rbw-bitw}/bin/bitw -p gpg://${
|
||||||
../../../private/files/bitw/master.gpg
|
../../../private/files/bitw/master.gpg
|
||||||
} get "kittywitch email"'';
|
} get "kittywitch email"'';
|
||||||
msmtp.enable = true;
|
msmtp.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -65,8 +65,6 @@ in {
|
||||||
userChrome = import ./userChrome.css.nix { profile = "lewd"; };
|
userChrome = import ./userChrome.css.nix { profile = "lewd"; };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
package =
|
|
||||||
pkgs.wrapFirefox pkgs.firefox-unwrapped { forceWayland = true; };
|
|
||||||
};
|
};
|
||||||
|
|
||||||
home.file.".config/tridactyl/tridactylrc".source = ./tridactylrc;
|
home.file.".config/tridactyl/tridactylrc".source = ./tridactylrc;
|
||||||
|
|
|
||||||
|
|
@ -7,19 +7,19 @@
|
||||||
font.name = witch.style.font.name;
|
font.name = witch.style.font.name;
|
||||||
settings = {
|
settings = {
|
||||||
font_size = witch.style.font.size;
|
font_size = witch.style.font.size;
|
||||||
background = witch.style.base16.color0;
|
# background = witch.style.base16.color0;
|
||||||
background_opacity = "0.9";
|
background_opacity = "0.95";
|
||||||
foreground = witch.style.base16.color7;
|
# foreground = witch.style.base16.color7;
|
||||||
selection_background = witch.style.base16.color7;
|
# selection_background = witch.style.base16.color7;
|
||||||
selection_foreground = witch.style.base16.color0;
|
# selection_foreground = witch.style.base16.color0;
|
||||||
url_color = witch.style.base16.color3;
|
# url_color = witch.style.base16.color3;
|
||||||
cursor = witch.style.base16.color7;
|
# cursor = witch.style.base16.color7;
|
||||||
active_border_color = "#75715e";
|
# active_border_color = "#75715e";
|
||||||
active_tab_background = "#9900ff";
|
# active_tab_background = "#9900ff";
|
||||||
active_tab_foreground = witch.style.base16.color7;
|
# active_tab_foreground = witch.style.base16.color7;
|
||||||
inactive_tab_background = "#3a3a3a";
|
# inactive_tab_background = "#3a3a3a";
|
||||||
inactive_tab_foreground = "#665577";
|
# inactive_tab_foreground = "#665577";
|
||||||
} // witch.style.base16;
|
}; # // witch.style.base16;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
15
config/profiles/gui/home/mpv.nix
Normal file
15
config/profiles/gui/home/mpv.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
{ config, lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
config = lib.mkIf config.deploy.profile.gui {
|
||||||
|
programs.mpv = {
|
||||||
|
enable = true;
|
||||||
|
config = {
|
||||||
|
profile = "gpu-hq";
|
||||||
|
gpu-context = "wayland";
|
||||||
|
vo = "gpu";
|
||||||
|
hwdec = "auto";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -39,6 +39,16 @@
|
||||||
media_library_primary_tag = "album_artist";
|
media_library_primary_tag = "album_artist";
|
||||||
search_engine_display_mode = "columns";
|
search_engine_display_mode = "columns";
|
||||||
};
|
};
|
||||||
|
bindings = [
|
||||||
|
{
|
||||||
|
key = "+";
|
||||||
|
command = "add";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "-";
|
||||||
|
command = "load";
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
programs.beets = {
|
programs.beets = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -56,6 +66,7 @@
|
||||||
};
|
};
|
||||||
services.mpd = {
|
services.mpd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = pkgs.mpd-youtube-dl;
|
||||||
network.startWhenNeeded = true;
|
network.startWhenNeeded = true;
|
||||||
musicDirectory = "/home/kat/media-share/music";
|
musicDirectory = "/home/kat/media-share/music";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,16 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
let
|
||||||
|
bitw = pkgs.writeShellScriptBin "bitw" ''
|
||||||
|
${pkgs.arc.pkgs.rbw-bitw}/bin/bitw -p gpg://${
|
||||||
|
../../../private/files/bitw/master.gpg
|
||||||
|
} "$@"'';
|
||||||
|
in {
|
||||||
config = lib.mkIf config.deploy.profile.gui {
|
config = lib.mkIf config.deploy.profile.gui {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
_1password
|
_1password
|
||||||
bitwarden
|
bitwarden
|
||||||
arc.pkgs.rbw-bitw
|
bitw
|
||||||
mpv
|
mpv
|
||||||
element-desktop
|
element-desktop
|
||||||
mumble
|
mumble
|
||||||
|
|
@ -13,6 +18,7 @@
|
||||||
niv
|
niv
|
||||||
feh
|
feh
|
||||||
duc
|
duc
|
||||||
|
exiftool
|
||||||
audacity
|
audacity
|
||||||
avidemux
|
avidemux
|
||||||
vlc
|
vlc
|
||||||
|
|
|
||||||
93
config/profiles/gui/home/weechat.nix
Normal file
93
config/profiles/gui/home/weechat.nix
Normal file
|
|
@ -0,0 +1,93 @@
|
||||||
|
{ config, pkgs, lib, superConfig, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
config = lib.mkIf config.deploy.profile.gui {
|
||||||
|
home.file = {
|
||||||
|
".local/share/weechat/sec.conf" = lib.mkIf config.deploy.profile.private {
|
||||||
|
source = "${../../../private/files/weechat/sec.conf}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
programs.weechat = {
|
||||||
|
enable = true;
|
||||||
|
init = lib.mkBefore ''
|
||||||
|
/server add freenode athame.kittywit.ch/5001 -ssl -autoconnect
|
||||||
|
/server add espernet athame.kittywit.ch/5001 -ssl -autoconnect
|
||||||
|
/matrix server add kat kittywit.ch
|
||||||
|
'';
|
||||||
|
packageUnwrapped = pkgs.unstable.weechat-unwrapped;
|
||||||
|
homeDirectory = "${config.xdg.dataHome}/weechat";
|
||||||
|
plugins.python = {
|
||||||
|
enable = true;
|
||||||
|
packages = [ "weechat-matrix" ];
|
||||||
|
};
|
||||||
|
scripts = with pkgs.weechatScripts; [
|
||||||
|
go
|
||||||
|
auto_away
|
||||||
|
autosort
|
||||||
|
colorize_nicks
|
||||||
|
unread_buffer
|
||||||
|
urlgrab
|
||||||
|
vimode-git
|
||||||
|
weechat-matrix
|
||||||
|
weechat-notify-send
|
||||||
|
];
|
||||||
|
config = {
|
||||||
|
weechat = {
|
||||||
|
look = { mouse = true; };
|
||||||
|
bar = {
|
||||||
|
buflist = { size_max = 24; };
|
||||||
|
nicklist = { size_max = 18; };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
urlgrab.default.copycmd = "${pkgs.wl-clipboard}/bin/wl-copy";
|
||||||
|
plugins.var.python.vimode.copy_clipboard_cmd = "wl-copy";
|
||||||
|
plugins.var.python.vimode.paste_clipboard_cmd = "wl-paste --no-newline";
|
||||||
|
plugins.var.python.notify_send.icon = "";
|
||||||
|
sec = {
|
||||||
|
crypt = {
|
||||||
|
passphrase_command = ''
|
||||||
|
${pkgs.rbw-bitw}/bin/bitw -p gpg://${
|
||||||
|
../../../private/files/bitw/master.gpg
|
||||||
|
} get "weechat"'';
|
||||||
|
hash_algo = "sha512";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
irc = {
|
||||||
|
look = { server_buffer = "independent"; };
|
||||||
|
server = {
|
||||||
|
freenode = {
|
||||||
|
address = "athame.kittywit.ch/5001";
|
||||||
|
password = "kat/freenode:\${sec.data.znc}";
|
||||||
|
ssl = true;
|
||||||
|
ssl_verify = false;
|
||||||
|
autoconnect = true;
|
||||||
|
};
|
||||||
|
espernet = {
|
||||||
|
address = "athame.kittywit.ch/5001";
|
||||||
|
password = "kat/espernet:\${sec.data.znc}";
|
||||||
|
ssl = true;
|
||||||
|
ssl_verify = false;
|
||||||
|
autoconnect = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
matrix = {
|
||||||
|
network = {
|
||||||
|
max_backlog_sync_events = 30;
|
||||||
|
lazy_load_room_users = true;
|
||||||
|
autoreconnect_delay_max = 5;
|
||||||
|
lag_min-show = 1000;
|
||||||
|
};
|
||||||
|
look = { server_buffer = "independent"; };
|
||||||
|
server.kat = {
|
||||||
|
address = "kittywit.ch";
|
||||||
|
device_name = "${superConfig.networking.hostName}/weechat";
|
||||||
|
username = "kat";
|
||||||
|
password = "\${sec.data.matrix}";
|
||||||
|
autoconnect = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
14
config/profiles/kat/home/base16.nix
Normal file
14
config/profiles/kat/home/base16.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
{ config, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
config = lib.mkIf config.deploy.profile.kat {
|
||||||
|
base16 = {
|
||||||
|
shell.enable = true;
|
||||||
|
schemes = [ "rebecca.rebecca" ];
|
||||||
|
};
|
||||||
|
# home.base16-shell = {
|
||||||
|
# enable = true;
|
||||||
|
# defaultTheme = "rebecca.rebecca";
|
||||||
|
# };
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -8,6 +8,7 @@
|
||||||
./kitty.nix
|
./kitty.nix
|
||||||
./tmux.nix
|
./tmux.nix
|
||||||
./secrets.nix
|
./secrets.nix
|
||||||
|
#./base16.nix
|
||||||
./xdg.nix
|
./xdg.nix
|
||||||
./ssh.nix
|
./ssh.nix
|
||||||
./packages.nix
|
./packages.nix
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
git-crypt
|
git-crypt
|
||||||
gitAndTools.gitRemoteGcrypt
|
gitAndTools.gitRemoteGcrypt
|
||||||
gitAndTools.gitAnnex
|
unstable.gitAndTools.gitAnnex
|
||||||
git-revise
|
git-revise
|
||||||
arc.pkgs.gitAndTools.git-annex-remote-b2
|
arc.pkgs.gitAndTools.git-annex-remote-b2
|
||||||
];
|
];
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
protocol.gcrypt.allow = "always";
|
protocol.gcrypt.allow = "always";
|
||||||
annex = {
|
annex = {
|
||||||
autocommit = false;
|
autocommit = false;
|
||||||
backend = "SHA256";
|
backend = "BLAKE2B512";
|
||||||
synccontent = true;
|
synccontent = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
home.sessionVariables.TERMINFO_DIRS = "${pkgs.kitty.terminfo.outPath}/share/terminfo";
|
home.sessionVariables.TERMINFO_DIRS =
|
||||||
|
"${pkgs.kitty.terminfo.outPath}/share/terminfo";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,6 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
config = lib.mkIf config.deploy.profile.kat {
|
config = lib.mkIf config.deploy.profile.kat {
|
||||||
home.packages = with pkgs; [ kitty.terminfo weechat ];
|
home.packages = with pkgs; [ kitty.terminfo ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,45 +10,48 @@
|
||||||
programs.tmux = {
|
programs.tmux = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
# start from 1
|
# start from 1
|
||||||
set -g base-index 1
|
set -g base-index 1
|
||||||
setw -g pane-base-index 1
|
setw -g pane-base-index 1
|
||||||
|
|
||||||
# proper title handling
|
# proper title handling
|
||||||
set -g set-titles on
|
set -g set-titles on
|
||||||
set -g set-titles-string "#T"
|
set -g set-titles-string "#T"
|
||||||
|
|
||||||
# modes
|
# 256 color
|
||||||
setw -g clock-mode-colour colour5
|
set -g default-terminal "screen-256color"
|
||||||
setw -g mode-style 'fg=colour1 bg=colour18 bold'
|
|
||||||
|
|
||||||
# panes
|
# modes
|
||||||
set -g pane-border-style 'fg=colour19 bg=colour0'
|
setw -g clock-mode-colour colour5
|
||||||
set -g pane-active-border-style 'bg=colour0 fg=colour9'
|
setw -g mode-style 'fg=colour1 bg=colour18 bold'
|
||||||
|
|
||||||
# statusbar
|
# panes
|
||||||
set -g status-position bottom
|
set -g pane-border-style 'fg=colour19 bg=colour0'
|
||||||
set -g status-justify left
|
set -g pane-active-border-style 'bg=colour0 fg=colour9'
|
||||||
set -g status-style 'bg=colour18 fg=colour137 dim'
|
|
||||||
set -g status-left '''
|
|
||||||
set -g status-right '#[fg=colour233,bg=colour19] %F #[fg=colour233,bg=colour8] %H:%M:%S %Z'
|
|
||||||
set -g status-right-length 50
|
|
||||||
set -g status-left-length 20
|
|
||||||
|
|
||||||
setw -g window-status-current-style 'fg=colour1 bg=colour19 bold'
|
# statusbar
|
||||||
setw -g window-status-current-format ' #I#[fg=colour249]:#[fg=colour255]#W#[fg=colour249]#F '
|
set -g status-position bottom
|
||||||
|
set -g status-justify left
|
||||||
|
set -g status-style 'bg=colour18 fg=colour137 dim'
|
||||||
|
set -g status-left '''
|
||||||
|
set -g status-right '#[fg=colour233,bg=colour19] %F #[fg=colour233,bg=colour8] %H:%M:%S %Z'
|
||||||
|
set -g status-right-length 50
|
||||||
|
set -g status-left-length 20
|
||||||
|
|
||||||
setw -g window-status-style 'fg=colour9 bg=colour18'
|
setw -g window-status-current-style 'fg=colour1 bg=colour19 bold'
|
||||||
setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F '
|
setw -g window-status-current-format ' #I#[fg=colour249]:#[fg=colour255]#W#[fg=colour249]#F '
|
||||||
|
|
||||||
setw -g window-status-bell-style 'fg=colour255 bg=colour1 bold'
|
setw -g window-status-style 'fg=colour9 bg=colour18'
|
||||||
|
setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F '
|
||||||
|
|
||||||
# messages
|
setw -g window-status-bell-style 'fg=colour255 bg=colour1 bold'
|
||||||
set -g message-style 'fg=colour232 bg=colour16 bold'
|
|
||||||
|
|
||||||
# mouse
|
# messages
|
||||||
set -g mouse on
|
set -g message-style 'fg=colour232 bg=colour16 bold'
|
||||||
'';
|
|
||||||
|
# mouse
|
||||||
|
set -g mouse on
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,8 @@
|
||||||
|
|
||||||
" colors
|
" colors
|
||||||
let base16colorspace=256
|
let base16colorspace=256
|
||||||
colorscheme base16-rebecca
|
"colorscheme base16-rebecca
|
||||||
|
colorscheme default
|
||||||
|
|
||||||
" notmuch!
|
" notmuch!
|
||||||
let g:notmuch_config_file='${config.xdg.configHome}/notmuch/notmuchrc'
|
let g:notmuch_config_file='${config.xdg.configHome}/notmuch/notmuchrc'
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,20 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
config = lib.mkIf config.deploy.profile.kat { xdg.enable = true; };
|
config = lib.mkIf config.deploy.profile.kat {
|
||||||
|
xdg = {
|
||||||
|
enable = true;
|
||||||
|
userDirs = {
|
||||||
|
enable = true;
|
||||||
|
pictures = "$HOME/media";
|
||||||
|
videos = "$HOME/media/videos";
|
||||||
|
documents = "$HOME/docs";
|
||||||
|
download = "$HOME/downloads";
|
||||||
|
desktop = "$HOME/tmp";
|
||||||
|
templates = "$HOME/tmp";
|
||||||
|
publicShare = "$HOME/shared";
|
||||||
|
music = "$HOME/media-share/music";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
lla = "exa -lga";
|
lla = "exa -lga";
|
||||||
};
|
};
|
||||||
initExtra = ''
|
initExtra = ''
|
||||||
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=3,bold"
|
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=3,bold"
|
||||||
'';
|
'';
|
||||||
plugins = [{
|
plugins = [{
|
||||||
name = "zsh-autosuggestions";
|
name = "zsh-autosuggestions";
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,8 @@
|
||||||
];
|
];
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.zsh;
|
||||||
extraGroups = [ "wheel" "video" ];
|
extraGroups = [ "wheel" "video" ];
|
||||||
|
hashedPassword =
|
||||||
|
"$6$i28yOXoo$/WokLdKds5ZHtJHcuyGrH2WaDQQk/2Pj0xRGLgS8UcmY2oMv3fw2j/85PRpsJJwCB2GBRYRK5LlvdTleHd3mB.";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{ config, pkgs, sources, ... }:
|
{ config, pkgs, sources, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [ ./waybar ./mako.nix ./sway.nix ];
|
imports = [ ./waybar ./mako.nix ./sway.nix ./swayidle.nix ./gammastep.nix ];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
11
config/profiles/sway/home/gammastep.nix
Normal file
11
config/profiles/sway/home/gammastep.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
{ config, lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
config = lib.mkIf config.deploy.profile.sway {
|
||||||
|
services.gammastep = {
|
||||||
|
enable = true;
|
||||||
|
latitude = "51.5074";
|
||||||
|
longitude = "0.1278";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
## See `man 1 grimshot` or `grimshot usage` for further details.
|
## See `man 1 grimshot` or `grimshot usage` for further details.
|
||||||
|
|
||||||
getTargetDirectory() {
|
getTargetDirectory() {
|
||||||
echo "/home/kat/scrots"
|
echo "/home/kat/media/scrots"
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ "$1" = "--notify" ]; then
|
if [ "$1" = "--notify" ]; then
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,22 @@
|
||||||
|
|
||||||
home.packages = with pkgs; [ grim slurp wl-clipboard jq ];
|
home.packages = with pkgs; [ grim slurp wl-clipboard jq ];
|
||||||
|
|
||||||
|
programs.zsh.profileExtra = ''
|
||||||
|
# If running from tty1 start sway
|
||||||
|
if [ "$(tty)" = "/dev/tty1" ]; then
|
||||||
|
systemctl --user unset-environment \
|
||||||
|
SWAYSOCK \
|
||||||
|
I3SOCK \
|
||||||
|
WAYLAND_DISPLAY \
|
||||||
|
DISPLAY \
|
||||||
|
IN_NIX_SHELL \
|
||||||
|
__HM_SESS_VARS_SOURCED \
|
||||||
|
GPG_TTY \
|
||||||
|
NIX_PATH \
|
||||||
|
SHLVL
|
||||||
|
exec env --unset=SHLVL systemd-cat -t sway -- sway
|
||||||
|
fi
|
||||||
|
'';
|
||||||
wayland.windowManager.sway = {
|
wayland.windowManager.sway = {
|
||||||
enable = true;
|
enable = true;
|
||||||
config = let
|
config = let
|
||||||
|
|
@ -76,10 +92,6 @@
|
||||||
always = true;
|
always = true;
|
||||||
}
|
}
|
||||||
{ command = "mkchromecast -t"; }
|
{ command = "mkchromecast -t"; }
|
||||||
{
|
|
||||||
command =
|
|
||||||
"${pkgs.swayidle}/bin/swayidle -w before-sleep '${lockCommand}'";
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
|
|
||||||
window = {
|
window = {
|
||||||
|
|
|
||||||
26
config/profiles/sway/home/swayidle.nix
Normal file
26
config/profiles/sway/home/swayidle.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
config = lib.mkIf config.deploy.profile.sway {
|
||||||
|
systemd.user.services.swayidle = {
|
||||||
|
Unit = {
|
||||||
|
Description = "swayidle";
|
||||||
|
Documentation = [ "man:swayidle(1)" ];
|
||||||
|
PartOf = [ "graphical-session.target" ];
|
||||||
|
};
|
||||||
|
Service = {
|
||||||
|
Type = "simple";
|
||||||
|
ExecStart = ''
|
||||||
|
${pkgs.swayidle}/bin/swayidle -w \
|
||||||
|
timeout 300 '${pkgs.swaylock}/bin/swaylock' \
|
||||||
|
timeout 600 'swaymsg "output * dpms off"' \
|
||||||
|
resume 'swaymsg "output * dpms on"' \
|
||||||
|
before-sleep '${pkgs.swaylock}/bin/swaylock'
|
||||||
|
'';
|
||||||
|
RestartSec = 3;
|
||||||
|
Restart = "always";
|
||||||
|
};
|
||||||
|
Install = { WantedBy = [ "sway-session.target" ]; };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -18,6 +18,7 @@
|
||||||
"temperature"
|
"temperature"
|
||||||
"backlight"
|
"backlight"
|
||||||
"battery"
|
"battery"
|
||||||
|
"idle_inhibitor"
|
||||||
#"mpd"
|
#"mpd"
|
||||||
"network"
|
"network"
|
||||||
"custom/weather"
|
"custom/weather"
|
||||||
|
|
@ -41,12 +42,20 @@
|
||||||
};
|
};
|
||||||
cpu = { format = " {usage}%"; };
|
cpu = { format = " {usage}%"; };
|
||||||
#mpd = {
|
#mpd = {
|
||||||
# format = " {album} - {artist} - {title}";
|
# format = " {albumArtist} - {title}";
|
||||||
# format-stopped = "ﱙ";
|
# format-stopped = "ﱙ";
|
||||||
# format-paused = " Paused";
|
# format-paused = " Paused";
|
||||||
|
# title-len = 16;
|
||||||
#};
|
#};
|
||||||
memory = { format = " {percentage}%"; };
|
memory = { format = " {percentage}%"; };
|
||||||
temperature = { format = "﨎 {temperatureC}°C"; };
|
temperature = { format = "﨎 {temperatureC}°C"; };
|
||||||
|
idle_inhibitor = {
|
||||||
|
format = "{icon}";
|
||||||
|
format-icons = {
|
||||||
|
activated = "";
|
||||||
|
deactivated = "";
|
||||||
|
};
|
||||||
|
};
|
||||||
backlight = {
|
backlight = {
|
||||||
format = "{icon} {percent}%";
|
format = "{icon} {percent}%";
|
||||||
format-icons = [ "" "" ];
|
format-icons = [ "" "" ];
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
min-height: 14px
|
min-height: 14px
|
||||||
}
|
}
|
||||||
|
|
||||||
#clock, #memory, #cpu, #temperature, #pulseaudio, #network, #mpd, #backlight, #battery, #custom-weather {
|
#clock, #memory, #cpu, #temperature, #pulseaudio, #network, #mpd, #backlight, #battery, #custom-weather, #idle_inhibitor {
|
||||||
margin-left: 8px;
|
margin-left: 8px;
|
||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
padding-left: 8px;
|
padding-left: 8px;
|
||||||
|
|
@ -54,7 +54,7 @@
|
||||||
border-bottom-color: ${style.base16.color2}
|
border-bottom-color: ${style.base16.color2}
|
||||||
}
|
}
|
||||||
|
|
||||||
#mpd { border-color: #5af78e }
|
#mpd, #idle_inhibitor { border-color: #5af78e }
|
||||||
#mpd.disconnected, #mpd.stopped { border-color: #282a36 }
|
#mpd.disconnected, #mpd.stopped { border-color: #282a36 }
|
||||||
#network { border-color: ${style.base16.color3} }
|
#network { border-color: ${style.base16.color3} }
|
||||||
#custom-weather { border-color: ${style.base16.color14} }
|
#custom-weather { border-color: ${style.base16.color14} }
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,8 @@
|
||||||
imports = [
|
imports = [
|
||||||
./vim.nix
|
./vim.nix
|
||||||
(sources.tf-nix + "/modules/home/secrets.nix")
|
(sources.tf-nix + "/modules/home/secrets.nix")
|
||||||
|
(import (sources.arc-nixexprs + "/modules")).home-manager.base16
|
||||||
|
# (sources.arc-nixexprs + "/modules/home/base16-shell.nix")
|
||||||
(sources.arc-nixexprs + "/modules/home/weechat.nix")
|
(sources.arc-nixexprs + "/modules/home/weechat.nix")
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,8 @@ let
|
||||||
+ (if file.source != null then ''
|
+ (if file.source != null then ''
|
||||||
< ${toString file.source}
|
< ${toString file.source}
|
||||||
'' else ''
|
'' else ''
|
||||||
<<'EOF'
|
<<${if hasPrefix "__FUCKERY__" file.text then "EOF" else "'EOF'"}
|
||||||
${file.text}
|
${removePrefix "__FUCKERY__" file.text}
|
||||||
EOF
|
EOF
|
||||||
'')) (attrValues config.secrets.files);
|
'')) (attrValues config.secrets.files);
|
||||||
in {
|
in {
|
||||||
|
|
|
||||||
|
|
@ -2,33 +2,26 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
pkgs = import sources.nixpkgs { inherit config; };
|
pkgs = import sources.nixpkgs { inherit config; };
|
||||||
|
|
||||||
overlay = self: super: rec {
|
overlay = self: super: rec {
|
||||||
dino = super.callPackage "${sources.qyliss-nixlib}/overlays/patches/dino" {
|
dino = super.callPackage "${sources.qyliss-nixlib}/overlays/patches/dino" {
|
||||||
inherit (super) dino;
|
inherit (super) dino;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
discord = unstable.discord.override { nss = self.nss_latest; };
|
discord = unstable.discord.override { nss = self.nss_latest; };
|
||||||
|
|
||||||
|
lib = super.lib.extend
|
||||||
|
(self: super: { deployEmbedFuckery = txt: "__FUCKERY__" + txt; });
|
||||||
|
|
||||||
ncmpcpp = unstable.ncmpcpp.override {
|
ncmpcpp = unstable.ncmpcpp.override {
|
||||||
visualizerSupport = true;
|
visualizerSupport = true;
|
||||||
clockSupport = true;
|
clockSupport = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
weechat = arc.pkgs.wrapWeechat arc.pkgs.weechat-unwrapped {
|
waybar = super.waybar.override { pulseSupport = true; };
|
||||||
configure = { availablePlugins, ... }: {
|
|
||||||
scripts = [ arc.pkgs.weechatScripts.weechat-matrix ];
|
|
||||||
plugins = [
|
|
||||||
availablePlugins.perl
|
|
||||||
(availablePlugins.python.withPackages
|
|
||||||
(ps: [ ps.potr ps.weechat-matrix ]))
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
notmuch = super.callPackage ./notmuch { inherit (super) notmuch; };
|
notmuch = super.callPackage ./notmuch { inherit (super) notmuch; };
|
||||||
|
|
||||||
arc = import sources.arc-nixexprs { pkgs = super; };
|
|
||||||
unstable = import sources.nixpkgs-unstable { inherit (self) config; };
|
unstable = import sources.nixpkgs-unstable { inherit (self) config; };
|
||||||
nur = import sources.NUR {
|
nur = import sources.NUR {
|
||||||
nurpkgs = self;
|
nurpkgs = self;
|
||||||
|
|
@ -46,4 +39,5 @@ let
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
in pkgs.extend (overlay)
|
in (pkgs.extend (import (sources.arc-nixexprs + "/top-level.nix"))).extend
|
||||||
|
overlay
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue