Updated flake; small fixes to account for update; added unity for laptop

This commit is contained in:
Jurn Wubben 2025-09-15 20:16:31 +02:00
parent fc8178ed80
commit cc65757a1f
11 changed files with 111 additions and 78 deletions

View file

@ -13,10 +13,10 @@ in {
config = mkIf hardware.fingerprint {
services = {
fprintd.enable = true;
logind.extraConfig = mkIf hypr ''
logind.settings.Login = mkIf hypr {
# dont shutdown when power button is short-pressed
HandlePowerKey=ignore
'';
HandlePowerKey = "ignore";
};
};
home-manager.users.jsw.wayland.windowManager.hyprland.settings = mkIf hypr {

View file

@ -9,7 +9,7 @@
in {
config = lib.mkIf cfg.enable {
services = {
logind = {
logind.settings.Login = {
powerKey = "suspend-then-hibernate";
powerKeyLongPress = "poweroff";
};

View file

@ -20,7 +20,7 @@
nix = let
flakeInputs = lib.filterAttrs (_: v: lib.isType "flake" v) inputs;
in {
package = pkgs.lix;
# package = pkgs.lix;
# pin the registry to avoid downloading and evaling a new nixpkgs version every time
registry = lib.mapAttrs (_: v: {flake = v;}) flakeInputs;
@ -31,7 +31,7 @@
settings = {
auto-optimise-store = true;
builders-use-substitutes = true;
experimental-features = ["nix-command" "flakes" "repl-flake"];
experimental-features = ["nix-command" "flakes"];
flake-registry = "/etc/nix/registry.json";
# for direnv GC roots