Compare commits
12 Commits
7f66ca4ca3
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 3406f5a463 | |||
| 554235e396 | |||
| 72287ae6c2 | |||
| 4f2863e03e | |||
| f0d2996016 | |||
| dc5cfd1543 | |||
| 6f181a24dd | |||
| 42656277ff | |||
| 18d992500c | |||
| 7bb1f17bcf | |||
| 6bcb728822 | |||
| d0a7042324 |
26
flake.lock
generated
26
flake.lock
generated
@@ -7,11 +7,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1752718651,
|
"lastModified": 1758287904,
|
||||||
"narHash": "sha256-PkaR0qmyP9q/MDN3uYa+RLeBA0PjvEQiM0rTDDBXkL8=",
|
"narHash": "sha256-IGmaEf3Do8o5Cwp1kXBN1wQmZwQN3NLfq5t4nHtVtcU=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "disko",
|
"repo": "disko",
|
||||||
"rev": "d5ad4485e6f2edcc06751df65c5e16572877db88",
|
"rev": "67ff9807dd148e704baadbd4fd783b54282ca627",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -23,10 +23,10 @@
|
|||||||
"mysecrets": {
|
"mysecrets": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1753141577,
|
"lastModified": 1758645420,
|
||||||
"narHash": "sha256-MNbm7KCEqML5l72GppVoxXX03UtVGIzUsgaW+A+FBDQ=",
|
"narHash": "sha256-lH9KLcUFv9yM0wZMPSc3CHAjwYK1ndUN7vOMKOkQ+fc=",
|
||||||
"ref": "main",
|
"ref": "main",
|
||||||
"rev": "c1edf4983cba959f93daa9c7ef0c1acbd958c755",
|
"rev": "9f2720cb96da0f02ce709000b498e7418e155a25",
|
||||||
"shallow": true,
|
"shallow": true,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "ssh://gitea@git.unixyourbrain.org/beastie/nixos-secrets.git"
|
"url": "ssh://gitea@git.unixyourbrain.org/beastie/nixos-secrets.git"
|
||||||
@@ -40,11 +40,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1752364307,
|
"lastModified": 1758427187,
|
||||||
"narHash": "sha256-o0Cm4fhz/ukV/excbnwkRB2sqknenkb/0T4pcgXjrp0=",
|
"narHash": "sha256-pHpxZ/IyCwoTQPtFIAG2QaxuSm8jWzrzBGjwQZIttJc=",
|
||||||
"owner": "NixOS",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "b6071be3c0d9404113988e5e253eb6d71d1ddbef",
|
"rev": "554be6495561ff07b6c724047bdd7e0716aa7b46",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -69,11 +69,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1752544651,
|
"lastModified": 1758425756,
|
||||||
"narHash": "sha256-GllP7cmQu7zLZTs9z0J2gIL42IZHa9CBEXwBY9szT0U=",
|
"narHash": "sha256-L3N8zV6wsViXiD8i3WFyrvjDdz76g3tXKEdZ4FkgQ+Y=",
|
||||||
"owner": "Mic92",
|
"owner": "Mic92",
|
||||||
"repo": "sops-nix",
|
"repo": "sops-nix",
|
||||||
"rev": "2c8def626f54708a9c38a5861866660395bb3461",
|
"rev": "e0fdaea3c31646e252a60b42d0ed8eafdb289762",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
|
|
||||||
mysecrets = {
|
mysecrets = {
|
||||||
url = "git+ssh://gitea@git.unixyourbrain.org/beastie/nixos-secrets.git?ref=main&shallow=1";
|
url = "git+ssh://gitea@git.unixyourbrain.org/beastie/nixos-secrets.git?ref=main&shallow=1";
|
||||||
|
# url = "path:/home/beastie/nixos-secrets";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -68,6 +68,9 @@
|
|||||||
pkgs.cifs-utils
|
pkgs.cifs-utils
|
||||||
pkgs.neovim
|
pkgs.neovim
|
||||||
pkgs.unzip
|
pkgs.unzip
|
||||||
|
pkgs.openssl
|
||||||
|
pkgs.adoptopenjdk-icedtea-web
|
||||||
|
pkgs.pwgen
|
||||||
# Nvim with dependencies
|
# Nvim with dependencies
|
||||||
pkgs.nodejs
|
pkgs.nodejs
|
||||||
pkgs.gcc
|
pkgs.gcc
|
||||||
|
|||||||
@@ -16,17 +16,16 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = [
|
||||||
numlockx
|
pkgs.numlockx
|
||||||
adwaita-icon-theme
|
pkgs.adwaita-icon-theme
|
||||||
xclip
|
pkgs.xclip
|
||||||
flameshot
|
pkgs.flameshot
|
||||||
];
|
];
|
||||||
environment.etc = {
|
environment.etc = {
|
||||||
"X11/xinit/xinitrc".source = ./config/xinitrc;
|
"X11/xinit/xinitrc".source = ./config/xinitrc;
|
||||||
};
|
};
|
||||||
imports =
|
imports = [
|
||||||
[
|
|
||||||
./i3
|
./i3
|
||||||
./polybar
|
./polybar
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
pkgs.mpv
|
pkgs.mpv
|
||||||
pkgs.chromium
|
pkgs.chromium
|
||||||
pkgs.firefox
|
pkgs.firefox
|
||||||
|
pkgs.tor-browser
|
||||||
pkgs.keepassxc
|
pkgs.keepassxc
|
||||||
pkgs.nwg-look
|
pkgs.nwg-look
|
||||||
pkgs.gimp
|
pkgs.gimp
|
||||||
@@ -22,6 +23,8 @@
|
|||||||
pkgs.papirus-icon-theme
|
pkgs.papirus-icon-theme
|
||||||
pkgs.catppuccin-cursors
|
pkgs.catppuccin-cursors
|
||||||
pkgs.catppuccin-gtk
|
pkgs.catppuccin-gtk
|
||||||
|
pkgs.vscodium
|
||||||
|
pkgs.vscode
|
||||||
];
|
];
|
||||||
fonts.packages = [
|
fonts.packages = [
|
||||||
pkgs.nerd-fonts.dejavu-sans-mono
|
pkgs.nerd-fonts.dejavu-sans-mono
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
Shutdown\0icon\x1fsystem-shutdown
|
Shutdown\0icon\x1fsystem-shutdown
|
||||||
Reboot\0icon\x1fsystem-reboot
|
Reboot\0icon\x1fsystem-reboot
|
||||||
Exit hyprland\0icon\x1fsystem-log-out
|
Exit hyprland\0icon\x1fsystem-log-out
|
||||||
Reload hyprland\0icon\x1fsystem-log-out" | ${pkgs.rofi-wayland}/bin/rofi -dmenu -show-icons -i -theme /etc/xdg/rofi/disconnect.rasi -p System)
|
Reload hyprland\0icon\x1fsystem-log-out" | ${pkgs.rofi}/bin/rofi -dmenu -show-icons -i -theme /etc/xdg/rofi/disconnect.rasi -p System)
|
||||||
|
|
||||||
echo "$selected"
|
echo "$selected"
|
||||||
|
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
_LINES="$(curl "http://10.0.0.1:2013/$1" 2>/dev/null | sed -e "s|.*<a href=\"\([^\"]*\).*|$1\1|" -e "s/.*<.*\|.*C=D.*\|.*\/\/$\|.*.nfo//" -e "/^$/d")"
|
_LINES="$(curl "http://10.0.0.1:2013/$1" 2>/dev/null | sed -e "s|.*<a href=\"\([^\"]*\).*|$1\1|" -e "s/.*<.*\|.*C=D.*\|.*\/\/$\|.*.nfo//" -e "/^$/d")"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_RESULT=$(${pkgs.rofi-wayland}/bin/rofi -dmenu -config /etc/xdg/rofi/config.rasi -i <<< "$_LINES")
|
_RESULT=$(${pkgs.rofi}/bin/rofi -dmenu -config /etc/xdg/rofi/config.rasi -i <<< "$_LINES")
|
||||||
|
|
||||||
# If no output
|
# If no output
|
||||||
echo "$_RESULT"
|
echo "$_RESULT"
|
||||||
|
|||||||
@@ -199,9 +199,7 @@ input {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#gestures
|
# https://wiki.hyprland.org/Configuring/Variables/#gestures
|
||||||
gestures {
|
gesture = 3, horizontal, workspace
|
||||||
workspace_swipe = false
|
|
||||||
}
|
|
||||||
|
|
||||||
# Example per-device config
|
# Example per-device config
|
||||||
# See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more
|
# See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ if [ "$current_hash" != "$latest_hash" ]; then
|
|||||||
maj_count=$(curl -s "https://api.github.com/repos/NixOS/nixpkgs/compare/${current_hash}...${latest_hash}" | jq -r '.ahead_by // 0' 2>/dev/null || echo "?")
|
maj_count=$(curl -s "https://api.github.com/repos/NixOS/nixpkgs/compare/${current_hash}...${latest_hash}" | jq -r '.ahead_by // 0' 2>/dev/null || echo "?")
|
||||||
|
|
||||||
# Date du commit distant
|
# Date du commit distant
|
||||||
remote_commit_date=$(curl -s https://api.github.com/repos/NixOS/nixpkgs/commits/c87b95e25065c028d31a94f06a62927d18763fdf | jq -r '.commit.author.date')
|
remote_commit_date=$(curl -s https://api.github.com/repos/NixOS/nixpkgs/commits/"${latest_hash}" | jq -r '.commit.author.date')
|
||||||
remote_commit_date=$(date -d "${remote_commit_date}" "+%d/%m/%Y à %H:%M")
|
remote_commit_date=$(date -d "${remote_commit_date}" "+%d/%m/%Y à %H:%M")
|
||||||
printf '{"text": "%s ", "tooltip": "Commit distant : %s\\nCommit local : %s"}' "${maj_count}" "${remote_commit_date}" "${local_commit_date}"
|
printf '{"text": "%s ", "tooltip": "Commit distant : %s\\nCommit local : %s"}' "${maj_count}" "${remote_commit_date}" "${local_commit_date}"
|
||||||
# Compter les commits entre les deux
|
# Compter les commits entre les deux
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
|
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
pkgs.wl-clipboard
|
pkgs.wl-clipboard
|
||||||
pkgs.rofi-wayland
|
|
||||||
pkgs.waybar
|
pkgs.waybar
|
||||||
pkgs.font-awesome
|
pkgs.font-awesome
|
||||||
pkgs.hyprlock
|
pkgs.hyprlock
|
||||||
@@ -27,7 +26,7 @@
|
|||||||
"xdg/hypr/hyprpaper.conf".source = ./config/hypr/hyprpaper.conf;
|
"xdg/hypr/hyprpaper.conf".source = ./config/hypr/hyprpaper.conf;
|
||||||
"xdg/hypr/rofi.conf" = {
|
"xdg/hypr/rofi.conf" = {
|
||||||
text = ''
|
text = ''
|
||||||
$rofi = ${pkgs.rofi-wayland}/bin/rofi -show drun -show-icons -config /etc/xdg/rofi/config.rasi
|
$rofi = ${pkgs.rofi}/bin/rofi -show drun -show-icons -config /etc/xdg/rofi/config.rasi
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
"xdg/waybar".source = ./config/waybar;
|
"xdg/waybar".source = ./config/waybar;
|
||||||
|
|||||||
@@ -7,7 +7,9 @@
|
|||||||
libvirtd = {
|
libvirtd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
qemu = {
|
qemu = {
|
||||||
package = pkgs.qemu_full;
|
package = pkgs.qemu_full.override {
|
||||||
|
cephSupport = false;
|
||||||
|
};
|
||||||
runAsRoot = true;
|
runAsRoot = true;
|
||||||
swtpm.enable = true;
|
swtpm.enable = true;
|
||||||
ovmf = {
|
ovmf = {
|
||||||
|
|||||||
@@ -17,21 +17,25 @@
|
|||||||
interface = "enp5s0";
|
interface = "enp5s0";
|
||||||
};
|
};
|
||||||
nameservers = [
|
nameservers = [
|
||||||
"10.0.0.1"
|
|
||||||
"2001:41d0:303:20da::1"
|
"2001:41d0:303:20da::1"
|
||||||
"217.182.138.218"
|
"217.182.138.218"
|
||||||
];
|
];
|
||||||
networkmanager.enable = true;
|
networkmanager.enable = true;
|
||||||
extraHosts = ''
|
extraHosts = ''
|
||||||
172.18.23.4 dozzle.grandbesancon.fr
|
172.18.21.172 errorpages.grandbesancon.fr
|
||||||
172.18.21.67 toto.grandbesancon.fr
|
#172.18.23.4 dozzle.grandbesancon.fr
|
||||||
|
#172.18.22.206 toto.grandbesancon.fr
|
||||||
|
#172.18.229.3 sso.grandbesancon.fr
|
||||||
|
#172.18.20.37 sso.grandbesancon.fr
|
||||||
|
#172.18.20.229 auth.grandbesancon.fr
|
||||||
|
#172.18.20.181 traefikauth.grandbesancon.fr
|
||||||
'';
|
'';
|
||||||
wireguard = {
|
wireguard = {
|
||||||
interfaces = {
|
interfaces = {
|
||||||
wg0 = {
|
wg0 = {
|
||||||
ips = [
|
ips = [
|
||||||
"fc00::2/128"
|
"fc00::2/56"
|
||||||
"10.0.0.2/32"
|
"10.0.0.2/16"
|
||||||
];
|
];
|
||||||
listenPort = 51820;
|
listenPort = 51820;
|
||||||
privateKeyFile = "/etc/wireguard/privatekey";
|
privateKeyFile = "/etc/wireguard/privatekey";
|
||||||
@@ -42,6 +46,7 @@
|
|||||||
allowedIPs = [
|
allowedIPs = [
|
||||||
"fc00::0/56"
|
"fc00::0/56"
|
||||||
"10.0.0.0/16"
|
"10.0.0.0/16"
|
||||||
|
"10.1.0.0/16"
|
||||||
];
|
];
|
||||||
endpoint = "[2001:41d0:303:20da::1]:51820";
|
endpoint = "[2001:41d0:303:20da::1]:51820";
|
||||||
persistentKeepalive = 15;
|
persistentKeepalive = 15;
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ in
|
|||||||
ExecStart = "${pkgs.openfortivpn}/bin/openfortivpn --no-dns";
|
ExecStart = "${pkgs.openfortivpn}/bin/openfortivpn --no-dns";
|
||||||
ExecStartPost = "${openfortivpn-addroute}";
|
ExecStartPost = "${openfortivpn-addroute}";
|
||||||
ExecStopPost = "${openfortivpn-delroute}";
|
ExecStopPost = "${openfortivpn-delroute}";
|
||||||
#Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
#OOMScoreAdjust = "-100";
|
#OOMScoreAdjust = "-100";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user