restore hyprland dotfiles from backups

This commit is contained in:
afoucaultc 2026-08-07 11:11:45 +02:00
parent 5dc6c8a77c
commit 4dd1504a4c
12 changed files with 397 additions and 30 deletions

View file

@ -0,0 +1,40 @@
{
pkgs,
lib,
inputs,
...
}:
{
security = {
polkit.enable = true;
pam.services.hyprlock = { };
};
programs = {
dconf.enable = true;
xwayland.enable = true;
};
services.graphical-desktop.enable = true;
services.xserver.desktopManager.runXdgAutostartIfNone = lib.mkDefault true;
xdg.portal = {
enable = true;
extraPortals = with pkgs; [ xdg-desktop-portal-gtk ];
};
nix.settings = {
substituters = [ "https://hyprland.cachix.org" ];
trusted-public-keys = [
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIITfGmwGaMwaOAd6DDeaU="
];
};
security.wrappers.Hyprland = {
owner = "root";
group = "root";
capabilities = "cap_sys_nice+ep";
source = lib.getExe inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
};
}

View file

@ -25,7 +25,7 @@
./config/programs/gamescope.nix
./config/programs/steam.nix
# packages & others
./config/hyprland.nix
./config/wayland.nix
./config/system_packages.nix
# profil nixos pour mon ordi portable maison
# nécessite l'input nixos-hardware dans flake.nix.

View file

@ -0,0 +1,40 @@
{
pkgs,
lib,
inputs,
...
}:
{
security = {
polkit.enable = true;
pam.services.hyprlock = { };
};
programs = {
dconf.enable = true;
xwayland.enable = true;
};
services.graphical-desktop.enable = true;
services.xserver.desktopManager.runXdgAutostartIfNone = lib.mkDefault true;
xdg.portal = {
enable = true;
extraPortals = with pkgs; [ xdg-desktop-portal-gtk ];
};
nix.settings = {
substituters = [ "https://hyprland.cachix.org" ];
trusted-public-keys = [
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIITfGmwGaMwaOAd6DDeaU="
];
};
security.wrappers.Hyprland = {
owner = "root";
group = "root";
capabilities = "cap_sys_nice+ep";
source = lib.getExe inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
};
}

View file

@ -10,7 +10,6 @@
./config/drivers_video.nix
./config/extra-services.nix
./config/fonts.nix
./config/hyprland.nix
./config/language.nix
./config/power_management.nix
./config/sound.nix
@ -19,6 +18,7 @@
./config/system_saves.nix
./config/system_services.nix
./config/user.nix
./config/wayland.nix
# ajout pour forcer l'utilisation de cachix au max
./config/low-ram.nix
# profil nixos-hardware pour le ThinkPad E560