Auto: cleanup-2026-08-15T19-17-50Z

This commit is contained in:
tomasr committed 2026-08-15 21:18:15 +02:00
1 parent 18fbd68abe
commit 9b0dbd70a4
3 files changed
+66 -73

No files matched your search

+64 -66
View File
@@ -35,75 +35,73 @@ _: {
services.xserver.enable = true; services.xserver.enable = true;
}; };
flake.homeModules.hyprland-laptop = { flake.homeModules.hyprland-laptop = {
home.file.".config/hypr/host.lua" = { home.file.".config/hypr/host.lua" = {
text = '' text = ''
hl.on("hyprland.start", function() hl.on("hyprland.start", function()
hl.exec_cmd("qtbatticon") hl.exec_cmd("qtbatticon")
hl.exec_cmd("source /run/agenix/ntfy && nixpkgs-notifier listen") hl.exec_cmd("source /run/agenix/ntfy && nixpkgs-notifier listen")
end) end)
hl.monitor({ hl.monitor({
output = "eDP-1", output = "eDP-1",
mode = "highres@highrr", mode = "highres@highrr",
position = "0x0", position = "0x0",
scale = 1, scale = 1,
}) })
''; '';
enable = true; enable = true;
force = true; force = true;
};
}; };
}; flake.homeModules.hyprland-desktop = {
flake.homeModules.hyprland-desktop = { home.file.".config/hypr/host.lua" = {
home.file.".config/hypr/host.lua" = { text = ''
text = '' hl.monitor({
hl.monitor({ output = "",
output = "", mode = "preferred",
mode = "preferred", position = "auto",
position = "auto", scale = 0.75,
scale = 0.75, })
}) '';
''; enable = true;
enable = true; force = true;
force = true; };
}; };
}; flake.homeModules.hyprland = {pkgs-unstable, ...}: let
flake.homeModules.hyprland = {pkgs-unstable, ... }: wallpaper1 = ../../assets/wallpaper1.jpg;
let wallpaper2 = ../../assets/wallpaper2.jpg;
wallpaper1 = ../../assets/wallpaper1.jpg; wallpaper3 = ../../assets/wallpaper3.jpg;
wallpaper2 = ../../assets/wallpaper2.jpg; wallpaper4 = ../../assets/wallpaper4.jpg;
wallpaper3 = ../../assets/wallpaper3.jpg; wallpaper5 = ../../assets/wallpaper5.jpg;
wallpaper4 = ../../assets/wallpaper4.jpg;
wallpaper5 = ../../assets/wallpaper5.jpg;
hyprlandLua = builtins.replaceStrings hyprlandLua =
[ builtins.replaceStrings
"WALLPAPER1/PATH/PLACEHOLDER" [
"WALLPAPER2/PATH/PLACEHOLDER" "WALLPAPER1/PATH/PLACEHOLDER"
"WALLPAPER3/PATH/PLACEHOLDER" "WALLPAPER2/PATH/PLACEHOLDER"
"WALLPAPER4/PATH/PLACEHOLDER" "WALLPAPER3/PATH/PLACEHOLDER"
"WALLPAPER5/PATH/PLACEHOLDER" "WALLPAPER4/PATH/PLACEHOLDER"
] "WALLPAPER5/PATH/PLACEHOLDER"
[ ]
(toString wallpaper1) [
(toString wallpaper2) (toString wallpaper1)
(toString wallpaper3) (toString wallpaper2)
(toString wallpaper4) (toString wallpaper3)
(toString wallpaper5) (toString wallpaper4)
] (toString wallpaper5)
(builtins.readFile ../../other/hyprland/hyprland.lua); ]
in (builtins.readFile ../../other/hyprland/hyprland.lua);
{ in {
#refer to https://wiki.hypr.land/Nix/Hyprland-on-Home-Manager/
#refer to https://wiki.hypr.land/Nix/Hyprland-on-Home-Manager/ wayland.windowManager.hyprland.enable = true;
wayland.windowManager.hyprland.enable = true; wayland.windowManager.hyprland.package = pkgs-unstable.hyprland;
wayland.windowManager.hyprland.package = pkgs-unstable.hyprland; #hint Electron apps to use on wayland;
#hint Electron apps to use on wayland; home.sessionVariables.NIXOS_OZONE_WL = "1";
home.sessionVariables.NIXOS_OZONE_WL = "1"; wayland.windowManager.hyprland.plugins = [
wayland.windowManager.hyprland.plugins = [ #pkgs-unstable.hyprlandPlugins.hyprspace # currently broken
#pkgs-unstable.hyprlandPlugins.hyprspace # currently broken #pkgs-unstable.hyprlandPlugins.hypr-dynamic-cursors
#pkgs-unstable.hyprlandPlugins.hypr-dynamic-cursors ];
]; wayland.windowManager.hyprland.configType = "lua";
wayland.windowManager.hyprland.configType = "lua"; wayland.windowManager.hyprland.extraConfig = hyprlandLua;
wayland.windowManager.hyprland.extraConfig = hyprlandLua;
}; };
} }
+1 -5
View File
@@ -1,8 +1,4 @@
{ {self, ...}: {
self,
inputs,
...
}: {
flake.nixosModules.battery-laptop = {pkgs, ...}: flake.nixosModules.battery-laptop = {pkgs, ...}:
# https://discourse.nixos.org/t/what-is-the-best-option-for-power-management/63406/2 # https://discourse.nixos.org/t/what-is-the-best-option-for-power-management/63406/2
# we just activate tlp unconditonally # we just activate tlp unconditonally
+1 -2
View File
@@ -1,6 +1,6 @@
# config for openconnect is in ./epfl.nix # config for openconnect is in ./epfl.nix
{self, ...}: { {self, ...}: {
flake.nixosModules.vpn = {pkgs,...}: { flake.nixosModules.vpn = {pkgs, ...}: {
services.mullvad-vpn = { services.mullvad-vpn = {
enable = true; enable = true;
}; };
@@ -10,7 +10,6 @@
age.secrets.epfl = { age.secrets.epfl = {
file = ../../secrets/epfl.age; file = ../../secrets/epfl.age;
}; };
}; };
perSystem = {pkgs, ...}: { perSystem = {pkgs, ...}: {
packages.custom-vpn-picker = pkgs.writeShellApplication { packages.custom-vpn-picker = pkgs.writeShellApplication {