Compare commits

..

No commits in common. "6280c773dacf8c017ce9fe14f4a86c65093bcc42" and "08e8bd46c6fe6e248fc618d20cd1b33f66f8493a" have entirely different histories.

6 changed files with 84 additions and 54 deletions

View File

@ -12,7 +12,6 @@
./services.nix ./services.nix
./packages.nix ./packages.nix
# ./vpn.nix # ./vpn.nix
# ./VPN.nix
../modules/prometheus-node.nix ../modules/prometheus-node.nix
]; ];
@ -24,10 +23,6 @@
programs = { programs = {
zsh.enable = true; zsh.enable = true;
htop = {
enable = true;
settings.show_cpu_temperature = 1;
};
fish = { fish = {
enable = true; enable = true;
shellAliases = { shellAliases = {
@ -120,7 +115,7 @@
unmanaged = [ "interface-name:ve-*" ]; unmanaged = [ "interface-name:ve-*" ];
}; };
firewall.enable = true; firewall.enable = true;
firewall.allowedTCPPorts = [ 24800 6600 1194]; firewall.allowedTCPPorts = [ 24800 6600 ];
}; };
i18n.defaultLocale = "fr_FR.UTF-8"; i18n.defaultLocale = "fr_FR.UTF-8";

View File

@ -1,5 +0,0 @@
{ pkgs, ... }: {
virtualisation.virtualbox.host.enable = true;
virtualisation.virtualbox.host.enableExtensionPack = true;
users.extraGroups.vboxusers.members = [ "alexandre" ];
}

View File

@ -0,0 +1,15 @@
{ pkgs, lib, config, ... }:
{
environment.systemPackages = [ pkgs.openvpn_24 ];
services.openvpn = {
servers = {
DRI = {
config = "config /home/alexandre/VPN/Serveur_VPN_pour_le_SI_DRI_alexandre_admin.ovpn";
updateResolvConf = true;
up = "ip route add default gw 192.168.248.73\nroute add -host 185.86.178.201 dev wlp2s0 gw 192.168.1.1\necho nameserver $nameserver | ${pkgs.openresolv}/sbin/resolvconf -m 0 -a $dev";
down = "ip route del default gw 192.168.248.73\nroute del -host 185.86.178.201 dev wlp2s0 gw 192.168.1.1\n${pkgs.openresolv}/sbin/resolvconf -d $dev";
};
};
};
}

View File

@ -13,9 +13,15 @@
(column-number-mode 't) ; show current column in status bar (column-number-mode 't) ; show current column in status bar
(add-hook 'text-mode-hook 'turn-on-auto-fill)
(set-fringe-mode 10) (set-fringe-mode 10)
;;;; Indent 4 spaces by default. Use the "BSD" style for C-like languages.
;;(setq c-default-style
;; (quote ((java-mode . "java")
;; (awk-mode . "awk")
;; (other . "bsd")))
;; c-basic-offset 4)
;; Use 4 spaces for one tab visually. ;; Use 4 spaces for one tab visually.
(setq tab-width 4) (setq tab-width 4)
@ -103,6 +109,20 @@
"Major mode for editing GitHub Flavored Markdown files" t) "Major mode for editing GitHub Flavored Markdown files" t)
(add-to-list 'auto-mode-alist '("README\\.md\\'" . gfm-mode)) (add-to-list 'auto-mode-alist '("README\\.md\\'" . gfm-mode))
(use-package org-caldav
:ensure t
:config
(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")
)
)
(setq org-caldav-delete-org-entries 'never)
(setq org-caldav-delete-calenda-entries 'never)
(setq org-icalendar-timezone "Europe/Paris")
)
;; org-mode ;; org-mode
(require 'org) (require 'org)
(require 'org-mouse) (require 'org-mouse)
@ -110,36 +130,40 @@
org-pretty-entities t org-pretty-entities t
org-hide-emphasis-markers t org-hide-emphasis-markers t
org-startup-with-inline-images t org-startup-with-inline-images t
org-agenda-include-deadlines t
org-image-actual-width '(300)) org-image-actual-width '(300))
;; files with ".org" open in org-mode ;; files with ".org" open in org-mode
(add-to-list 'auto-mode-alist '("\\.org$" . org-mode)) (add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
(setq org-agenda-files '("/home/alexandre/Nextcloud/PRIVE/13_Org/journal")) (setq org-agenda-files '("~/Nextcloud/PRIVE/13_Org/journal"))
(setq org-directory (concat (getenv "HOME") "/Nextcloud/PRIVE/13_Org/notes")) ;;;;;;
;; Org-Roam basic configuration ;; Org-Roam basic configuration
(setq org-directory (concat (getenv "HOME") "/Nextcloud/PRIVE/13_Org/notes"))
(use-package org-roam (use-package org-roam
:after org :after org
:init (setq org-roam-v2-ack t) ;; Acknowledge V2 upgrade :init (setq org-roam-v2-ack t) ;; Acknowledge V2 upgrade
:custom :custom
(org-roam-directory (file-truename org-directory)) (org-roam-directory (file-truename org-directory))
:config :config
(org-roam-setup) (org-roam-setup)
(org-roam-db-autosync-mode) :bind (("C-c n f" . org-roam-node-find)
:bind (("C-c n f" . org-roam-node-find) ("C-c n r" . org-roam-node-random)
("C-c n r" . org-roam-node-random) (:map org-mode-map
(:map org-mode-map (("C-c n i" . org-roam-node-insert)
(("C-c n i" . org-roam-node-insert) ("C-c n o" . org-id-get-create)
("C-c n o" . org-id-get-create) ("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) ("C-c n o" . org-open-at-point)
("C-c n o" . org-open-at-point) ("C-M-i" . completion-at-point))))
("C-M-i" . completion-at-point))))) (:map org-roam-dailies-map
;; (:map org-roam-dailies-map (("Y" . org-roam-dailies-capture-yesterday)
;; (("Y" . org-roam-dailies-capture-yesterday) ("T" . org-roam-dailies-capture-tomorrow)))
;; ("T" . org-roam-dailies-capture-tomorrow)))) :bind-keymap
("C-c n d" . org-roam-dailies-map)
:config
(require 'org-roam-dailies) ;; Ensure the keymap is available
(org-roam-db-autosync-mode))
;; one file org ;; one file org
@ -157,16 +181,14 @@
;; This seems like a good basic set of keywords to start out with: ;; This seems like a good basic set of keywords to start out with:
(setq org-todo-keywords '((type "TODO" "En cours" "WAIT" "CANCELED" "DONE"))) (setq org-todo-keywords '((type "TODO" "WAIT" "DONE")))
(setf org-todo-keyword-faces '(("TODO" . (:foreground "cyan" :background "steelblue" :bold t :weight bold)) (setf org-todo-keyword-faces '(("TODO" . (:foreground "cyan" :background "steelblue" :bold t :weight bold))
("En cours" . (:foreground "yellow" :background "red" :bold t :weight bold))
("WAIT" . (:foreground "yellow" :background "magenta2" :bold t :weight bold)) ("WAIT" . (:foreground "yellow" :background "magenta2" :bold t :weight bold))
("CANCELED" . (:foreground "gray" :background "dime grey" :bold t :weight bold))
("DONE" . (:foreground "gray50" :background "gray30")))) ("DONE" . (:foreground "gray50" :background "gray30"))))
;; tags ;; tags
(setq org-tag-alist '(("DEVIS" . ?d) ("PROJETS" . ?p) ("CLIENT" . ?c) ("PROSPECT" . ?o) ("INTERNE" . ?i) ("AO" . ?a) ("PJ" . ?z) ("AVV" . ?v))) (setq org-tag-alist '(("DEVIS" . ?d) ("PROJETS" . ?p) ("CLIENT" . ?c) ("PROSPECT" . ?o) ("INTERNE" . ?i) ("AO" . ?a) ("PJ" . ?z)))
(setq org-tag-faces (setq org-tag-faces
@ -183,11 +205,20 @@
;;; Org-journal ;;; Org-journal
;; https://github.com/bastibe/org-journal ;; https://github.com/bastibe/org-journal
;; C-c C-j ;; C-c C-j
(require 'org-journal) (setq org-journal-date-prefix "#+TITLE: ")
(setq org-journal-date-prefix "#+TITLE: " (setq org-journal-time-prefix "* ")
org-journal-carryover-items "-TODO=\"DONE\"" (setq org-journal-date-format "%a, %Y-%m-%d")
org-journal-time-prefix "* " (setq org-journal-file-format "%Y-%m-%d-journal.org")
org-journal-date-format "%a, %Y-%m-%d" (setq org-journal-dir "~/Nextcloud/PRIVE/13_Org/journal/")
org-journal-file-format "%Y-%m-%d-journal.org"
org-journal-dir "/home/alexandre/Nextcloud/PRIVE/13_Org/journal/")
(global-set-key "\C-cnj" 'org-journal-new-entry) (global-set-key "\C-cnj" 'org-journal-new-entry)
(require 'org-journal)
;; tab bar
(when (< 26 emacs-major-version)
(tab-bar-mode 1) ;; enable tab bar
(setq tab-bar-show 1) ;; hide bar if <= 1 tabs open
(setq tab-bar-close-button-show nil) ;; hide tab close / X button
(setq tab-bar-new-tab-choice "*dashboard*");; buffer to show in new tabs
(setq tab-bar-tab-hints t) ;; show tab numbers
(setq tab-bar-format '(tab-bar-format-tabs tab-bar-separator)))
;; elements to include in bar

View File

@ -23,11 +23,7 @@
tls.enable = false; tls.enable = false;
}; };
mbsync = { mbsync.enable = true;
enable = true;
create = "both";
expunge = "both";
};
notmuch.enable = true; notmuch.enable = true;
}; };
}; };

View File

@ -67,8 +67,6 @@
networkmanager-openvpn networkmanager-openvpn
python39Packages.grip python39Packages.grip
linphone linphone
graphviz
evince
]; ];
nixpkgs.config.permittedInsecurePackages = [ nixpkgs.config.permittedInsecurePackages = [
"ferdi-5.8.1" "ferdi-5.8.1"