From f0ebf6e4665db0aad0c3b4c69271e263d25e51cd Mon Sep 17 00:00:00 2001 From: "info@data-pro.nu" Date: Sun, 15 Mar 2026 12:35:42 +0000 Subject: [PATCH] finding hyprland.conf error --- Droidnix/generated/hyprland/hyprland.nix | 103 ++++++++--------------- 1 file changed, 36 insertions(+), 67 deletions(-) diff --git a/Droidnix/generated/hyprland/hyprland.nix b/Droidnix/generated/hyprland/hyprland.nix index ef5096811..b73a67207 100644 --- a/Droidnix/generated/hyprland/hyprland.nix +++ b/Droidnix/generated/hyprland/hyprland.nix @@ -1,71 +1,40 @@ -sudo nixos-rebuild test --flake .#traveldroid --verbose -debug: nixos_rebuild.process: calling run with args=['nix', '--extra-experimental-features', 'nix-command flakes', 'build', '--print-out-paths', '.#nixosConfigurations."traveldroid".config.system.build.nixos-rebuild', '-v', '--no-link'], kwargs={'stdout': -1}, env=None, append_local_env=None -debug: nixos_rebuild.process: captured output with stdout='/nix/store/g9dnf2f5i82ijnyjsa5466gfjljs21zn-nixos-rebuild-ng-26.05\n', stderr=None -building the system configuration... -debug: nixos_rebuild.process: calling run with args=['nix', '--extra-experimental-features', 'nix-command flakes', 'build', '--print-out-paths', '.#nixosConfigurations."traveldroid".config.system.build.toplevel', '--no-link', '-v'], kwargs={'stdout': -1}, env=None, append_local_env=None -evaluation warning: system.stateVersion is not set, defaulting to 26.05. Read why this matters on https://nixos.org/manual/nixos/stable/options.html#opt-system.stateVersion. -error: - … while calling the 'head' builtin - at /nix/store/2dq7fygjqxv4k5173kr1b6vimi38jjsb-source/lib/attrsets.nix:1712:13: - 1711| if length values == 1 || pred here (elemAt values 1) (head values) then - 1712| head values - | ^ - 1713| else +{ + config, + pkgs, + lib, + user, + flakeRoot, + ... +}: - … while evaluating the attribute 'value' - at /nix/store/2dq7fygjqxv4k5173kr1b6vimi38jjsb-source/lib/modules.nix:1159:7: - 1158| // { - 1159| value = addErrorContext "while evaluating the option `${showOption loc}':" value; - | ^ - 1160| inherit (res.defsFinal') highestPrio; +let + hyprlandFiles = builtins.attrNames (builtins.readDir "${flakeRoot}/assets/hyprland/conf/hypr"); +in +{ + programs.hyprland = { + enable = true; + }; - … while evaluating the option `system.build.toplevel': + home-manager.users.${user.username} = { + home.stateVersion = "25.11"; + home.username = user.username; + home.homeDirectory = + config.home-manager.users.${user.username}.homeDirectory or "/home/${user.username}"; - … while evaluating definitions from `/nix/store/2dq7fygjqxv4k5173kr1b6vimi38jjsb-source/nixos/modules/system/activation/top-level.nix': + wayland.windowManager.hyprland = { + enable = true; + }; - … while evaluating the option `home-manager.users.henrov.home.file': - - … while evaluating definitions from `/nix/store/irrzc95wr3yb4dr0whyg6n4hbr0mmq8f-source/modules/misc/xdg.nix': - - (stack trace truncated; use '--show-trace' to show the full, detailed trace) - - error: A definition for option `home-manager.users.henrov.xdg.configFile."animations.conf"' is not of type `submodule'. TypeError: Definition values: - - In `/nix/store/133r1jgaj1v9890gyzha3hkp9fgwvxik-source/Droidnix/generated/hyprland/hyprland.nix': "hypr/animations.conf" -Traceback (most recent call last): - File "/nix/store/g9dnf2f5i82ijnyjsa5466gfjljs21zn-nixos-rebuild-ng-26.05/lib/python3.13/site-packages/nixos_rebuild/__init__.py", line 397, in main - execute(sys.argv) - ~~~~~~~^^^^^^^^^^ - File "/nix/store/g9dnf2f5i82ijnyjsa5466gfjljs21zn-nixos-rebuild-ng-26.05/lib/python3.13/site-packages/nixos_rebuild/__init__.py", line 360, in execute - services.build_and_activate_system( - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ - action=action, - ^^^^^^^^^^^^^^ - ...<6 lines>... - grouped_nix_args=grouped_nix_args, - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - ) - ^ - File "/nix/store/g9dnf2f5i82ijnyjsa5466gfjljs21zn-nixos-rebuild-ng-26.05/lib/python3.13/site-packages/nixos_rebuild/services.py", line 312, in build_and_activate_system - path_to_config = _build_system( - attr=attr, - ...<5 lines>... - grouped_nix_args=grouped_nix_args, - ) - File "/nix/store/g9dnf2f5i82ijnyjsa5466gfjljs21zn-nixos-rebuild-ng-26.05/lib/python3.13/site-packages/nixos_rebuild/services.py", line 176, in _build_system - path_to_config = nix.build_flake( - attr, - ...<3 lines>... - | grouped_nix_args.flake_eval_flags, - ) - File "/nix/store/g9dnf2f5i82ijnyjsa5466gfjljs21zn-nixos-rebuild-ng-26.05/lib/python3.13/site-packages/nixos_rebuild/nix.py", line 91, in build_flake - r = run_wrapper(run_args, stdout=PIPE) - File "/nix/store/g9dnf2f5i82ijnyjsa5466gfjljs21zn-nixos-rebuild-ng-26.05/lib/python3.13/site-packages/nixos_rebuild/process.py", line 261, in run_wrapper - r = subprocess.run( - final_args, - ...<5 lines>... - **kwargs, - ) - File "/nix/store/m1fw8l8y9ycxh5dzispbb7cwl6rra14l-python3-3.13.12/lib/python3.13/subprocess.py", line 577, in run - raise CalledProcessError(retcode, process.args, - output=stdout, stderr=stderr) -subprocess.CalledProcessError: Command '['nix', '--extra-experimental-features', 'nix-command flakes', 'build', '--print-out-paths', '.#nixosConfigurations."traveldroid".config.system.build.toplevel', '--no-link', '-v']' returned non-zero exit status 1. + # First create the directory structure + xdg.configFile = { + "hypr/.keep" = { + text = ""; + }; + } + // lib.genAttrs hyprlandFiles (name: { + "hypr/${name}" = { + source = "${flakeRoot}/assets/hyprland/conf/hypr/${name}"; + }; + }); + }; +}