nixos/flake.nix

55 lines
1.4 KiB
Nix
Raw Normal View History

2023-07-05 22:32:26 +04:00
# load stuff
{
description = "horrible dotfiles for amazing distro";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
home-manager.url = "github:nix-community/home-manager/release-23.05";
2023-07-06 01:53:58 +04:00
home-manager.inputs.nixpkgs.follows = "nixpkgs";
2023-07-05 22:32:26 +04:00
};
2023-07-07 03:16:34 +04:00
outputs = { self, nixpkgs, home-manager, ...}@inputs:
2023-07-07 03:06:45 +04:00
let
inherit (self) outputs;
forAllSystems = nixpkgs.lib.genAttrs [
"x86_64-linux"
];
in
rec {
# custom packages
packages = forAllSystems (system:
let pkgs = nixpkgs.legacyPackages.${system};
2023-07-07 03:16:34 +04:00
in import ./packages { inherit pkgs; }
2023-07-07 03:06:45 +04:00
);
# dev shell for bootstrap
devShells = forAllSystems (system:
let pkgs = nixpkgs.legacyPackages.${system};
in import ./shell.nix { inherit pkgs; }
);
# overlays here
2023-07-22 03:46:24 +04:00
overlays = import ./overlays { inherit inputs outputs; };
2023-07-07 03:06:45 +04:00
# modules :D
nixosModules = import ./modules;
2023-07-05 22:32:26 +04:00
nixosConfigurations = {
2023-07-06 02:02:21 +04:00
sakotop = nixpkgs.lib.nixosSystem {
2023-07-07 03:06:45 +04:00
specialArgs = { inherit inputs outputs; };
modules = [
./hosts/sakotop/configuration.nix
];
2023-07-05 22:32:26 +04:00
};
};
2023-07-07 03:06:45 +04:00
#nixosConfigurations = {
# TODO(sako)::rename this
# sakotop = nixpkgs.lib.nixosSystem {
# system = "x86_64-linux";
# specialArgs = attrs;
# modules = [ ./hosts/sakotop ];
# };
#};
2023-07-05 22:32:26 +04:00
};
}