Compare commits
3 Commits
08e8bd46c6
...
6280c773da
Author | SHA1 | Date |
---|---|---|
Alexandre LUCAZEAU | 6280c773da | |
Alexandre LUCAZEAU | 6a4bfd0ba8 | |
Alexandre LUCAZEAU | a271956d6a |
|
@ -12,6 +12,7 @@
|
||||||
./services.nix
|
./services.nix
|
||||||
./packages.nix
|
./packages.nix
|
||||||
# ./vpn.nix
|
# ./vpn.nix
|
||||||
|
# ./VPN.nix
|
||||||
../modules/prometheus-node.nix
|
../modules/prometheus-node.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -23,6 +24,10 @@
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
zsh.enable = true;
|
zsh.enable = true;
|
||||||
|
htop = {
|
||||||
|
enable = true;
|
||||||
|
settings.show_cpu_temperature = 1;
|
||||||
|
};
|
||||||
fish = {
|
fish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
|
@ -115,7 +120,7 @@
|
||||||
unmanaged = [ "interface-name:ve-*" ];
|
unmanaged = [ "interface-name:ve-*" ];
|
||||||
};
|
};
|
||||||
firewall.enable = true;
|
firewall.enable = true;
|
||||||
firewall.allowedTCPPorts = [ 24800 6600 ];
|
firewall.allowedTCPPorts = [ 24800 6600 1194];
|
||||||
};
|
};
|
||||||
|
|
||||||
i18n.defaultLocale = "fr_FR.UTF-8";
|
i18n.defaultLocale = "fr_FR.UTF-8";
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
{ pkgs, ... }: {
|
||||||
|
virtualisation.virtualbox.host.enable = true;
|
||||||
|
virtualisation.virtualbox.host.enableExtensionPack = true;
|
||||||
|
users.extraGroups.vboxusers.members = [ "alexandre" ];
|
||||||
|
}
|
|
@ -1,15 +0,0 @@
|
||||||
{ 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";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
|
@ -13,15 +13,9 @@
|
||||||
|
|
||||||
|
|
||||||
(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)
|
||||||
|
|
||||||
|
@ -109,20 +103,6 @@
|
||||||
"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)
|
||||||
|
@ -130,40 +110,36 @@
|
||||||
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 '("~/Nextcloud/PRIVE/13_Org/journal"))
|
(setq org-agenda-files '("/home/alexandre/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)
|
||||||
:bind (("C-c n f" . org-roam-node-find)
|
(org-roam-db-autosync-mode)
|
||||||
("C-c n r" . org-roam-node-random)
|
:bind (("C-c n f" . org-roam-node-find)
|
||||||
(:map org-mode-map
|
("C-c n r" . org-roam-node-random)
|
||||||
(("C-c n i" . org-roam-node-insert)
|
(:map org-mode-map
|
||||||
("C-c n o" . org-id-get-create)
|
(("C-c n i" . org-roam-node-insert)
|
||||||
("C-c n t" . org-roam-tag-add)
|
("C-c n o" . org-id-get-create)
|
||||||
("C-c n a" . org-roam-alias-add)
|
("C-c n t" . org-roam-tag-add)
|
||||||
("C-c n l" . org-roam-buffer-toggle)
|
("C-c n a" . org-roam-alias-add)
|
||||||
("C-c n o" . org-open-at-point)
|
("C-c n l" . org-roam-buffer-toggle)
|
||||||
("C-M-i" . completion-at-point))))
|
("C-c n o" . org-open-at-point)
|
||||||
(:map org-roam-dailies-map
|
("C-M-i" . completion-at-point)))))
|
||||||
(("Y" . org-roam-dailies-capture-yesterday)
|
;; (:map org-roam-dailies-map
|
||||||
("T" . org-roam-dailies-capture-tomorrow)))
|
;; (("Y" . org-roam-dailies-capture-yesterday)
|
||||||
:bind-keymap
|
;; ("T" . org-roam-dailies-capture-tomorrow))))
|
||||||
("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
|
||||||
|
@ -181,14 +157,16 @@
|
||||||
|
|
||||||
;; 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" "WAIT" "DONE")))
|
(setq org-todo-keywords '((type "TODO" "En cours" "WAIT" "CANCELED" "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)))
|
(setq org-tag-alist '(("DEVIS" . ?d) ("PROJETS" . ?p) ("CLIENT" . ?c) ("PROSPECT" . ?o) ("INTERNE" . ?i) ("AO" . ?a) ("PJ" . ?z) ("AVV" . ?v)))
|
||||||
|
|
||||||
|
|
||||||
(setq org-tag-faces
|
(setq org-tag-faces
|
||||||
|
@ -205,20 +183,11 @@
|
||||||
;;; Org-journal
|
;;; Org-journal
|
||||||
;; https://github.com/bastibe/org-journal
|
;; https://github.com/bastibe/org-journal
|
||||||
;; C-c C-j
|
;; C-c C-j
|
||||||
(setq org-journal-date-prefix "#+TITLE: ")
|
|
||||||
(setq org-journal-time-prefix "* ")
|
|
||||||
(setq org-journal-date-format "%a, %Y-%m-%d")
|
|
||||||
(setq org-journal-file-format "%Y-%m-%d-journal.org")
|
|
||||||
(setq org-journal-dir "~/Nextcloud/PRIVE/13_Org/journal/")
|
|
||||||
(global-set-key "\C-cnj" 'org-journal-new-entry)
|
|
||||||
(require 'org-journal)
|
(require 'org-journal)
|
||||||
|
(setq org-journal-date-prefix "#+TITLE: "
|
||||||
;; tab bar
|
org-journal-carryover-items "-TODO=\"DONE\""
|
||||||
(when (< 26 emacs-major-version)
|
org-journal-time-prefix "* "
|
||||||
(tab-bar-mode 1) ;; enable tab bar
|
org-journal-date-format "%a, %Y-%m-%d"
|
||||||
(setq tab-bar-show 1) ;; hide bar if <= 1 tabs open
|
org-journal-file-format "%Y-%m-%d-journal.org"
|
||||||
(setq tab-bar-close-button-show nil) ;; hide tab close / X button
|
org-journal-dir "/home/alexandre/Nextcloud/PRIVE/13_Org/journal/")
|
||||||
(setq tab-bar-new-tab-choice "*dashboard*");; buffer to show in new tabs
|
(global-set-key "\C-cnj" 'org-journal-new-entry)
|
||||||
(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
|
|
||||||
|
|
|
@ -23,7 +23,11 @@
|
||||||
tls.enable = false;
|
tls.enable = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
mbsync.enable = true;
|
mbsync = {
|
||||||
|
enable = true;
|
||||||
|
create = "both";
|
||||||
|
expunge = "both";
|
||||||
|
};
|
||||||
notmuch.enable = true;
|
notmuch.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -67,6 +67,8 @@
|
||||||
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"
|
||||||
|
|
Loading…
Reference in New Issue