nixos-config/configurations.nix
2021-09-25 11:07:09 +02:00

29 lines
871 B
Nix

{ nixosSystem, home-manager, nixpkgs-unstable, ... }: {
sterni = nixosSystem {
system = "x86_64-linux";
modules = [
./configs/sterni/configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
}
({ pkgs, ... }: {
# defined overlays injected by the nixflake
nixpkgs.overlays = [
(_self: _super: {
# we assign the overlay created before to the overlays of nixpkgs.
unstable = nixpkgs-unstable.legacyPackages.${pkgs.system};
})
];
# overlay included (todo?)
# nixpkgs.overlays = [ (import <mozilla-overlay/rust-overlay.nix>) ];
# imports of modules
# imports = [ <backup-module> <krops-lib> <cluster-module> <modules> ];
})
];
};
}