parent
5ac0b0664c
commit
5f9e65a1b3
|
@ -11,6 +11,7 @@
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./services.nix
|
./services.nix
|
||||||
./packages.nix
|
./packages.nix
|
||||||
|
# ./vpn.nix
|
||||||
../modules/prometheus-node.nix
|
../modules/prometheus-node.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -51,7 +52,9 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
extraConfig =''
|
extraConfig =''
|
||||||
load-module module-switch-on-connect
|
load-module module-switch-on-connect
|
||||||
|
extraModules = [ pkgs.pulseaudio-modules-bt ];
|
||||||
'';
|
'';
|
||||||
|
package = pkgs.pulseaudioFull;
|
||||||
};
|
};
|
||||||
sane = {
|
sane = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -164,7 +167,7 @@
|
||||||
TERMINAL = "xfce4-terminal";
|
TERMINAL = "xfce4-terminal";
|
||||||
PRIVATE_BROWSER = "firefox -private";
|
PRIVATE_BROWSER = "firefox -private";
|
||||||
};
|
};
|
||||||
|
environment.systemPackages = [ pkgs.openvpn_24 ];
|
||||||
users = {
|
users = {
|
||||||
users.ntp.group = "ntp";
|
users.ntp.group = "ntp";
|
||||||
groups.ntp = {};
|
groups.ntp = {};
|
||||||
|
|
|
@ -6,7 +6,11 @@
|
||||||
services = {
|
services = {
|
||||||
printing = {
|
printing = {
|
||||||
enable = true;
|
enable = true;
|
||||||
drivers = [ pkgs.brlaser ];
|
drivers = [ pkgs.brlaser pkgs.hplip];
|
||||||
|
};
|
||||||
|
avahi = {
|
||||||
|
enable = true;
|
||||||
|
openFirewall = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
blueman = {
|
blueman = {
|
||||||
|
|
|
@ -143,7 +143,7 @@ exec --no-startup-id nm-applet
|
||||||
exec --no-startup-id nextcloud
|
exec --no-startup-id nextcloud
|
||||||
exec --no-startup-id udiskie -t
|
exec --no-startup-id udiskie -t
|
||||||
exec --no-startup-id blueman-applet
|
exec --no-startup-id blueman-applet
|
||||||
exec --no-startup-id sublime-music
|
exec --no-startup-id vlc
|
||||||
exec --no-startup-id guake
|
exec --no-startup-id guake
|
||||||
exec --no-startup-id i3-msg 'workspace $ws9; exec keepassxc;'
|
exec --no-startup-id i3-msg 'workspace $ws9; exec keepassxc;'
|
||||||
#exec --no-startup-id i3-msg 'workspace $ws5; exec emacs;'
|
#exec --no-startup-id i3-msg 'workspace $ws5; exec emacs;'
|
||||||
|
@ -153,3 +153,5 @@ exec --no-startup-id i3-msg 'workspace $ws3; exec firefox;'
|
||||||
|
|
||||||
exec --no-startup-id xset s off
|
exec --no-startup-id xset s off
|
||||||
exec --no-startup-id xset -dpms
|
exec --no-startup-id xset -dpms
|
||||||
|
|
||||||
|
tiling_drag modifier titlebar
|
||||||
|
|
|
@ -157,7 +157,8 @@
|
||||||
:config
|
:config
|
||||||
(setq org-startup-folded t)
|
(setq org-startup-folded t)
|
||||||
(setq org-agenda-files
|
(setq org-agenda-files
|
||||||
"~/Nextcloud/PRIVE/13_Org/agenda.org")
|
"~/Nextcloud/PRIVE/13_Org/agenda-DRI.org"
|
||||||
|
"~/Nextcloud/PRIVE/13_Org/perso.org")
|
||||||
(setq org-refile-use-outline-path 'file)
|
(setq org-refile-use-outline-path 'file)
|
||||||
(setq org-refile-targets
|
(setq org-refile-targets
|
||||||
'(("~/Nextcloud/PRIVE/13_Org/DRI.org" :maxlevel . 3)
|
'(("~/Nextcloud/PRIVE/13_Org/DRI.org" :maxlevel . 3)
|
||||||
|
@ -170,10 +171,18 @@
|
||||||
("PENDING" . (:background "#3f444a" :foreground "#ff6c6b" :weight bold))))
|
("PENDING" . (:background "#3f444a" :foreground "#ff6c6b" :weight bold))))
|
||||||
(setq org-capture-templates
|
(setq org-capture-templates
|
||||||
'(("i" "Inbox" entry (file "~/Nextcloud/PRIVE/13_Org/DRI.org") "* TODO %i%?")
|
'(("i" "Inbox" entry (file "~/Nextcloud/PRIVE/13_Org/DRI.org") "* TODO %i%?")
|
||||||
("a" "Agenda" entry (file "~/Nextcloud/PRIVE/13_Org/agenda.org") "* TODO %i%?\nSCHEDULED: %(org-insert-time-stamp (org-read-date nil t \"+0d\"))")))
|
("a" "Agenda" entry (file "~/Nextcloud/PRIVE/13_Org/agenda-DRI.org") "* TODO %i%?\nSCHEDULED: %(org-insert-time-stamp (org-read-date nil t \"+0d\"))")))
|
||||||
(setq org-agenda-custom-commands
|
(setq org-agenda-custom-commands
|
||||||
'(("t" "Today" tags-todo "+LEVEL=1+CATEGORY=\"tasks\"|+SCHEDULED<=\"<today>\"|+DEADLINE<=\"<today>\""))))
|
'(("t" "Today" tags-todo "+LEVEL=1+CATEGORY=\"tasks\"|+SCHEDULED<=\"<today>\"|+DEADLINE<=\"<today>\""))))
|
||||||
|
|
||||||
|
(setq org-caldav-url "https://next20.produhost.net/remote.php/dav/calendars/alexandre")
|
||||||
|
(setq org-caldav-calendars
|
||||||
|
'((:calendar-id "alexandre-dri" :files ("~/Nextcloud/PRIVE/13_Org/agenda.org")
|
||||||
|
:inbox "~/Nextcloud/PRIVE/13_Org/agenda-DRI.org")
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
(use-package magit)
|
(use-package magit)
|
||||||
(setq magit-fetch-modules-jobs 16); fetch 16 modules in parallel
|
(setq magit-fetch-modules-jobs 16); fetch 16 modules in parallel
|
||||||
|
|
||||||
|
@ -263,7 +272,7 @@
|
||||||
#+end_signature")
|
#+end_signature")
|
||||||
(org-msg-mode)
|
(org-msg-mode)
|
||||||
;; Org-Roam basic configuration
|
;; Org-Roam basic configuration
|
||||||
(setq org-directory (concat (getenv "HOME") "/Nextcloud/PRIVE/notes"))
|
(setq org-directory (concat (getenv "HOME") "/Nextcloud/PRIVE/13_Org"))
|
||||||
|
|
||||||
(use-package org-roam
|
(use-package org-roam
|
||||||
:after org
|
:after org
|
||||||
|
@ -280,3 +289,11 @@
|
||||||
("C-c n t" . org-roam-tag-add)
|
("C-c n t" . org-roam-tag-add)
|
||||||
("C-c n a" . org-roam-alias-add)
|
("C-c n a" . org-roam-alias-add)
|
||||||
("C-c n l" . org-roam-buffer-toggle)))))
|
("C-c n l" . org-roam-buffer-toggle)))))
|
||||||
|
(autoload 'markdown-mode "markdown-mode"
|
||||||
|
"Major mode for editing Markdown files" t)
|
||||||
|
(add-to-list 'auto-mode-alist
|
||||||
|
'("\\.\\(?:md\\|markdown\\|mkd\\|mdown\\|mkdn\\|mdwn\\)\\'" . markdown-mode))
|
||||||
|
|
||||||
|
(autoload 'gfm-mode "markdown-mode"
|
||||||
|
"Major mode for editing GitHub Flavored Markdown files" t)
|
||||||
|
(add-to-list 'auto-mode-alist '("README\\.md\\'" . gfm-mode))
|
||||||
|
|
|
@ -21,7 +21,9 @@
|
||||||
org
|
org
|
||||||
org-roam
|
org-roam
|
||||||
org-msg
|
org-msg
|
||||||
|
org-caldav
|
||||||
magit
|
magit
|
||||||
|
evil
|
||||||
bbdb
|
bbdb
|
||||||
projectile
|
projectile
|
||||||
flycheck
|
flycheck
|
||||||
|
@ -31,6 +33,7 @@
|
||||||
lsp-ivy
|
lsp-ivy
|
||||||
which-key
|
which-key
|
||||||
elpaPackages.org
|
elpaPackages.org
|
||||||
|
markdown-mode
|
||||||
]));
|
]));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
# ./redshift.nix
|
# ./redshift.nix
|
||||||
# ../../../modules/neovim.nix
|
# ../../../modules/neovim.nix
|
||||||
../../../modules/rust.nix
|
../../../modules/rust.nix
|
||||||
|
../../../modules/tmux.nix
|
||||||
];
|
];
|
||||||
home.keyboard = {
|
home.keyboard = {
|
||||||
layout = "fr";
|
layout = "fr";
|
||||||
|
|
|
@ -63,8 +63,13 @@
|
||||||
vlc
|
vlc
|
||||||
ferdi
|
ferdi
|
||||||
pinta
|
pinta
|
||||||
|
openvpn_24
|
||||||
|
networkmanager-openvpn
|
||||||
|
python39Packages.grip
|
||||||
|
super-productivity
|
||||||
];
|
];
|
||||||
nixpkgs.config.permittedInsecurePackages = [
|
nixpkgs.config.permittedInsecurePackages = [
|
||||||
"ferdi-5.8.1"
|
"ferdi-5.8.1"
|
||||||
|
"electron-17.4.1"
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,67 @@
|
||||||
|
{ pkgs, config, ... }:
|
||||||
|
{
|
||||||
|
programs.tmux = {
|
||||||
|
enable = true;
|
||||||
|
shortcut = "a";
|
||||||
|
# aggressiveResize = true; -- Disabled to be iTerm-friendly
|
||||||
|
baseIndex = 1;
|
||||||
|
newSession = true;
|
||||||
|
# Stop tmux+escape craziness.
|
||||||
|
escapeTime = 0;
|
||||||
|
# Force tmux to use /tmp for sockets (WSL2 compat)
|
||||||
|
secureSocket = false;
|
||||||
|
|
||||||
|
plugins = with pkgs; [
|
||||||
|
tmuxPlugins.better-mouse-mode
|
||||||
|
tmuxPlugins.sidebar
|
||||||
|
# tmuxPlugins.tmux-power
|
||||||
|
];
|
||||||
|
|
||||||
|
extraConfig = ''
|
||||||
|
# scrollback size
|
||||||
|
set -g history-limit 50000
|
||||||
|
# https://old.reddit.com/r/tmux/comments/mesrci/tmux_2_doesnt_seem_to_use_256_colors/
|
||||||
|
set -g default-terminal "xterm-256color"
|
||||||
|
set -ga terminal-overrides ",*256col*:Tc"
|
||||||
|
set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q'
|
||||||
|
set-environment -g COLORTERM "truecolor"
|
||||||
|
|
||||||
|
# Mouse works as expected
|
||||||
|
set-option -g mouse on
|
||||||
|
# Redraw the client (if interrupted by wall, etc)
|
||||||
|
bind R refresh-client
|
||||||
|
# reload tmux config with ctrl + b + r
|
||||||
|
unbind r
|
||||||
|
bind r \
|
||||||
|
source-file ~/.tmux.conf \;\
|
||||||
|
display 'Reloaded tmux config.'
|
||||||
|
# C + control q to kill sessio
|
||||||
|
unbind q
|
||||||
|
unbind C-q
|
||||||
|
bind-key q kill-session
|
||||||
|
bind-key C-q kill-session
|
||||||
|
|
||||||
|
# Switching panes with alt
|
||||||
|
bind -n M-Left select-pane -L
|
||||||
|
bind -n M-Right select-pane -R
|
||||||
|
bind -n M-Up select-pane -U
|
||||||
|
bind -n M-Down select-pane -D
|
||||||
|
|
||||||
|
# Visual Activity Monitoring between windows
|
||||||
|
setw -g monitor-activity on
|
||||||
|
set -g visual-activity on
|
||||||
|
|
||||||
|
# Show tmux positions in titles
|
||||||
|
set -g set-titles on
|
||||||
|
|
||||||
|
# Attach to a session if runs otherwise create a new one
|
||||||
|
new-session -n $HOST
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
# programs.tmate = {
|
||||||
|
# enable = true;
|
||||||
|
# FIXME: This causes tmate to hang.
|
||||||
|
# extraConfig = config.xdg.configFile."tmux/tmux.conf".text;
|
||||||
|
# };
|
||||||
|
}
|
Loading…
Reference in New Issue