Compare commits
4 Commits
db86f8de7a
...
9f96f8d62c
Author | SHA1 | Date |
---|---|---|
Alexandre LUCAZEAU | 9f96f8d62c | |
Alexandre LUCAZEAU | d4618ce2e1 | |
Alexandre LUCAZEAU | 65a7bec7b4 | |
Alexandre LUCAZEAU | 1906ea3e11 |
|
@ -174,6 +174,13 @@ environment.systemPackages = [ pkgs.openvpn_24 ];
|
||||||
users.ntp.group = "ntp";
|
users.ntp.group = "ntp";
|
||||||
groups.ntp = {};
|
groups.ntp = {};
|
||||||
defaultUserShell = "/run/current-system/sw/bin/fish";
|
defaultUserShell = "/run/current-system/sw/bin/fish";
|
||||||
|
extraUsers.oem = {
|
||||||
|
isNormalUser = true;
|
||||||
|
home = "/home/oem";
|
||||||
|
description = "oem";
|
||||||
|
extraGroups = [ "wheel" "networkmanager" "plocate" ];
|
||||||
|
hashedPassword = "$6$TWZqEbF3s7f4Yx8s$xsUheHLM75u1IdvD/6AWnk9c8El2FgGiU5C4mnZddWl8hFaGF2nPojHqvj2l7muJwQ6c8f7A4MRpAKh7PezuN/";
|
||||||
|
};
|
||||||
extraUsers.alexandre = {
|
extraUsers.alexandre = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
home = "/home/alexandre";
|
home = "/home/alexandre";
|
||||||
|
|
|
@ -83,7 +83,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
udev.extraRules = ''
|
udev.extraRules = ''
|
||||||
ACTION=="remove", ENV{ID_BUS}=="usb", ENV{ID_VENDOR_ID}=="1050", ENV{ID_MODEL_ID}=="0407", RUN+="${pkgs.i3lock}/bin/i3lock -i /home/alexandre/images/coffee_time.png";
|
ACTION=="remove", ENV{ID_VENDOR_ID}=="1050", ENV{ID_MODEL_ID}=="0407", ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/alexandre/.Xauthority" RUN+="${pkgs.sudo}/bin/sudo -u alexandre ${pkgs.xautolock}/bin/xautolock -locknow"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,15 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, lib, config, ... }:
|
||||||
services.openvpn.servers = {
|
{
|
||||||
DRI = { config = '' config /home/alexandre/git/nixos-config/hosts/dell-5590/nixpkgs/VPN.conf ''; };
|
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";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
virtualisation.virtualbox.host.enable = true;
|
|
||||||
virtualisation.virtualbox.host.enableExtensionPack = true;
|
|
||||||
users.extraGroups.vboxusers.members = [ "alexandre" ];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -188,7 +188,7 @@
|
||||||
("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)))
|
||||||
|
|
||||||
|
|
||||||
(setq org-tag-faces
|
(setq org-tag-faces
|
||||||
|
@ -212,3 +212,13 @@
|
||||||
(setq org-journal-dir "~/Nextcloud/PRIVE/13_Org/journal/")
|
(setq org-journal-dir "~/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)
|
(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
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
{ ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
multimarkdown
|
||||||
|
];
|
||||||
services.emacs.enable = true;
|
services.emacs.enable = true;
|
||||||
programs.emacs = {
|
programs.emacs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -30,6 +30,13 @@ services.nginx = {
|
||||||
proxyPass = "http://127.0.0.1:${toString config.services.navidrome.settings.Port}/";
|
proxyPass = "http://127.0.0.1:${toString config.services.navidrome.settings.Port}/";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
};
|
};
|
||||||
|
"bookmark.atlanticaweb.fr" = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://127.0.0.1:8080/";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue