feat: init nix flake

This commit is contained in:
Conroy Cheers
2025-11-03 23:54:23 +11:00
parent 49c6fc5b53
commit 723d2a5794
7 changed files with 384 additions and 3 deletions
+60
View File
@@ -0,0 +1,60 @@
{
description = "Super cool desktop shell for Hyprland!";
inputs = {
flake-parts.url = "github:hercules-ci/flake-parts";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
astal = {
url = "github:aylur/astal";
inputs.nixpkgs.follows = "nixpkgs";
};
ags = {
url = "github:aylur/ags";
inputs.nixpkgs.follows = "nixpkgs";
inputs.astal.follows = "astal";
};
};
outputs =
inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
# To import an internal flake module: ./other.nix
# To import an external flake module:
# 1. Add foo to inputs
# 2. Add foo as a parameter to the outputs function
# 3. Add here: foo.flakeModule
];
systems = [
"x86_64-linux"
"aarch64-linux"
];
perSystem =
{
config,
self',
inputs',
pkgs,
system,
...
}:
let
colorshell = pkgs.callPackage ./nix/package.nix { inherit inputs'; };
in
{
packages = {
inherit colorshell;
default = colorshell;
};
devShells = import ./nix/devshell.nix { inherit self' pkgs; };
};
flake = {
passthru = {
inherit inputs;
};
};
};
}