Remove legacy configs

main
mat ess 2022-07-16 16:38:28 -04:00
parent e4359f5245
commit e93afae2ad
35 changed files with 0 additions and 1435 deletions

View File

@ -1,137 +0,0 @@
/*
* ROFI Color theme
* A red variation of Arc-Dark theme by leofa, based on arc-theme-Red (https://github.com/mclmza/arc-theme-Red)
* User: wikwg9
*/
* {
selected-normal-foreground: rgba ( 249, 249, 249, 100 % );
foreground: rgba ( 196, 203, 212, 100 % );
normal-foreground: @foreground;
alternate-normal-background: rgba ( 64, 69, 82, 59 % );
red: rgba ( 220, 50, 47, 100 % );
selected-urgent-foreground: rgba ( 249, 249, 249, 100 % );
blue: rgba ( 38, 139, 210, 100 % );
urgent-foreground: rgba ( 204, 102, 102, 100 % );
alternate-urgent-background: rgba ( 75, 81, 96, 90 % );
active-foreground: rgba ( 220, 140, 160, 100 % );
lightbg: rgba ( 238, 232, 213, 100 % );
selected-active-foreground: rgba ( 249, 249, 249, 100 % );
alternate-active-background: rgba ( 75, 81, 96, 89 % );
background: rgba ( 45, 48, 59, 95 % );
alternate-normal-foreground: @foreground;
normal-background: @background;
lightfg: rgba ( 88, 104, 117, 100 % );
selected-normal-background: rgba ( 204, 87, 93, 100 % );
border-color: rgba ( 137, 131, 124, 100 % );
spacing: 2;
separatorcolor: rgba ( 29, 31, 33, 100 % );
urgent-background: rgba ( 29, 31, 33, 17 % );
selected-urgent-background: rgba ( 165, 66, 66, 100 % );
alternate-urgent-foreground: @urgent-foreground;
background-color: rgba ( 0, 0, 0, 0 % );
alternate-active-foreground: @active-foreground;
active-background: rgba ( 29, 31, 33, 17 % );
selected-active-background: rgba ( 204, 87, 93, 100 % );
}
#window {
background-color: @background;
padding: 5;
}
#mainbox {
border: 0;
padding: 0;
}
#message {
border: 2px 0px 0px ;
border-color: @separatorcolor;
padding: 1px ;
}
#textbox {
text-color: @foreground;
}
#listview {
fixed-height: 0;
border: 2px 0px 0px ;
border-color: @separatorcolor;
spacing: 2px ;
scrollbar: false;
padding: 2px 0px 0px ;
}
#element {
border: 0;
padding: 1px ;
}
#element.normal.normal {
background-color: @normal-background;
text-color: @normal-foreground;
}
#element.normal.urgent {
background-color: @urgent-background;
text-color: @urgent-foreground;
}
#element.normal.active {
background-color: @active-background;
text-color: @active-foreground;
}
#element.selected.normal {
background-color: @selected-normal-background;
text-color: @selected-normal-foreground;
}
#element.selected.urgent {
background-color: @selected-urgent-background;
text-color: @selected-urgent-foreground;
}
#element.selected.active {
background-color: @selected-active-background;
text-color: @selected-active-foreground;
}
#element.alternate.normal {
background-color: @alternate-normal-background;
text-color: @alternate-normal-foreground;
}
#element.alternate.urgent {
background-color: @alternate-urgent-background;
text-color: @alternate-urgent-foreground;
}
#element.alternate.active {
background-color: @alternate-active-background;
text-color: @alternate-active-foreground;
}
#mode-switcher {
border: 2px 0px 0px ;
border-color: @separatorcolor;
}
#button {
spacing: 0;
text-color: @normal-foreground;
}
#button.selected {
background-color: @selected-normal-background;
text-color: @selected-normal-foreground;
}
#inputbar {
spacing: 0;
text-color: @normal-foreground;
padding: 1px ;
}
#case-indicator {
spacing: 0;
text-color: @normal-foreground;
}
#entry {
spacing: 0;
text-color: @normal-foreground;
}
#prompt {
spacing: 0;
text-color: @normal-foreground;
}
#inputbar {
children: [ prompt,textbox-prompt-colon,entry,case-indicator ];
}
#textbox-prompt-colon {
expand: false;
str: ":";
margin: 0px 0.3em 0em 0em ;
text-color: @normal-foreground;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

View File

@ -1,20 +0,0 @@
function colortest --description 'Shows the various fish colors being used'
set -l clr_list (set -n | grep fish | grep color | grep -v __)
if test -n "$clr_list"
set -l bclr (set_color normal)
set -l bold (set_color --bold)
printf "\n| %-38s | %-38s |\n" Variable Definition
echo '|¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯|¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯|'
for var in $clr_list
set -l def $$var
set -l clr (set_color $def ^/dev/null)
or begin
printf "| %-38s | %s%-38s$bclr |\n" "$var" (set_color --bold white --background=red) "$def"
continue
end
printf "| $clr%-38s$bclr | $bold%-38s$bclr |\n" "$var" "$def"
end
echo '|________________________________________|________________________________________|'\n
end
end

View File

@ -1,46 +0,0 @@
[theme]
name = "plain"
[theme.overrides]
separator = ""
[icons]
name = "awesome"
[[block]]
block = "disk_space"
path = "/"
alias = "/"
info_type = "available"
unit = "GB"
interval = 20
warning = 20.0
alert = 10.0
[[block]]
block = "memory"
display_type = "memory"
format_mem = "{Mup}%"
format_swap = "{SUp}%"
[[block]]
block = "cpu"
interval = 5
[[block]]
block = "load"
interval = 5
format = "{1m}"
[[block]]
block = "sound"
[[block]]
block = "time"
interval = 60
format = "%a %m/%d %I:%M%P"
[[block]]
block = "battery"
driver = "upower"
format = "{percentage}% {time}"

View File

@ -1,75 +0,0 @@
syntax on
filetype plugin indent on
set cursorline "highlight current line
set showmatch "highlight matching [{()}]
set tabstop=2 "number of visual spaces per TAB when reading
set softtabstop=2 "number of spaces per TAB when editing
set expandtab "tabs are spaces
set shiftwidth=2 "indents
set ww=<,>,[,] "wrap
set splitbelow "split underneath
set splitright "split to the right
command Mks NERDTreeClose | mksession!
command Term split | term
command Vterm vsplit | term
"command Hsfmt mark H | %!./styler.sh | if v:shell_error | undo | else | `H | delm H | endif
"save readonly
cmap w!! w !sudo tee >/dev/null %
"terminal exit
tnoremap <Esc> <C-\><C-n><CR>
"nohl
nnoremap <silent> ,<space> :nohlsearch<CR>
colorscheme Tomorrow-Night-Eighties
let g:lightline = {'colorscheme': 'jellybeans'}
"cursor saving
autocmd BufReadPost * if @% !~# '\.git[\/\\]COMMIT_EDITMSG$' && line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g`\"" | endif
"nerdtree
"show hidden files
let NERDTreeShowHidden=1
"open on vim open
"autocmd vimenter * NERDTree
"switch to editing window
"autocmd vimenter * wincmd p
"close if only nerdtree is left
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
"show/hide nerdtree
nnoremap <silent> <c-b> :NERDTreeToggle<CR>
"LSP support
"set hidden
"let g:LanguageClient_rootMarkers = ['*.cabal', 'stack.yaml']
"let g:LanguageClient_serverCommands = {
" \ 'haskell': ['ghcide', '--lsp'],
" \ }
"let g:LanguageClient_preferredMarkupKind = ['plaintext']
"let g:LanguageClient_completionPreferTextEdit = 1
"nnoremap <silent> K :call LanguageClient#textDocument_hover()<CR>
"nnoremap <silent> f :call LanguageClient#textDocument_rangeFormatting()<CR>
"nnoremap <silent> F :call LanguageClient#textDocument_formatting()<CR>
"nnoremap <silent> gd :call LanguageClient#textDocument_definition()<CR>
"nnoremap <silent> gr :call LanguageClient#textDocument_references()<CR>
"set cmdheight=2
"set updatetime=300
"set signcolumn=yes
"
""NCM2
"autocmd bufenter * call ncm2#enable_for_buffer()
"au User Ncm2PopupOpen set completeopt=noinsert,menuone,noselect
"au User Ncm2PopupClose set completeopt=menuone
"set shortmess+=c
"" CTRL-C doesn't trigger the InsertLeave autocmd . map to <ESC> instead.
"inoremap <c-c> <ESC>
"" When the <Enter> key is pressed while the popup menu is visible, it only
"" hides the menu. Use this mapping to close the menu and also start a new
"" line.
"inoremap <expr> <CR> (pumvisible() ? "\<c-y>\<cr>" : "\<CR>")
"" Use <TAB> to select the popup menu:
"inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
"inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"

View File

@ -1,21 +0,0 @@
background #000000
foreground #e9e9e9
cursor #e9e9e9
selection_background #424242
color0 #000000
color8 #000000
color1 #d44d53
color9 #d44d53
color2 #b9c949
color10 #b9c949
color3 #e6c446
color11 #e6c446
color4 #79a6da
color12 #79a6da
color5 #c396d7
color13 #c396d7
color6 #70c0b1
color14 #70c0b1
color7 #fffefe
color15 #fffefe
selection_foreground #000000

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 KiB

View File

@ -1 +0,0 @@
/home/mat/dev/pijul-fish-completions/pijul.fish

View File

@ -1,131 +0,0 @@
/**
* User: deadguy
* Copyright: deadguy
*/
configuration {
display-drun: "Activate";
display-run: "Execute";
display-window: "Window";
show-icons: true;
sidebar-mode: true;
}
* {
background-color: #080808;
text-color: #d3d7cf;
selbg: #215d9c;
actbg: #262626;
urgbg: #e53935;
winbg: #26c6da;
selected-normal-foreground: @winbg;
normal-foreground: @text-color;
selected-normal-background: @actbg;
normal-background: @background-color;
selected-urgent-foreground: @background-color;
urgent-foreground: @text-color;
selected-urgent-background: @urgbg;
urgent-background: @background-color;
selected-active-foreground: @winbg;
active-foreground: @text-color;
selected-active-background: @actbg;
active-background: @selbg;
line-margin: 2;
line-padding: 2;
separator-style: "none";
hide-scrollbar: "true";
margin: 0;
padding: 0;
}
window {
location: west;
anchor: west;
height: 100%;
width: 22%;
orientation: horizontal;
children: [mainbox];
}
mainbox {
spacing: 0.8em;
children: [ entry,listview,mode-switcher ];
}
button { padding: 5px 2px; }
button selected {
background-color: @active-background;
text-color: @background-color;
}
inputbar {
padding: 5px;
spacing: 5px;
}
listview {
spacing: 0.5em;
dynamic: false;
cycle: true;
}
element { padding: 10px; }
entry {
expand: false;
text-color: @normal-foreground;
vertical-align: 1;
padding: 5px;
}
element normal.normal {
background-color: @normal-background;
text-color: @normal-foreground;
}
element normal.urgent {
background-color: @urgent-background;
text-color: @urgent-foreground;
}
element normal.active {
background-color: @active-background;
text-color: @active-foreground;
}
element selected.normal {
background-color: @selected-normal-background;
text-color: @selected-normal-foreground;
border: 0 5px solid 0 0;
border-color: @active-background;
}
element selected.urgent {
background-color: @selected-urgent-background;
text-color: @selected-urgent-foreground;
}
element selected.active {
background-color: @selected-active-background;
text-color: @selected-active-foreground;
}
element alternate.normal {
background-color: @normal-background;
text-color: @normal-foreground;
}
element alternate.urgent {
background-color: @urgent-background;
text-color: @urgent-foreground;
}
element alternate.active {
background-color: @active-background;
text-color: @active-foreground;
}

