summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-06-17 15:14:45 -0400
committerFreya Murphy <freya@freyacat.org>2025-06-17 15:14:45 -0400
commit1173df26fd78fdd59679645004847237ed7a0a54 (patch)
treeb75e6bd3ee1a878b1a3e74d94fb9ea0bb94c14a7 /flake.nix
parentadd upowerd (diff)
downloaddotfiles-nix-1173df26fd78fdd59679645004847237ed7a0a54.tar.gz
dotfiles-nix-1173df26fd78fdd59679645004847237ed7a0a54.tar.bz2
dotfiles-nix-1173df26fd78fdd59679645004847237ed7a0a54.zip
add astal package, update flake to support packages
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix21
1 files changed, 20 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix
index d506c72..9d56b2a 100644
--- a/flake.nix
+++ b/flake.nix
@@ -19,6 +19,9 @@
# sops
sops-nix.url = "github:Mic92/sops-nix";
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
+ # astal
+ astal.url = "github:aylur/astal";
+ astal.inputs.nixpkgs.follows = "nixpkgs";
# talc
talc.url = "git+https://g.trimill.xyz/trimill/talc";
talc.inputs.nixpkgs.follows = "nixpkgs";
@@ -27,9 +30,14 @@
unofficial-homestuck-collection.inputs.nixpkgs.follows = "nixpkgs";
};
- outputs = { nixpkgs, ... }@inputs:
+ outputs = {
+ nixpkgs,
+ flake-utils,
+ ...
+ } @ inputs:
let
options = import ./options.nix;
+ systems = ["x86_64-linux"];
in rec {
nixosConfigurations = {
shinji = import ./hosts/shinji.nix { inherit inputs options; };
@@ -40,5 +48,16 @@
shinji = nixosConfigurations.shinji.config.home-manager.users.${options.user}.home;
kaworu = nixosConfigurations.kaworu.config.home-manager.users.${options.user}.home;
};
+
+ packages = builtins.listToAttrs (map (system:
+ let
+ pkgs = nixpkgs.legacyPackages.${system};
+ in {
+ name = system;
+ value = import ./pkgs { inherit pkgs inputs system; };
+ }
+ ) systems);
+
+ legacyPackages = packages;
};
}