Compare commits

..

10 Commits

Author SHA1 Message Date
3406f5a463 restore secrets repo 2025-09-23 18:38:05 +02:00
554235e396 before flake update 2025-09-22 21:26:36 +02:00
72287ae6c2 before flake update 2025-09-16 17:48:12 +02:00
4f2863e03e before flake update 2025-09-11 15:48:11 +02:00
f0d2996016 before flake update 2025-09-10 13:43:06 +02:00
dc5cfd1543 flake.lock 2025-08-31 07:03:58 +02:00
6f181a24dd flake.lock 2025-08-30 09:39:43 +02:00
42656277ff flake.lock for qemu ceph debug 2025-08-28 21:22:17 +02:00
18d992500c modif /etc/hosts 2025-08-05 23:29:59 +02:00
7bb1f17bcf modules/libvirt/default.nix 2025-08-02 00:30:43 +02:00
11 changed files with 44 additions and 40 deletions

26
flake.lock generated
View File

@@ -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": {

View File

@@ -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;
}; };
}; };

View File

@@ -70,6 +70,7 @@
pkgs.unzip pkgs.unzip
pkgs.openssl pkgs.openssl
pkgs.adoptopenjdk-icedtea-web pkgs.adoptopenjdk-icedtea-web
pkgs.pwgen
# Nvim with dependencies # Nvim with dependencies
pkgs.nodejs pkgs.nodejs
pkgs.gcc pkgs.gcc

View File

@@ -16,21 +16,20 @@
}; };
}; };
}; };
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 ]
] ++ lib.optionals args.isGpu [
++ lib.optionals args.isGpu [ ./picom
./picom ];
];
} }

View File

@@ -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

View File

@@ -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"

View File

@@ -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

View File

@@ -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;

View File

@@ -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 = {

View File

@@ -17,16 +17,16 @@
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.21.172 errorpages.grandbesancon.fr
#172.18.23.4 dozzle.grandbesancon.fr #172.18.23.4 dozzle.grandbesancon.fr
#172.18.22.206 toto.grandbesancon.fr #172.18.22.206 toto.grandbesancon.fr
#172.18.229.3 sso.grandbesancon.fr #172.18.229.3 sso.grandbesancon.fr
172.18.20.37 sso.grandbesancon.fr #172.18.20.37 sso.grandbesancon.fr
#172.18.20.229 auth.grandbesancon.fr #172.18.20.229 auth.grandbesancon.fr
#172.18.20.181 traefikauth.grandbesancon.fr #172.18.20.181 traefikauth.grandbesancon.fr
''; '';
@@ -34,8 +34,8 @@
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";
@@ -46,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;

View File

@@ -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";
}; };
}; };