View File

@ -1,43 +0,0 @@
* {
background-color: #282C33;
border-color: #2e343f;
text-color: #8ca0aa;
spacing: 0;
width: 512px;
}
inputbar {
border: 0 0 1px 0;
children: [prompt,entry];
}
prompt {
padding: 16px;
border: 0 1px 0 0;
}
textbox {
background-color: #2e343f;
border: 0 0 1px 0;
border-color: #282C33;
padding: 8px 16px;
}
entry {
padding: 16px;
}
listview {
cycle: false;
margin: 0 0 -1px 0;
scrollbar: false;
}
element {
border: 0 0 1px 0;
padding: 16px;
}
element selected {
background-color: #2e343f;
}

View File

@ -1,86 +0,0 @@
set -l systemd_version (systemctl --version | string match "systemd*" | string replace -r "\D*(\d+)\D.*" '$1')
set -l commands list-units list-sockets start stop reload restart try-restart reload-or-restart reload-or-try-restart \
isolate kill is-active is-failed status show get-cgroup-attr set-cgroup-attr unset-cgroup-attr set-cgroup help \
reset-failed list-unit-files enable disable is-enabled reenable preset mask unmask link load list-jobs cancel dump \
list-dependencies snapshot delete daemon-reload daemon-reexec show-environment set-environment unset-environment \
default rescue emergency halt poweroff reboot kexec exit suspend hibernate hybrid-sleep switch-root list-timers \
set-property
if test $systemd_version -gt 208 2>/dev/null
set commands $commands cat
if test $systemd_version -gt 217 2>/dev/null
set commands $commands edit
end
end
set -l types services sockets mounts service_paths targets automounts timers
function __fish_systemd_properties
# We need to call the main systemd binary (the thing that is run as PID1).
# Unfortunately, it's usually not in $PATH.
if test -f /usr/lib/systemd/systemd
/usr/lib/systemd/systemd --dump-configuration-items | string replace -rf '(.+)=(.+)$' '$1\t$2'
else if test -f /lib/systemd/systemd # Debian has not merged /lib and /usr/lib
/lib/systemd/systemd --dump-configuration-items | string replace -rf '(.+)=(.+)$' '$1\t$2'
end
end
# All systemctl commands
complete -f -c systemctl -n "not __fish_seen_subcommand_from $commands" -a "$commands"
#### Units commands
complete -f -c systemctl -n "not __fish_seen_subcommand_from $commands" -a start -d 'Start one or more units'
complete -f -c systemctl -n "not __fish_seen_subcommand_from $commands" -a stop -d 'Stop one or more units'
complete -f -c systemctl -n "not __fish_seen_subcommand_from $commands" -a restart -d 'Restart one or more units'
complete -f -c systemctl -n "not __fish_seen_subcommand_from $commands" -a status -d 'Runtime status about one or more units'
complete -f -c systemctl -n "not __fish_seen_subcommand_from $commands" -a enable -d 'Enable one or more units'
complete -f -c systemctl -n "not __fish_seen_subcommand_from $commands" -a disable -d 'Disable one or more units'
complete -f -c systemctl -n "not __fish_seen_subcommand_from $commands" -a isolate -d 'Start a unit and dependencies and disable all others'
complete -f -c systemctl -n "not __fish_seen_subcommand_from $commands" -a set-default -d 'Set the default target to boot into'
complete -f -c systemctl -n "not __fish_seen_subcommand_from $commands" -a set-property -d 'Sets one or more properties of a unit'
# Command completion done via argparse.
complete -c systemctl -a '(_fish_systemctl)' -f
# These "--x=help" outputs always have lines like "Available unit types:". We use the fact that they end in a ":" to filter them out.
complete -f -c systemctl -s t -l type -d 'List of unit types' -xa '(systemctl --type=help --no-legend --no-pager | string match -v "*:")'
complete -f -c systemctl -l state -d 'List of unit states' -xa '(systemctl --state=help --no-legend --no-pager | string match -v "*:")'
complete -f -c systemctl -s p -l property -a '(__fish_systemd_properties)'
complete -f -c systemctl -s a -l all -d 'Show all units or properties'
complete -f -c systemctl -s r -l recursive -d 'Show also units of local containers'
complete -f -c systemctl -l reverse -d 'Show reverse dependencies between units'
complete -f -c systemctl -l after -d 'Show units ordered before specified unit' -n "__fish_seen_subcommand_from list-dependencies"
complete -f -c systemctl -l before -d 'Show units ordered after specified unit' -n "__fish_seen_subcommand_from list-dependencies"
complete -f -c systemctl -s l -l full -d 'Do not ellipsize anything'
complete -f -c systemctl -l show-types -d 'Show the type of the socket'
complete -f -c systemctl -l job-mode -d 'How to deal with queued jobs' -xa 'fail replace replace-irreversibly isolate ignore-dependencies ignore-requirements flush'
complete -f -c systemctl -s i -l ignore-inhibitors -d 'Ignore inhibitor locks on shutdown or sleep'
complete -f -c systemctl -s q -l quiet -d 'Suppress output to STDOUT'
complete -f -c systemctl -l no-block -d 'Do not wait for the requested operation to finish'
complete -f -c systemctl -l no-legend -d 'Do not print header and footer'
# system and user/global are mutually exclusive
complete -f -c systemctl -l user -d 'Talk to the service manager of the calling user' -n "not __fish_contains_opt system"
complete -f -c systemctl -l system -d 'Talk to the service manager of the system.' -n "not __fish_contains_opt system global"
complete -f -c systemctl -l global -d 'Enable or disable for all users' -n "not __fish_contains_opt system"
complete -f -c systemctl -l no-wall -d 'Do not send wall message before halt'
complete -f -c systemctl -l no-reload -d 'Do not reload daemon configuration'
complete -f -c systemctl -l no-ask-password -d 'Disable asking for password'
complete -f -c systemctl -l kill-who -d 'Send signal to which process' -xa 'main control all'
complete -f -c systemctl -s s -l signal -d 'Which signal to send' -xa 'SIGTERM SIGINT SIGSTOP SIGKILL SIGHUP SIGCONT'
complete -f -c systemctl -s f -l force -d 'Overwrite conflicting existing symlinks'
# --root needs a path
complete -r -c systemctl -l root -d 'Use alternative root path'
complete -f -c systemctl -l runtime -d 'Make changes only temporarily'
complete -f -r -c systemctl -s n -l lines -d 'Number of journal lines to show' -a "(seq 1 1000)"
complete -f -c systemctl -s o -l output -d 'Control journal formatting' -xa 'short short-monotonic verbose export json json-pretty json-sse cat'
complete -f -c systemctl -l plain -d 'list-dependencies flat, not as tree'
complete -f -c systemctl -s H -l host -d 'Execute the operation on a remote host' -a "(__fish_print_hostnames)"
complete -x -c systemctl -s M -l machine -d 'Execute operation on a VM or container' -a "(__fish_systemd_machines)"
complete -f -c systemctl -s h -l help -d 'Print a short help and exit'
complete -f -c systemctl -l version -d 'Print a short version and exit'
complete -f -c systemctl -l no-pager -d 'Do not pipe output into a pager'
# New options since systemd 220
if test $systemd_version -gt 219 2>/dev/null
complete -f -c systemctl -l firmware-setup -n "__fish_seen_subcommand_from reboot" -d "Reboot to EFI setup"
complete -f -c systemctl -l now -n "__fish_seen_subcommand_from enable" -d "Also start unit"
complete -f -c systemctl -l now -n "__fish_seen_subcommand_from disable mask" -d "Also stop unit"
end

View File

@ -1,12 +0,0 @@
{
nix = {
binaryCaches = [
"https://fenix.cachix.org"
];
binaryCachePublicKeys = [
"fenix.cachix.org-1:SVfCRUmFZ8kdAjJKShEYoyWHb/M0pxVkCjGXsFDHLk4="
];
};
}

View File

@ -1,12 +0,0 @@
{
nix = {
binaryCaches = [
"https://nix-community.cachix.org"
];
binaryCachePublicKeys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
}

View File

@ -1,43 +0,0 @@
{
enable = true;
settings = {
global = {
geometry = "0x5-30+20";
notification_height = 25;
indicate_hidden = "yes";
corner_radius = 5;
padding = 10;
horizontal_padding = 10;
idle_threshold = 60;
font = "Fira Code 16";
markup = "full";
format = ''
<b>%s<b> %a
%b'';
alignment = "center";
horizontal_alignment = "center";
icon_position = "left";
max_icon_size = 100;
separator_color = "#383838";
frame_color = "#383838";
frame_width = 2;
};
shortcuts = {
close = "ctrl+space";
history = "ctrl+shift+grave";
};
urgency_low = {
background = "#282828";
foreground = "#5882FA";
};
urgency_normal = {
background = "#282828";
foreground = "#5882FA";
};
urgency_critical = {
background = "#282828";
foreground = "#FF0040";
timeout = 0;
};
};
}

View File

@ -1,43 +0,0 @@
{
".config/fish/fish_plugins".text = ''
jorgebucaran/fisher
jorgebucaran/autopair.fish
jorgebucaran/replay.fish
jorgebucaran/fish-getopts
joseluisq/gitnow
fishpkg/fish-get
fishpkg/fish-spin
fishpkg/fish-humanize-duration
oh-my-fish/plugin-bang-bang
matthewess/fish-autovenv
joehillen/to-fish
jethrokuan/z
decors/fish-colored-man
franciscolourenco/done
haslersn/fish-nix-completions
gyakovlev/fish-fzy
Gazorby/fish-abbreviation-tips
'';
".config/fish/functions/colortest.fish".source = ../assets/colortest.fish;
".config/fish/functions/mkdcd.fish".text = ''
function mkdcd -a target
mkdir $target
cd $target
end
'';
".config/fish/functions/unz.fish".text = ''
function unz -a target
# strip extensions
string match \*.zip $target; and set target (string split -r -m1 . $target)[1]
unzip -d $target $target
end
'';
".config/kitty/kitty.conf".text = ''
font_family Fira Code Regular
bold_font Fira Code Bold
font_size 15.0
clipboard_control write-clipboard write-primary no-append
include ./theme.conf
'';
".config/kitty/theme.conf".source = ../assets/kitty-theme.conf;
}

View File

@ -1,20 +0,0 @@
{
".background-image".source = ../assets/background-image;
".lockscreen-image".source = ../assets/lockscreen-image;
".config/fish/functions/kbl.fish".text = ''
function kbl -a level
set -l initial (cat /sys/class/leds/tpacpi\:\:kbd_backlight/brightness)
test -z "$level"; and set -l level $initial
echo $level > /sys/class/leds/tpacpi\:\:kbd_backlight/brightness
end
'';
".config/i3status.toml".source = ../assets/i3status.toml;
".config/rofi/theme.rasi".source = ../assets/sidetab.rasi;
".config/fish/completions/pijul.fish".source = ../assets/pijul.fish;
".config/pijul/config.toml".text = ''
[author]
name = "mat"
full_name = "mat"
email = "mat@mat.services"
'';
}

View File

@ -1,47 +0,0 @@
{ pkgs, ... }: {
enable = true;
package = pkgs.fish;
interactiveShellInit = ''
alias clip="xclip -selection c"
alias cxuse="sudo cachix use -d ~/dotfiles.nix"
alias cxpsh="nix-shell --command exit; nix-store -qR --include-outputs (nix-instantiate shell.nix) | cachix push"
alias cxpush=cxpsh
alias code=codium
alias config="code ~/dotfiles.nix"
alias home="vim ~/dotfiles.nix/users/mat-hm.nix +'cd %:p:h'"
alias vims="vim -S Session.vim"
alias bigscreen="xrandr --output eDP1 --off --output HDMI2 --auto"
alias smallscreen="xrandr --output eDP1 --auto --output HDMI2 --off"
function tmux-ssh -a user -a host -a no_local
if test -z "$no_local"
set host "$host.local"
end
set target "$user@$host"
set session_host (string replace . - "$host" --all)
set session "$user-$session_host"
env TERM=tmux-256color ssh $target -t "tmux -2 attach -t $session || tmux -2 new -s $session"
end
alias pi="tmux-ssh pi pi y"
alias yuri="tmux-ssh root gagarin"
alias tmssh="tmux-ssh mat"
alias soviet="tmssh soviet y"
alias wifi="nmcli r w off; nmcli r w on"
alias nixops=~/dev/nixops/result/bin/nixops
alias sys="sudo systemctl"
alias rebuild="sudo nixos-rebuild switch"
alias rebuildd="sudo nixos-rebuild switch; and systemctl restart display-manager"
alias upgrade="sudo rm -rf /root/.cache/nix/tarballs; and sudo nix-channel --update; and sudo nixos-rebuild switch --upgrade"
kitty + complete setup fish | source
'';
}

View File

@ -1,136 +0,0 @@
{ lib, statusCmd, ... }: {
enable = true;
config = rec {
fonts = [ "Aileron" "FontAwesome 14" ];
colors = {
background = "#CBBB9B";
focused = {
border = "#421B28";
background = "#3F71A8";
text = "#EAE1CE";
indicator = "#A04060";
childBorder = "#3F71A8";
};
focusedInactive = {
border = "#7F6E73";
background = "#B59DA4";
text = "#383632";
indicator = "#484E50";
childBorder = "#5F676A";
};
unfocused = {
border = "#333333";
background = "#222222";
text = "#CDC5B4";
indicator = "#292D2E";
childBorder = "#222222";
};
placeholder = {
border = "#000000";
background = "#0C0C0C";
text = "#CDC5B4";
indicator = "#000000";
childBorder = "#0C0C0C";
};
urgent = {
border = "#1086E0";
background = "#1086E0";
text = "#383632";
indicator = "#1086E0";
childBorder = "#1086E0";
};
};
bars = [{
fonts = [ "Fira Code" "FontAwesome 11" ];
statusCommand = statusCmd;
colors = {
background = "#000000";
statusline = "#EAE1CE";
separator = "#CDC5B4";
focusedWorkspace = {
border = "#3F71A8";
background = "#3F71A8";
text = "#EAE1CE";
};
activeWorkspace = {
border = "#CDC5B4";
background = "#222222";
text = "#EAE1CE";
};
inactiveWorkspace = {
border = "#222222";
background = "#222222";
text = "#CDC5B4";
};
urgentWorkspace = {
border = "#1086E0";
background = "#1086E0";
text = "#383632";
};
bindingMode = {
border = "#1086E0";
background = "#1086E0";
text = "#383632";
};
};
}];
modifier = "Mod4";
keybindings = lib.mkOptionDefault {
"${modifier}+c" = "exec CM_ONESHOT=1 clipmenud";
"${modifier}+v" = "exec clipmenu";
# "${modifier}+Escape" = "exec ${lockCmd}";
"${modifier}+0" = "workspace number 0";
"${modifier}+1" = "workspace number 1";
"${modifier}+2" = "workspace number 2";
"${modifier}+3" = "workspace number 3";
"${modifier}+4" = "workspace number 4";
"${modifier}+5" = "workspace number 5";
"${modifier}+6" = "workspace number 6";
"${modifier}+7" = "workspace number 7";
"${modifier}+8" = "workspace number 8";
"${modifier}+9" = "workspace number 9";
# "${modifier}+Shift+Right" = "workspace next";
# "${modifier}+Shift+Left" = "workspace prev";
"${modifier}+d" = "exec --no-startup-id rofi -show run";
"${modifier}+g" = "exec --no-startup-id /home/mat/.bin/lagrange";
"XF86AudioRaiseVolume" = "exec --no-startup-id amixer sset Master 5%+";
"XF86AudioLowerVolume" = "exec --no-startup-id amixer sset Master 5%-";
"XF86MonBrightnessUp" = "exec --no-startup-id light -A 10";
"XF86MonBrightnessDown" = "exec --no-startup-id light -U 10";
};
workspaceLayout = "tabbed";
assigns = {
"1: web" = [
{ class = "Firefox"; }
{ class = "(?i)castor"; }
{ class = "(?i)lagrange"; }
{ title = "Enpass Assistant"; }
{ class = "(?i)Vivaldi"; }
];
"2: devel" = [
{ class = "(?i)kitty"; }
{ class = "(?i)(vsc|c)odium"; }
{ class = "(?i)thunar"; }
];
"3: social" = [
{ class = "(?i)nheko"; }
{ class = "Slack"; }
{ class = "discord"; }
{ class = "(?i)signal(-desktop)?"; }
{ class = "(?i)fractal"; }
];
"4: other" = [{ class = ".*"; }];
};
};
extraConfig = ''
exec --no-startup-id vivaldi
exec --no-startup-id kitty
exec --no-startup-id Enpass
exec --no-startup-id deluged
# exec --no-startup-id mullvad-vpn
# exec --no-startup-id slack
# exec --no-startup-id nheko
# exec --no-startup-id Discord
for_window [class="Vivaldi"] focus
'';
}

View File

@ -1,23 +0,0 @@
{ pkgs, ... }: {
enable = true;
viAlias = true;
vimAlias = true;
withNodeJs = true;
extraPython3Packages = ps: with ps; [ pynvim ];
plugins = with pkgs.vimPlugins; [
neovim-sensible
vim-fugitive
vim-surround
nerdtree
nerdtree-git-plugin
vim-colorschemes
vim-nix
lightline-vim
haskell-vim
auto-pairs
vim-fish
ctrlp
dhall-vim
];
extraConfig = builtins.readFile ../assets/init.vim;
}

View File

@ -1,18 +0,0 @@
{ pkgs, ... }: {
enable = true;
package = pkgs.vscodium.overrideAttrs (_: {
preFixupPhases = [ "preFixup" ];
preFixup = ''
sed -i "s#open-vsx.org/vscode/gallery#marketplace.visualstudio.com/_apis/public/gallery#" $out/lib/vscode/resources/app/product.json
sed -i "s#open-vsx.org/vscode/item#marketplace.visualstudio.com/items#" $out/lib/vscode/resources/app/product.json
sed -i "s#open-vsx.org#marketplace.visualstudio.com#" $out/lib/vscode/resources/app/product.json
'';
});
extensions = with pkgs.vscode-extensions; [
matklad.rust-analyzer
# ms-python.python
skyapps.fish-vscode
# TODO: reenable
# vadimcn.vscode-lldb
];
}

View File

@ -1,48 +0,0 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{
imports = [
# Include the results of the hardware scan.
/etc/nixos/hardware-configuration.nix
../../profiles/laptop.nix
];
# Bootloader
boot.loader.systemd-boot.enable = true;
boot.loader.systemd-boot.configurationLimit = 64;
boot.loader.efi.canTouchEfiVariables = true;
console.earlySetup = true;
networking = {
hostName = "nixpad"; # Define your hostname.
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
# Per-interface useDHCP will be mandatory in the future, so this generated config
# replicates the default behaviour.
useDHCP = false;
interfaces = {
enp0s25.useDHCP = true;
wlp3s0.useDHCP = true;
# wwp0s20u4c2i12.useDHCP = true;
};
};
nix = {
package = pkgs.nixFlakes;
extraOptions = ''
experimental-features = nix-command flakes
'';
};
# This value determines the NixOS release with which your system is to be
# compatible, in order to avoid breaking some software such as database
# servers. You should change this only after NixOS release notes say you
# should.
system.stateVersion = "19.09"; # Did you read the comment?
}

View File

@ -1,10 +0,0 @@
{ config, ... }: {
imports = [ # Cachix caches
../cachix.nix
];
nix = {
binaryCaches = [ "https://hydra.iohk.io" ];
binaryCachePublicKeys =
[ "hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=" ];
};
}

View File

@ -1,40 +0,0 @@
{ config, pkgs, lib, ... }: {
imports = [
# basic services
../services/ssh.nix
../services/vpn.nix
../services/l10n.nix
./caches.nix
./quicksudo.nix
../users/mat.nix
<home-manager/nixos>
];
home-manager.users.mat = import ../users/mat-hm.nix { inherit pkgs; };
system.autoUpgrade.enable = true;
system.copySystemConfiguration = true;
environment.systemPackages = with pkgs; [
fish
git
htop
ripgrep
tmux
tree
unzip
vim
wget
zip
];
environment.variables = {
"EDITOR" = "vim";
"VISUAL" = "vim";
};
programs = {
fish.enable = false;
ssh = { startAgent = true; };
};
}

View File

@ -1,16 +0,0 @@
{ config, pkgs, ... }: {
fonts = {
enableDefaultFonts = true;
fonts = with pkgs; [
source-code-pro
fira-code
fira-code-symbols
font-awesome_4
aileron
];
fontconfig = {
enable = true;
defaultFonts = { monospace = [ "Fira Code" ]; };
};
};
}

View File

@ -1,48 +0,0 @@
{ config, pkgs, lib, ... }: {
imports = [ ./fonts.nix ];
programs = {
light.enable = true;
nm-applet.enable = true;
};
networking = {
networkmanager = {
enable = true;
wifi.scanRandMacAddress = false;
};
};
services = {
geoclue2.enable = true;
gvfs.enable = true;
xserver = {
enable = true;
videoDrivers = [ "intel" ];
deviceSection = ''
Option "DRI" "3"
Option "TearFree" "true"
'';
useGlamor = true;
desktopManager = {
session = [{
name = "home-manager";
start = ''
${pkgs.runtimeShell} $HOME/.hm-xsession &
waitPID=$!
'';
}];
};
displayManager = {
defaultSession = "home-manager";
autoLogin = {
enable = true;
user = "mat";
};
};
};
};
}

View File

@ -1,50 +0,0 @@
{ config, pkgs, lib, ... }:
{
imports = [ ./common.nix ./local.nix ./graphical.nix ];
home-manager.useUserPackages = true;
home-manager.useGlobalPkgs = true;
home-manager.users.mat =
import ../users/mat-hm-laptop.nix { inherit lib pkgs; };
# enable power management
powerManagement.enable = true;
services = {
upower.enable = true;
xserver = {
# Enable touchpad support.
libinput = {
enable = true;
touchpad = {
naturalScrolling = true;
disableWhileTyping = false;
};
};
};
};
# Enable sound.
sound.enable = true;
# Hardware switches
hardware = {
logitech.wireless = {
enable = true;
# enableGraphical = true;
};
opengl = {
driSupport32Bit = true;
extraPackages32 = [ pkgs.pkgsi686Linux.libva ];
};
pulseaudio = {
enable = true;
support32Bit = true;
};
};
nixpkgs.config.allowUnfree = true;
}

View File

@ -1,16 +0,0 @@
{ config, ... }:
let local = name: [ "${name}" "${name}.local" ];
in {
networking.hosts = {
"192.168.1.99" = [ "pi.hole" ];
"192.168.1.98" = local "gagarin";
"192.168.1.10" = local "gemini";
"192.168.1.11" = local "deluge";
"192.168.1.12" = local "jackett";
"192.168.1.13" = local "sonarr";
"192.168.1.14" = local "radarr";
"192.168.1.15" = local "plex";
};
}

View File

@ -1,4 +0,0 @@
{ config, ... }: {
# Don't ask for my password *quite* as often.
security.sudo.extraConfig = "Defaults timestamp_timeout=60";
}

View File

@ -1,13 +0,0 @@
{ config, ... }: {
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminus16";
keyMap = "us";
};
services.xserver.layout = "us";
# Set your time zone.
time.timeZone = "America/New_York";
}

