Migrate Hyprland to Lua config, drop dead flake inputs, general cleanup

Hyprland
- Switch wayland.windowManager.hyprland to configType = "lua" (Hyprland 0.56)
- Convert settings, env, monitors, window rules, gesture, animations
  (hl.curve/hl.animation) and all keybinds to hl.* calls
- Add home/system/hyprland/lib.nix with exec/bind/execOnce helpers;
  every exec-once now runs from a hyprland.start hook
- Drop hard-coded default_monitor = "eDP-2"

Flake
- Remove blog, awesome-wallpapers and default-creds inputs (their repos
  no longer ship a flake.nix and broke `nix flake update`), along with
  the server modules and Glance links that used them
- Update flake.lock
- Replace removed `gcr` with `gcr_4`

Fixes
- Point configDirectory at /etc/nixos/nixy on home-pc and thinkpad
- Fix home-pc git email typo
- Remove conflicting openpgp signing format, make pull.rebase a boolean,
  replace hx/peco in git aliases with nvim/sk
- Fix zsh NUL alias (2>&1) and stop forcing bat colors in the cat alias
- Require a password for sudo again (nixos-rebuild stays NOPASSWD)
- Remove duplicate hardware.graphics block from home-pc flake
- Delete unused zen .old files, run alejandra on host files
This commit is contained in:
kptltd00m
2026-09-28 18:15:30 +02:00
parent c4e3af21e3
commit fe508d9cd8
34 changed files with 578 additions and 1083 deletions
+11 -11
View File
@@ -1,8 +1,8 @@
{config, ...}: {
imports = [
# ─────────────────────────────────────────────────────────────
# System configuration
# ─────────────────────────────────────────────────────────────
# System configuration
# ─────────────────────────────────────────────────────────────
../../nixos/audio.nix
../../nixos/docker.nix
../../nixos/bluetooth.nix
@@ -16,15 +16,15 @@
../../nixos/utils.nix
../../nixos/hyprland.nix
# ─────────────────────────────────────────────────────────────
# Graphics Card
# ─────────────────────────────────────────────────────────────
../../nixos/amd-graphics.nix
# ─────────────────────────────────────────────────────────────
# Graphics Card
# ─────────────────────────────────────────────────────────────
../../nixos/amd-graphics.nix
# ─────────────────────────────────────────────────────────────
# System integration for Steam
# ─────────────────────────────────────────────────────────────
../../nixos/steam.nix
# ─────────────────────────────────────────────────────────────
# System integration for Steam
# ─────────────────────────────────────────────────────────────
../../nixos/steam.nix
# You should let those lines as is
./hardware-configuration.nix
@@ -33,7 +33,7 @@
programs.nix-ld.enable = true; #Dynamic Linking
home-manager.users."${config.var.username}" = import ./home.nix;
services.flatpak.enable = true;
services.flatpak.enable = true;
# Don't touch this
system.stateVersion = "24.05";
}
+8 -12
View File
@@ -3,7 +3,6 @@
nixpkgs,
...
}:
nixpkgs.lib.nixosSystem {
modules = [
{
@@ -13,19 +12,16 @@ nixpkgs.lib.nixosSystem {
};
}
({ config, pkgs, lib, ... }: {
({
config,
pkgs,
lib,
...
}: {
# ─────────────────────────────────────────────────────────────
# AMD Microcode
# ─────────────────────────────────────────────────────────────
# AMD Microcode
# ─────────────────────────────────────────────────────────────
hardware.cpu.amd.updateMicrocode = true;
# ─────────────────────────────────────────────────────────────
# Hardware accelaration
# ─────────────────────────────────────────────────────────────
hardware.graphics = {
enable = true;
enable32Bit = true;
};
})
inputs.home-manager.nixosModules.home-manager
+17 -7
View File
@@ -15,19 +15,19 @@
../../home/programs/spotatui
../../home/programs/yazi
# ─────────────────────────────────────────────────────────────
# ─────────────────────────────────────────────────────────────
# Gaming
# ─────────────────────────────────────────────────────────────
../../home/programs/steam
../../home/programs/steam
../../home/programs/star-citizen
# ─────────────────────────────────────────────────────────────
# ─────────────────────────────────────────────────────────────
# Groups
# ─────────────────────────────────────────────────────────────
../../home/programs/group/basic-apps.nix
../../home/programs/group/dev.nix
../../home/programs/group/misc.nix
../../home/programs/group/gaming-apps.nix
../../home/programs/group/gaming-apps.nix
../../home/programs/group/music-apps.nix
# ─────────────────────────────────────────────────────────────
@@ -46,7 +46,7 @@
home = {
inherit (config.var) username;
homeDirectory = "/home/" + config.var.username;
file.".face" = {
file.".face" = {
source = ./profile_picture.jpg;
};
@@ -55,8 +55,18 @@
};
wayland.windowManager.hyprland.settings.monitor = [
"DP-3,1920x1080@144.0,1920x0,1.0"
"HDMI-A-1,1920x1080@60.0,0x0,1.0"
{
output = "DP-3";
mode = "1920x1080@144.0";
position = "1920x0";
scale = 1;
}
{
output = "HDMI-A-1";
mode = "1920x1080@60.0";
position = "0x0";
scale = 1;
}
];
programs = {
+2 -2
View File
@@ -11,7 +11,7 @@
config.var = {
hostname = "home-pc";
username = "andi";
configDirectory = "/home/" + config.var.username + "/.config/nixos"; # The path of the nixos configuration directory
configDirectory = "/etc/nixos/nixy"; # The path of the nixos configuration directory
keyboardLayout = "de";
@@ -21,7 +21,7 @@
git = {
username = "kptltd00m";
email = "kptltd00m.doomlabs.de";
email = "kptltd00m@doomlabs.de";
};
autoUpgrade = false;