Astal-based shell for my NixOS configuration.
This repository includes a Nix flake for easy packaging and development.
# Build the main shell
nix build .#default
# Run the main shell
nix run .#default
# Enter development shell with all AGS libraries
nix develop
# Or use direnv for automatic shell activation
echo "use flake" > .envrc
direnv allow
You can use this flake in your NixOS configuration:
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
astal-shell.url = "github:knoopx/ags";
};
outputs = { nixpkgs, astal-shell, ... }: {
nixosConfigurations.yourhostname = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
# Your other modules
({ pkgs, ... }: {
# Add the overlay
nixpkgs.overlays = [ astal-shell.overlays.default ];
# Install the packages
environment.systemPackages = with pkgs; [
astal-shell
];
})
];
};
};
}
{ inputs, pkgs, ... }: {
imports = [ inputs.ags.homeManagerModules.default ];
programs.ags = {
enable = true;
configDir = null; # Don't symlink since we're using the bundled version
extraPackages = with pkgs; [
inputs.astal-shell.packages.${pkgs.system}.default
];
};
}