diff options
author | Freya Murphy <freya@freyacat.org> | 2025-06-17 15:14:45 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-06-17 15:14:45 -0400 |
commit | 1173df26fd78fdd59679645004847237ed7a0a54 (patch) | |
tree | b75e6bd3ee1a878b1a3e74d94fb9ea0bb94c14a7 /flake.nix | |
parent | add upowerd (diff) | |
download | dotfiles-nix-1173df26fd78fdd59679645004847237ed7a0a54.tar.gz dotfiles-nix-1173df26fd78fdd59679645004847237ed7a0a54.tar.bz2 dotfiles-nix-1173df26fd78fdd59679645004847237ed7a0a54.zip |
add astal package, update flake to support packages
Diffstat (limited to '')
-rw-r--r-- | flake.nix | 21 |
1 files changed, 20 insertions, 1 deletions
@@ -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; }; } |