Compare commits

..

2 Commits

Author SHA1 Message Date
a0a6acf280
all: remove dead code 2024-04-12 21:50:51 +02:00
84b6e74e7b
home/zsh: format, remove dead code 2024-04-12 21:48:25 +02:00
14 changed files with 30 additions and 63 deletions

View File

@ -1,7 +1,6 @@
{
config,
pkgs,
lib,
...
}: {
imports = [

View File

@ -4,7 +4,6 @@
{
config,
lib,
pkgs,
modulesPath,
...
}: {

View File

@ -1,5 +1,4 @@
{
config,
pkgs,
nix-xilinx,
system,

View File

@ -1,16 +1,12 @@
{
pkgs,
config,
lib,
inputs,
...
}:
let
}: let
qutebrowser_firejail = pkgs.writeShellScriptBin "qutebrowser" ''
firejail -- ${pkgs.qutebrowser}/bin/qutebrowser "$@"
'';
in
with lib; {
in {
imports = [./zsh.nix ./i3status-rust.nix ./sway.nix ./i3.nix ./home_packages.nix ./whatsapp-for-linux.nix];
home.stateVersion = "22.11";
@ -62,7 +58,7 @@ with lib; {
clock24 = true;
keyMode = "vi";
terminal = "screen-256color";
plugins = with pkgs.tmuxPlugins; [ sysstat net-speed gruvbox ];
plugins = with pkgs.tmuxPlugins; [sysstat net-speed gruvbox];
};
mpv = {

View File

@ -1,5 +1,4 @@
{
config,
pkgs,
inputs,
system,

View File

@ -1,9 +1,4 @@
{
config,
lib,
pkgs,
...
}: {
{...}: {
programs.i3status-rust = {
bars.top = {
icons = "awesome5";

View File

@ -1,6 +1,5 @@
{
config,
lib,
pkgs,
inputs,
system,

View File

@ -1,9 +1,4 @@
{
config,
pkgs,
lib,
...
}:
{lib, ...}:
with lib; {
xdg.configFile."whatsapp-for-linux/settings.conf".source = builtins.toFile "settings.conf" (
generators.toINI {} {

View File

@ -1,9 +1,4 @@
{
config,
lib,
pkgs,
...
}: {
{pkgs, ...}: {
programs.z-lua = {
enableAliases = true;
enableZshIntegration = true;
@ -77,36 +72,36 @@
envExtra = '''';
initExtra = ''
# binds
bindkey '^K' fzf-file-widget
# binds
bindkey '^K' fzf-file-widget
# options
setopt nobeep
setopt nopromptcr
setopt c_bases
setopt completeinword
setopt completealiases
setopt notify
# options
setopt nobeep
setopt nopromptcr
setopt c_bases
setopt completeinword
setopt completealiases
setopt notify
#
RPS1=""
#
RPS1=""
#
function chpwd() {
ls;
}
#
function chpwd() {
ls;
}
eval "$(direnv hook zsh)"
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
eval "$(direnv hook zsh)"
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then
TMUX_EXE="${pkgs.tmux}/bin/tmux"
systemd-run --scope --user $TMUX_EXE attach-session -t $USER || systemd-run --scope --user $TMUX_EXE new-session -s $USER
fi
if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then
TMUX_EXE="${pkgs.tmux}/bin/tmux"
systemd-run --scope --user $TMUX_EXE attach-session -t $USER || systemd-run --scope --user $TMUX_EXE new-session -s $USER
fi
if [[ -n "$BUBBLEWRAP_DIR" ]]; then
RPS1="{{$BUBBLEWRAP_DIR}}"
fi
if [[ -n "$BUBBLEWRAP_DIR" ]]; then
RPS1="{{$BUBBLEWRAP_DIR}}"
fi
'';
};
}

View File

@ -2,9 +2,7 @@
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{
config,
lib,
pkgs,
modulesPath,
...
}: {

View File

@ -4,8 +4,6 @@
{
config,
pkgs,
lib,
sops-nix,
zremap,
system,
nvim,

View File

@ -2,9 +2,7 @@
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{
config,
lib,
pkgs,
modulesPath,
...
}: {

View File

@ -1,9 +1,7 @@
{
config,
pkgs,
lib,
nix-xilinx,
sops-nix,
system,
nvim,
zremap,

View File

@ -4,7 +4,6 @@
{
config,
lib,
pkgs,
modulesPath,
...
}: {