Me again with silly questions:
so i use flake to install hyprbar, and hyprland, i made sure that their versions won’t be mismatched, however, they still do, and idk why
[hyprbars] Failure in initialization: Version mismatch (headers ver is not equal to running hyprland ver)
the following is my flake.nix
, full path: /etc/nixos/flake.nix
:
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland.url = "github:hyprwm/Hyprland";
hyprland-plugins = {
url = "github:hyprwm/hyprland-plugins";
inputs.hyprland.follows = "hyprland";
};
};
outputs = { home-manager, nixpkgs, ... }@inputs:
let
username = "nahah";
hostname = "nuhuh";
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
in
{
nixosConfigurations.${hostname} = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
modules = [ ./configuration.nix ];
};
homeConfigurations.${username} = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = { inherit inputs; };
modules = [ ./home.nix ];
};
};
}
i made sure to put the line inputs.hyprland.follows = "hyprland";
so that the version they are running won’t be mismatched, they still do tho
here is a snippet of my configuration.nix
, full path: /etc/nixos/configuration.nix
:
no imports
, i don’t think that’s the problem tho
{inputs, pkgs, ...}:
{
programs.hyprland = {
enable = true;
xwayland.enable = true;
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
};
}
and home.nix
, full path /etc/nixos/home.nix
:
{inputs, pkgs, ...}: {
imports = [
inputs.ags.homeManagerModules.default
];
wayland.windowManager.hyprland = {
enable = true;
plugins = [
inputs.hyprland-plugins.packages.${pkgs.system}.hyprbars
];
};
}