View File

@ -1,4 +0,0 @@
{
mat =
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDrPN7A8SFsP9P+jwYGAr3elsVabXaiLhb20YYxhCSS0wPiYXv1Ko2ucPQTOY9Skx3EiYPGBqEeh5o11cPwPowfiRL6fq7YTxMZDJLPtEHxPpWY+/f3my6hscSsH00M02ZQ+iebu1VXA1YHGma9v5MOSDqic4R+ic6lGK+H/Efi8M8z8nT5+nI0+f8sEhG/8D4VVcmNnb/AW1tHYqdInU28A0kboA4N3ED/7Tb2GyVCWmYEryKxTa8Z9f2Bp9TRn9TPX7Wwo2op+EfxBe30XTHqWnb/vk5GBjd9OCJhBSVun4ecfmT2iTsLr9zVuCL6KVcSq849I+EE0Qaase1SNFd6J2zAe6IEQ7ePwwWZVmncQFsvzAwQ40X2AmHbY6zTAxQenQHPpG3yuDCcyov425c7QAnTkJGQl6uFGAb++tgryfCMVj5rri14FaAk2VPz6tX3Xivvi0g4fTeDrPEyYRadko4/RVw8p04Dbefod7sjUOlfyKA5cDDWJVmVE3C3dfp7ykrZRKFYzg5xij4ClRYyUN2ZmmtCnTO5ktH7qeZ8K3Sx1IPZ29+whSEpCl5lfC6Tv9Mx7v5rRV+SIq4D49FVbhR+rNCDApyYnyK3r2ybHz46zmMiRXaHzFmRVfd59nII37qA/d157YHYc/s5ec0IsI6Sc8TNeMtMyUiKdqJrDQ== matthewess";
}

