finding hyprland.conf error

This commit is contained in:
2026-03-15 12:35:13 +00:00
parent a158b06839
commit fc8ce0aa4b
+67 -39
View File
@@ -1,43 +1,71 @@
{
config,
pkgs,
lib,
user,
flakeRoot,
...
}:
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
let
# Get all files from your assets directory
hyprlandFiles = builtins.attrNames (builtins.readDir "${flakeRoot}/assets/hyprland/conf/hypr");
# Create a mapping of filename to source path for each file
hyprlandConfs = lib.genAttrs hyprlandFiles (name: {
source = "${flakeRoot}/assets/hyprland/conf/hypr/${name}";
});
in
{
# Enable Hyprland
programs.hyprland = {
enable = true;
};
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;
# Home Manager configuration
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 the option `system.build.toplevel':
wayland.windowManager.hyprland = {
enable = true;
};
while evaluating definitions from `/nix/store/2dq7fygjqxv4k5173kr1b6vimi38jjsb-source/nixos/modules/system/activation/top-level.nix':
# Create the config directory and all files
xdg.configFile = {
"hypr/.keep" = {
text = "";
};
}
// lib.mapAttrs (name: value: "hypr/${name}") hyprlandConfs;
};
}
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.