nichts/flake.nix

56 lines
1.4 KiB
Nix
Raw Normal View History

2024-04-09 23:11:33 +02:00
{
2024-05-21 23:41:23 +02:00
description = "My NixOS config flake";
outputs = inputs: let
pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
2025-03-02 21:17:17 +01:00
eachSystem = inputs.nixpkgs.lib.genAttrs (import inputs.systems);
pkgsFor = inputs.nixpkgs.legacyPackages;
2024-11-01 14:51:13 +01:00
in {
nixosConfigurations = import ./hosts inputs;
2024-11-01 16:19:42 +01:00
2024-11-01 14:51:13 +01:00
devShells.x86_64-linux.default = pkgs.callPackage ./shell.nix {};
2024-11-01 16:19:42 +01:00
formatter.x86_64-linux = pkgs.alejandra;
2025-03-02 21:17:17 +01:00
packages = eachSystem (
2025-03-03 15:43:20 +01:00
system: {
2025-03-12 18:49:01 +01:00
inherit (import ./packages pkgsFor.${system}) fish helix kakoune;
2025-03-02 21:17:17 +01:00
}
);
2024-11-02 11:28:08 +01:00
2025-03-02 21:22:19 +01:00
apps = eachSystem (system: let
2025-03-18 13:40:27 +01:00
inherit (inputs.self.packages.${system}) fish helix;
2025-03-02 21:22:19 +01:00
in {
2024-11-06 00:11:11 +01:00
default = {
type = "app";
2025-03-18 13:40:27 +01:00
program = "${fish}/bin/fish";
2024-11-06 00:11:11 +01:00
};
helix = {
type = "app";
2025-03-18 13:40:27 +01:00
program = "${helix}/bin/hx";
2024-11-06 00:11:11 +01:00
};
2025-03-02 21:22:19 +01:00
});
2024-11-01 14:51:13 +01:00
};
inputs = {
# Unstable nixpkgs baby!
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
2025-03-02 21:17:17 +01:00
systems.url = "github:nix-systems/default-linux";
2024-09-02 22:26:06 +02:00
impermanence.url = "github:nix-community/impermanence";
2025-04-06 22:09:17 +02:00
2025-04-09 15:31:18 +02:00
schizofox.url = "github:schizofox/schizofox";
2025-04-06 22:09:17 +02:00
# secure booting
lanzaboote = {
url = "github:nix-community/lanzaboote";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland = {
url = "github:hyprwm/hyprland";
inputs.nixpkgs.follows = "nixpkgs";
inputs.systems.follows = "systems";
};
};
2024-04-09 23:11:33 +02:00
}