who even knows

This commit is contained in:
Anish L 2022-02-08 20:03:49 +10:00
parent 674c2fcb15
commit ded18f1b40
8 changed files with 116 additions and 12 deletions

View file

@ -121,7 +121,7 @@
sealight = [ base ]; # matrix rsshub backup wireguard website sealight = [ base ]; # matrix rsshub backup wireguard website
mossnet = [ base ]; # shaarli wallabag nextcloud taskwarrior headphones mossnet = [ base ]; # shaarli wallabag nextcloud taskwarrior headphones
graphical = [ base users.profiles.firefox users.profiles.desktop bluetooth music sync wireguard ]; graphical = [ base users.profiles.firefox users.profiles.desktop bluetooth music sync wireguard ];
curve = [ graphical ]; curve = [ graphical users.profiles.email users.profiles.cal];
}; };
}; };
}; };

View file

@ -3,11 +3,6 @@
imports = [ imports = [
./configuration.nix ./configuration.nix
profiles.users.anish profiles.users.anish
#profiles.users.profiles.firefox
#profiles.users.profiles.desktop
profiles.users.profiles.email
profiles.users.profiles.cal
#profiles.wireguard
profiles.mossnet-hosts profiles.mossnet-hosts
] ++ suites.curve; ] ++ suites.curve;
@ -27,6 +22,81 @@
# Qualcomm Memory Debug # Qualcomm Memory Debug
SUBSYSTEMS=="usb", ATTRS{idVendor}=="05c6", ATTRS{idProduct}=="9006", MODE="0666", GROUP="plugdev" SUBSYSTEMS=="usb", ATTRS{idVendor}=="05c6", ATTRS{idProduct}=="9006", MODE="0666", GROUP="plugdev"
# Atmel DFU
### ATmega16U2
SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2fef", TAG+="uaccess"
### ATmega32U2
SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ff0", TAG+="uaccess"
### ATmega16U4
SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ff3", TAG+="uaccess"
### ATmega32U4
SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ff4", TAG+="uaccess"
### AT90USB64
SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ff9", TAG+="uaccess"
### AT90USB162
SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ffa", TAG+="uaccess"
### AT90USB128
SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ffb", TAG+="uaccess"
# Input Club
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1c11", ATTRS{idProduct}=="b007", TAG+="uaccess"
# STM32duino
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1eaf", ATTRS{idProduct}=="0003", TAG+="uaccess"
# STM32 DFU
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", TAG+="uaccess"
# BootloadHID
SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="05df", TAG+="uaccess"
# USBAspLoader
SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="05dc", TAG+="uaccess"
# ModemManager should ignore the following devices
# Atmel SAM-BA (Massdrop)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="6124", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
# Caterina (Pro Micro)
## pid.codes shared PID
### Keyboardio Atreus 2 Bootloader
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="2302", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
## Spark Fun Electronics
### Pro Micro 3V3/8MHz
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b4f", ATTRS{idProduct}=="9203", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
### Pro Micro 5V/16MHz
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b4f", ATTRS{idProduct}=="9205", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
### LilyPad 3V3/8MHz (and some Pro Micro clones)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b4f", ATTRS{idProduct}=="9207", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
## Pololu Electronics
### A-Star 32U4
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1ffb", ATTRS{idProduct}=="0101", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
## Arduino SA
### Leonardo
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2341", ATTRS{idProduct}=="0036", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
### Micro
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2341", ATTRS{idProduct}=="0037", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
## Adafruit Industries LLC
### Feather 32U4
SUBSYSTEMS=="usb", ATTRS{idVendor}=="239a", ATTRS{idProduct}=="000c", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
### ItsyBitsy 32U4 3V3/8MHz
SUBSYSTEMS=="usb", ATTRS{idVendor}=="239a", ATTRS{idProduct}=="000d", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
### ItsyBitsy 32U4 5V/16MHz
SUBSYSTEMS=="usb", ATTRS{idVendor}=="239a", ATTRS{idProduct}=="000e", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
## dog hunter AG
### Leonardo
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2a03", ATTRS{idProduct}=="0036", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
### Micro
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2a03", ATTRS{idProduct}=="0037", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
# hid_listen
KERNEL=="hidraw*", MODE="0660", GROUP="plugdev", TAG+="uaccess", TAG+="udev-acl"
# hid bootloaders
## QMK HID
SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2067", TAG+="uaccess"
## PJRC's HalfKay
SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="0478", TAG+="uaccess"
''; '';
boot.blacklistedKernelModules = [ "qcserial" ]; boot.blacklistedKernelModules = [ "qcserial" ];
users.users.anish.extraGroups = ["adbusers" "wheel" "plugdev"]; users.users.anish.extraGroups = ["adbusers" "wheel" "plugdev"];

View file

@ -124,4 +124,9 @@
programs.adb.enable = true; programs.adb.enable = true;
users.users.anish.extraGroups = ["adbusers"]; users.users.anish.extraGroups = ["adbusers"];
nix.extraOptions = ''
keep-outputs = true
keep-derivations = true
'';
} }

View file

@ -1,8 +1,12 @@
{ {
networking.extraHosts = '' networking.extraHosts = ''
172.16.11.240 mossnet.lan 10.0.69.4 mossnet.lan
172.16.11.240 links.mossnet.lan 10.0.69.4 links.mossnet.lan
172.16.11.240 read.mossnet.lan 10.0.69.4 read.mossnet.lan
172.16.11.240 stats.mossnet.lan 10.0.69.4 stats.mossnet.lan
''; '';
#172.16.11.240 mossnet.lan
#172.16.11.240 links.mossnet.lan
#172.16.11.240 read.mossnet.lan
#172.16.11.240 stats.mossnet.lan
} }

View file

@ -53,6 +53,7 @@ in
environment.systemPackages = with pkgs // customPlugins; [ environment.systemPackages = with pkgs // customPlugins; [
nodejs nodejs
python-with-my-packages python-with-my-packages
clojure-lsp
#python3Packages.pynvim #python3Packages.pynvim
#python3Packages.six #python3Packages.six
#python3Packages.tasklib #python3Packages.tasklib
@ -76,6 +77,7 @@ in
vimwiki vimwiki
coc-nvim coc-nvim
coc-json coc-json
ale
coc-pyright coc-pyright
coc-pairs coc-pairs
coc-emmet coc-emmet
@ -93,6 +95,7 @@ in
vim-zettel vim-zettel
#vimwiki-sync #vimwiki-sync
telescope-nvim telescope-nvim
plenary-nvim
# Clojure stuff # Clojure stuff
conjure conjure
vim-sexp vim-sexp
@ -120,6 +123,9 @@ in
let ayucolor="mirage" let ayucolor="mirage"
colorscheme ayu colorscheme ayu
" set spell
set spelllang=en_gb
" window " window
nmap <leader>wh :topleft vnew<CR> nmap <leader>wh :topleft vnew<CR>
nmap <leader>wl :botright vnew<CR> nmap <leader>wl :botright vnew<CR>
@ -127,6 +133,7 @@ in
nmap <leader>wj :botright new<CR> nmap <leader>wj :botright new<CR>
let mapleader = "\<Space>" let mapleader = "\<Space>"
let maplocalleader = ","
" lightline colorscheme " lightline colorscheme
let g:lightline = { let g:lightline = {
@ -149,6 +156,14 @@ in
:nnoremap <F5> "=strftime("%Y-%m-%d %H:%M:") :nnoremap <F5> "=strftime("%Y-%m-%d %H:%M:")
:inoremap <F5> <C-R>=strftime("%Y-%m-%d %H:%M:") :inoremap <F5> <C-R>=strftime("%Y-%m-%d %H:%M:")
" telescope
" Find files using Telescope command-line sugar.
nnoremap <leader>ff <cmd>Telescope find_files<cr>
nnoremap <leader>fg <cmd>Telescope live_grep<cr>
nnoremap <leader>fb <cmd>Telescope buffers<cr>
nnoremap <leader>fh <cmd>Telescope help_tags<cr>
" exit normal mode in terminal " exit normal mode in terminal
:tnoremap <C-n> <C-\><C-n> :tnoremap <C-n> <C-\><C-n>
@ -177,8 +192,14 @@ in
" open on directory " open on directory
autocmd StdinReadPre * let s:std_in=1 autocmd StdinReadPre * let s:std_in=1
" ALE + clj-kondo
let g:ale_linters = {'clojure': ['clj-kondo']}
" coc " coc
" "
" conjure extension
let g:coc_global_extensions = ['coc-conjure']
" if hidden is not set, TextEdit might fail. " if hidden is not set, TextEdit might fail.
set hidden set hidden

View file

@ -54,8 +54,10 @@ in
feh feh
mupdf mupdf
sublime-music sublime-music
vcv-rack
calibre calibre
nheko nheko
mpv
scrot scrot
newsflash newsflash
zeal zeal
@ -136,6 +138,7 @@ in
*.color239: #565761 *.color239: #565761
*.color240: #6272a4 *.color240: #6272a4
*.color241: #b6b6b2 *.color241: #b6b6b2
xsetroot -cursor_name left_ptr
EOF EOF
''; '';
lightdm.enable = true; lightdm.enable = true;

View file

@ -3,6 +3,7 @@
enable = true; enable = true;
nix-direnv = { nix-direnv = {
enable = true; enable = true;
enableFlakes = true;
}; };
}; };
} }

View file

@ -27,7 +27,7 @@
#set virtual_spoolfile=yes #set virtual_spoolfile=yes
set folder="~/Mail/" set folder="~/Mail/"
set mbox_type = Maildir set mbox_type = Maildir
mailboxes `find ~/Mail/anish/* -maxdepth 0 -type d | grep -v "tmp\|new\|cur" | sed 's|/home/asinha/Mail/|=\"|g' | sed 's|$|\"|g' | tr '\n' ' '` mailboxes `find ~/Mail/anish/* -maxdepth 0 -type d | grep -v "tmp\|new\|cur" | sed 's|/home/anish/Mail/|=\"|g' | sed 's|$|\"|g' | tr '\n' ' '`
## Folder with emails ## Folder with emails
#set folder = "~/Mail/anish" #set folder = "~/Mail/anish"