Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Clarify) Installing on NixOS #30

Closed
HiImJulien opened this issue Sep 29, 2024 · 1 comment
Closed

(Clarify) Installing on NixOS #30

HiImJulien opened this issue Sep 29, 2024 · 1 comment

Comments

@HiImJulien
Copy link

Hey there!

First of all, thank you very much for your efforts! I love your project.

Now on to the issue. I am stuck at properly setting up Astal / Ags v2 on my NixOS machine.
My flake currently looks like this:

# FILE: flake.nix

inputs = {
  ags.url = "github:aylur/ags/v2";
}

# ---------

# FILE: home/ags.nix (imported by home manager)

{ inputs, pkgs, config, ...}:

{
  imports = [
    inputs.ags.homeManagerModules.default
  ];

  programs.ags = {
    enable = true;
    extraPackages = with pkgs; [
      inputs.ags.packages
      accountsservice
    ];
  };
}

Running any ags related command exits with the following error:

error: executable "astal" not found in $PATH

Do I need to install astal separately as described in the Wiki?
If so, which Language should I choose, when I want to create my config using GJS/JSX?

@adminy
Copy link

adminy commented Sep 30, 2024

try this:

mv $HOME/.config/ags $HOME/.config/ags_old
ags --init
ags

also in your flake.nix to stay more up to date add the following inputs:

inputs = {
    ...;
    astal = { url = "github:Aylur/astal"; inputs.nixpkgs.follows = "nixpkgs"; }; # ags backend
    ags = { url = "github:Aylur/ags/v2"; inputs.astal.follows = "astal"; inputs.nixpkgs.follows = "nixpkgs"; }; # task bar
};

...

  imports = [ inputs.ags.homeManagerModules.default ];
  programs.ags = {
    enable = true;
     extraPackages = with inputs.ags.packages.${pkgs.system}; [
      apps auth bluetooth hyprland mpris network notifd powerprofiles river tray wireplumber battery pkgs.fzf
      inputs.astal.packages.${pkgs.system}.default
    ];
  };

but I think your config should work just fine, its the way the ags project is set up in $HOME/.config/ags, you are missing some tsconfig.json configuration.

Aylur added a commit to Aylur/ags that referenced this issue Sep 30, 2024
Aylur added a commit that referenced this issue Sep 30, 2024
@Aylur Aylur closed this as completed Sep 30, 2024
Aylur added a commit that referenced this issue Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants