@@ -13,7 +13,7 @@
programs . vscode = {
enable = true ;
extensions = [ ] ;
extensions = [ ] ;
} ;
services . unclutter . enable = true ;
@@ -26,22 +26,24 @@
terminal = " s a k u r a " ;
} ;
xsession . windowManager . i3 = let
modifier = " M o d 4 " ;
in {
enable = true ;
config = {
assigns = {
# https://rycee.gitlab.io/home-manager/options.html#opt-xsession.windowManager.i3.config.assigns
} ;
focus = {
mouseWarping = false ; # Whether mouse cursor should be warped to the center of the window when switching focus to a window on a different output.
} ;
xsession . windowManager . i3 =
let
modifier = " M o d 4 " ;
in
{
enable = true ;
config = {
assigns = {
# https://rycee.gitlab.io/home-manager/options.html#opt-xsession.windowManager.i3.config.assigns
} ;
focus = {
mouseWarping = false ; # Whether mouse cursor should be warped to the center of the window when switching focus to a window on a different output.
} ;
modifier = modifier ;
modifier = modifier ;
# see https://rycee.gitlab.io/home-manager/options.html#opt-xsession.windowManager.i3.config.keybindings
keybindings = pkgs . lib . mkOptionDefault {
# see https://rycee.gitlab.io/home-manager/options.html#opt-xsession.windowManager.i3.config.keybindings
keybindings = pkgs . lib . mkOptionDefault {
" ${ modifier } + R e t u r n " = " e x e c s a k u r a " ; #i3-sensible-terminal
### BÉPO ###
@@ -99,21 +101,21 @@
" X F 8 6 M o n B r i g h t n e s s D o w n " = " e x e c l i g h t - U 2 " ; # decrease screen brightness
} ;
startup = [
{ command = " n e x t c l o u d " ; notification = false ; }
{ command = " s e t x k b m a p - l a y o u t f r - v a r i a n t b e p o " ; notification = false ; }
{ command = " u d i s k i e " ; notification = false ; }
{ command = " c o p y q " ; notification = false ; }
{ command = " n u m l o c k x o n " ; notification = false ; } # turn verr num on
startup = [
{ command = " n e x t c l o u d " ; notification = false ; }
{ command = " s e t x k b m a p - l a y o u t f r - v a r i a n t b e p o " ; notification = false ; }
{ command = " u d i s k i e " ; notification = false ; }
{ command = " c o p y q " ; notification = false ; }
{ command = " n u m l o c k x o n " ; notification = false ; } # turn verr num on
{ command = " a u t o r a n d r - c " ; notification = false ; }
{ command = " f e h - - b g - s c a l e / h o m e / p i e r r e / D o c u m e n t s / G r a p h i s m e / f c - b g - l i g h t - b l a c k . p n g " ; notification = false ; }
{ command = " a u t o r a n d r - c " ; notification = false ; }
{ command = " f e h - - b g - s c a l e / h o m e / p i e r r e / D o c u m e n t s / G r a p h i s m e / f c - b g - l i g h t - b l a c k . p n g " ; notification = false ; }
# docker run -d --net traefik --ip 172.10.0.10 --restart always -v /var/run/docker.sock:/var/run/docker.sock:ro --name traefik -p 80:80 -p 8080:8080 traefik:2.4.9 --api.insecure=true --providers.docker
{ command = " d o c k e r s t a r t t r a e f i k " ; notification = false ; }
] ;
# docker run -d --net traefik --ip 172.10.0.10 --restart always -v /var/run/docker.sock:/var/run/docker.sock:ro --name traefik -p 80:80 -p 8080:8080 traefik:2.4.9 --api.insecure=true --providers.docker
{ command = " d o c k e r s t a r t t r a e f i k " ; notification = false ; }
] ;
} ;
} ;
} ;
programs . zsh = {
enable = true ;
@@ -145,43 +147,43 @@
# `$` must be escaped with `''` :metal:
# source: https://nixos.org/nix-dev/2015-December/019018.html
initExtra = ''
b i n d k e y ' ' f o r w a r d - w o r d
z s t y l e ' : c o m p l e t i o n : * : h o s t s ' h o s t s ''$ { = ''$ { ''$ { ''$ { ''$ { ( @ M ) ''$ { ( f ) " ''$ ( c a t ~ / . s s h / c o n f i g 2 > / d e v / n u l l ) " } : # H o s t * } # H o s t } : # * \ * * } : # * \ ? * } }
s e t o p t P R O M P T _ C R
s e t o p t P R O M P T _ S P
b i n d k e y ' ' f o r w a r d - w o r d
z s t y l e ' : c o m p l e t i o n : * : h o s t s ' h o s t s ''$ { = ''$ { ''$ { ''$ { ''$ { ( @ M ) ''$ { ( f ) " ''$ ( c a t ~ / . s s h / c o n f i g 2 > / d e v / n u l l ) " } : # H o s t * } # H o s t } : # * \ * * } : # * \ ? * } }
s e t o p t P R O M P T _ C R
s e t o p t P R O M P T _ S P
m 2 w i p e ( ) {
e c h o " P o u f p o u f p o u f … "
s u d o r m - r f $1 / g e n e r a t e d $1 / v a r / c a c h e / * * / * $1 / p u b / s t a t i c / * $1 / v a r / p a g e _ c a c h e $1 / v a r / v i e w _ p r e p r o c e s s e d
m k d i r $1 / g e n e r a t e d
s u d o c h m o d - R 7 7 7 $1 / { v a r , p u b , g e n e r a t e d , a p p / e t c }
e c h o " … t c h a k ! "
}
m 2 w i p e ( ) {
e c h o " P o u f p o u f p o u f … "
s u d o r m - r f $1 / g e n e r a t e d $1 / v a r / c a c h e / * * / * $1 / p u b / s t a t i c / * $1 / v a r / p a g e _ c a c h e $1 / v a r / v i e w _ p r e p r o c e s s e d
m k d i r $1 / g e n e r a t e d
s u d o c h m o d - R 7 7 7 $1 / { v a r , p u b , g e n e r a t e d , a p p / e t c }
e c h o " … t c h a k ! "
}
d c r e f r e s h ( ) {
d c s t o p - t 0 $1 & & d c r m - v f $1 & & d c u p - d $1
}
d c r e f r e s h ( ) {
d c s t o p - t 0 $1 & & d c r m - v f $1 & & d c u p - d $1
}
a k a m a i ( ) {
# s e e h t t p s : / / g i s t . g i t h u b . c o m / s a m l / 4 7 5 8 3 6 0
c u r l - v - s - H " P r a g m a : a k a m a i - x - c a c h e - o n , a k a m a i - x - c a c h e - r e m o t e - o n , a k a m a i - x - c h e c k - c a c h e a b l e , a k a m a i - x - g e t - c a c h e - k e y , a k a m a i - x - g e t - e x t r a c t e d - v a l u e s , a k a m a i - x - g e t - n o n c e s , a k a m a i - x - g e t - s s l - c l i e n t - s e s s i o n - i d , a k a m a i - x - g e t - t r u e - c a c h e - k e y , a k a m a i - x - s e r " " $1 " 2 > & 1 > / d e v / n u l l
}
a k a m a i ( ) {
# s e e h t t p s : / / g i s t . g i t h u b . c o m / s a m l / 4 7 5 8 3 6 0
c u r l - v - s - H " P r a g m a : a k a m a i - x - c a c h e - o n , a k a m a i - x - c a c h e - r e m o t e - o n , a k a m a i - x - c h e c k - c a c h e a b l e , a k a m a i - x - g e t - c a c h e - k e y , a k a m a i - x - g e t - e x t r a c t e d - v a l u e s , a k a m a i - x - g e t - n o n c e s , a k a m a i - x - g e t - s s l - c l i e n t - s e s s i o n - i d , a k a m a i - x - g e t - t r u e - c a c h e - k e y , a k a m a i - x - s e r " " $1 " 2 > & 1 > / d e v / n u l l
}
u n a l i a s v
u n a l i a s v
# s e e h t t p s : / / g i t h u b . c o m / c a n t i n o / m c f l y
e x p o r t M C F L Y _ F U Z Z Y = t r u e
e v a l " $( m c f l y i n i t z s h ) "
# s e e h t t p s : / / g i t h u b . c o m / c a n t i n o / m c f l y
e x p o r t M C F L Y _ F U Z Z Y = t r u e
e v a l " $( m c f l y i n i t z s h ) "
e v a l " $( o p c o m p l e t i o n z s h ) " ; c o m p d e f _ o p o p
e v a l " $( o p c o m p l e t i o n z s h ) " ; c o m p d e f _ o p o p
e v a l " $( g l a b c o m p l e t i o n - s z s h ) "
e v a l " $( g l a b c o m p l e t i o n - s z s h ) "
# K 8 s
s o u r c e < ( h e l m c o m p l e t i o n z s h )
s o u r c e < ( k 3 d c o m p l e t i o n z s h )
s o u r c e < ( k u b e c t l c o m p l e t i o n z s h )
'' ;
# K 8 s
s o u r c e < ( h e l m c o m p l e t i o n z s h )
s o u r c e < ( k 3 d c o m p l e t i o n z s h )
s o u r c e < ( k u b e c t l c o m p l e t i o n z s h )
'' ;
sessionVariables = {
EDITOR = " v i m " ;
@@ -191,14 +193,14 @@ source <(kubectl completion zsh)
} ;
shellAliases = {
a = " f a s d - a " ; # any
s = " f a s d - s i " ; # show / search / select
d = " f a s d - d " ; # directory
f = " f a s d - f " ; # file
sd = " f a s d - s i d " ; # interactive directory selection
sf = " f a s d - s i f " ; # interactive file selection
z = " f a s d _ c d - d " ; # cd, same functionality as j in autojump
j = " f a s d _ c d - d " ; # cd, same functionality as j in autojump
a = " f a s d - a " ; # any
s = " f a s d - s i " ; # show / search / select
d = " f a s d - d " ; # directory
f = " f a s d - f " ; # file
sd = " f a s d - s i d " ; # interactive directory selection
sf = " f a s d - s i f " ; # interactive file selection
z = " f a s d _ c d - d " ; # cd, same functionality as j in autojump
j = " f a s d _ c d - d " ; # cd, same functionality as j in autojump
zz = " f a s d _ c d - d - i " ; # cd with interactive selection
dc = " d o c k e r - c o m p o s e " ;