summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
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;
};
}