1
Fork 0
satellite/flake.nix

71 lines
1.9 KiB
Nix
Raw Normal View History

2021-11-21 14:33:20 +01:00
{
2022-12-28 13:27:18 +01:00
description = "Satellite";
2021-11-21 14:52:49 +01:00
inputs = {
2022-12-28 13:27:18 +01:00
# Nixpkgs
nixpkgs.url = "github:nixos/nixpkgs/nixos-22.11";
2021-11-21 14:52:49 +01:00
2022-12-28 13:27:18 +01:00
# Home manager
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
2022-12-28 13:27:18 +01:00
outputs = { self, nixpkgs, home-manager, ... }@inputs:
let
inherit (self) outputs;
forAllSystems = nixpkgs.lib.genAttrs [
"aarch64-linux"
"i686-linux"
"x86_64-linux"
"aarch64-darwin"
"x86_64-darwin"
];
in
rec {
# Acessible through 'nix build', 'nix shell', etc
packages = forAllSystems (system:
let pkgs = nixpkgs.legacyPackages.${system};
in import ./pkgs { inherit pkgs; }
);
2022-08-16 10:31:45 +02:00
2022-12-28 13:27:18 +01:00
# Devshell for bootstrapping
# Acessible through 'nix develop'
devShells = forAllSystems (system:
let pkgs = nixpkgs.legacyPackages.${system};
in import ./shell.nix { inherit pkgs; }
);
2021-11-21 19:08:57 +01:00
2022-12-28 13:27:18 +01:00
# Custom packages and modifications, exported as overlays
overlays = import ./overlays;
2022-03-09 20:36:48 +01:00
2022-12-28 13:27:18 +01:00
# Reusable nixos modules
nixosModules = import ./modules/nixos;
2021-11-21 14:52:49 +01:00
2022-12-28 13:27:18 +01:00
# Reusable home-manager modules
homeManagerModules = import ./modules/home-manager;
2022-01-30 20:19:35 +01:00
2022-12-28 13:27:18 +01:00
# NixOS configuration entrypoint
# Available through 'nixos-rebuild --flake .#...
nixosConfigurations = {
tethys = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs outputs; };
modules = [
./hosts/tethys
];
};
2022-01-30 20:19:35 +01:00
};
2022-12-28 13:27:18 +01:00
# Standalone home-manager configuration entrypoint
# Available through 'home-manager --flake .#...
homeConfigurations = {
"adrielus@tethys" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = { inherit inputs outputs; };
modules = [
./home/adrielus/tethys.nix
];
2022-05-11 20:29:47 +02:00
};
2021-11-21 19:08:57 +01:00
};
2021-11-21 14:33:20 +01:00
};
}