View File

@ -1,12 +0,0 @@
{ config, pkgs, lib, ... }:
let pubkey = import ./pubkey.nix;
in {
services.openssh = {
enable = true;
permitRootLogin = "yes";
passwordAuthentication = lib.mkDefault false;
};
users.users.root.openssh.authorizedKeys.keys = lib.mkDefault [ pubkey.mat ];
}

View File

@ -1,7 +0,0 @@
{ config, pkgs, lib, ... }: {
networking.wireguard.enable = true;
# services.mullvad-vpn.enable = true;
networking.wg-quick.interfaces = {
wg-mullvad = import ./mullvad.secret.nix;
};
}

View File

@ -1,115 +0,0 @@
{ pkgs, lib, ... }:
let statusCmd = "i3status-rs ~/.config/i3status.toml";
in {
home = {
sessionVariables = {
BROWSER = "vivaldi";
CM_LAUNCHER = "rofi";
};
packages = with pkgs; [
# command line utilities
asuka
bottom
dbus
du-dust
imagemagick
mdcat
pijul
unrar
wireguard-tools
# graphical applications
deluge
discord
dunst
element-desktop
enpass
lagrange
# mullvad-vpn
okular
signal-desktop
slack
steam
steam-run-native
vivaldi
vivaldi-ffmpeg-codecs
# vivaldi-widevine
vlc
xfce.thunar
xfce.thunar-archive-plugin
# graphical utilities
clipmenu
clipnotify
gnome3.gnome-disk-utility
i3status-rust
libappindicator
libnotify
lxappearance
rofi
xclip
xdg-dbus-proxy
];
file = import ../hm-configs/files.nix;
};
programs = {
alacritty = {
enable = false;
settings = {
font = {
normal.family = "Fira Code";
size = 10.5;
};
};
};
command-not-found = { enable = true; };
feh.enable = true;
firefox.enable = false;
fish = import ../hm-configs/fish.nix { inherit pkgs; };
go.enable = false;
jq.enable = true;
keychain = {
enable = true;
extraFlags = [ "--quiet" "--nogui" ];
enableFishIntegration = true;
enableXsessionIntegration = false;
};
rofi = {
enable = true;
font = "Fira Code 14";
lines = 10;
location = "center";
theme = "~/.config/rofi/theme.rasi";
};
ssh = {
enable = true;
matchBlocks = {
"pi".hostname = "192.168.1.99";
"gagarin" = {
hostname = "gagarin.local";
forwardAgent = true;
};
"soviet".hostname = "soviet.circumlunar.space";
};
};
vscode = import ../hm-configs/vscode.nix { inherit pkgs; };
};
services = {
redshift = {
enable = true;
provider = "geoclue2";
};
dunst = import ../hm-configs/dunst.nix;
clipmenu.enable = true;
# disabled in favor of flakes
lorri.enable = false;
};
xdg = { mime.enable = true; };
xsession = {
enable = true;
scriptPath = ".hm-xsession";
windowManager = {
i3 = import ../hm-configs/i3.nix { inherit lib statusCmd; };
awesome = { enable = false; };
};
};
}

