2023-10-31 12:20:02 +01:00
|
|
|
{
|
|
|
|
description = "My NixOS and home-manager configs";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
# Nixpkgs
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05";
|
|
|
|
|
|
|
|
# Home manager
|
|
|
|
home-manager.url = "github:nix-community/home-manager/release-23.05";
|
|
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
2023-11-01 16:27:35 +01:00
|
|
|
|
|
|
|
|
|
|
|
# Neovim plugins not in nixpkgs
|
|
|
|
plugin-rainbow-delimiters-nvim.url = "gitlab:HiPhish/rainbow-delimiters.nvim";
|
|
|
|
plugin-rainbow-delimiters-nvim.flake = false;
|
|
|
|
|
|
|
|
plugin-undotree-nvim.url = "github:jiaoshijie/undotree";
|
|
|
|
plugin-undotree-nvim.flake = false;
|
2023-10-31 12:20:02 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = {
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
|
|
|
home-manager,
|
|
|
|
...
|
|
|
|
} @ inputs : let
|
|
|
|
inherit (self) outputs;
|
|
|
|
in {
|
2023-11-01 16:27:35 +01:00
|
|
|
overlays = import ./overlays {inherit inputs;};
|
|
|
|
|
2023-10-31 12:20:02 +01:00
|
|
|
nixosConfigurations = {
|
|
|
|
"kalle-pc" = nixpkgs.lib.nixosSystem {
|
|
|
|
specialArgs = {inherit inputs outputs;};
|
|
|
|
modules = [ ./nixos/kalle-pc/configuration.nix ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
homeConfigurations = {
|
|
|
|
"kalle@kalle-pc" = home-manager.lib.homeManagerConfiguration {
|
|
|
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
|
|
|
extraSpecialArgs = {inherit inputs outputs;};
|
|
|
|
modules = [ ./home-manager/kalle-pc/kalle.nix ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|