View File

@ -1,123 +0,0 @@
{ pkgs, ... }:
let
name = "Matthew Ess";
email = "mat@mat.services";
in {
home = {
sessionVariables = {
EDITOR = "nvim";
TERMINAL = "kitty";
};
packages = with pkgs; [
# nix utilities
cachix
niv
nixfmt
nix-prefetch-git
fishPlugins.foreign-env
# command line utils
dnsutils
fd
fzy
httpie
jq
neofetch
rlwrap
tealdeer
kitty
];
file = import ../hm-configs/files-all.nix;
};
programs = {
bat.enable = true;
broot.enable = true;
direnv = {
enable = true;
enableNixDirenvIntegration = true;
};
fish = {
enable = true;
interactiveShellInit = ''
echo '(´) welcome (´)'
if not functions -q fisher
set -q XDG_CONFIG_HOME; or set XDG_CONFIG_HOME ~/.config
curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher
fish -c fisher update
end
fish_vi_key_bindings
set VIRTUAL_ENV_DISABLE_PROMPT true
alias cat=bat
alias br=broot
alias tree=br
alias ack=rg
alias ag=rg
alias grep=rg
bind \cr 'fzy_select_history (commandline -b)'
bind -M insert \cr 'fzy_select_history (commandline -b)'
bind \cf 'fzy_select_directory'
bind -M insert \cf 'fzy_select_directory'
bind -M insert ! __history_previous_command
bind -M insert '$' __history_previous_command_arguments
if test -d $HOME/.nix-profile
replay "source $HOME/.nix-profile/etc/profile.d/nix.sh"
replay "source $HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
end
'';
};
git = {
enable = true;
userName = "${name}";
userEmail = "${email}";
ignores = [ ".*.sw[a-z]" "tags" ];
extraConfig = {
color.ui = true;
core.editor = "vim";
push.default = "simple";
init.defaultBranch = "main";
};
};
home-manager = { enable = true; };
htop = {
enable = true;
highlightBaseName = true;
};
man.enable = true;
neovim = import ../hm-configs/neovim.nix { inherit pkgs; };
ssh = {
enable = true;
serverAliveInterval = 60;
extraOptionOverrides = { "AddKeysToAgent" = "true"; };
};
starship.enable = true;
tmux = {
enable = true;
keyMode = "vi";
newSession = true;
shortcut = "a";
baseIndex = 1;
terminal = "tmux-256color";
extraConfig = ''
set -g mouse on
setw -g pane-base-index 1
unbind %
bind | split-window -h
bind _ split-window -v
'';
};
};
}

View File

@ -1,15 +0,0 @@
{ config, pkgs, lib, ... }:
{
users.users.mat = {
isNormalUser = true;
shell = pkgs.fish;
extraGroups = lib.mkDefault [
"wheel" # enable sudo
"networkmanager"
"audio"
"video"
];
};
}