2023-10-31 12:20:02 +01:00
|
|
|
{
|
|
|
|
description = "My NixOS and home-manager configs";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
# Nixpkgs
|
2024-01-10 11:54:07 +01:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
2023-10-31 12:20:02 +01:00
|
|
|
|
|
|
|
# Home manager
|
2024-01-10 11:54:07 +01:00
|
|
|
home-manager.url = "github:nix-community/home-manager/master";
|
2023-10-31 12:20:02 +01:00
|
|
|
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;
|
2024-01-10 11:54:07 +01:00
|
|
|
|
|
|
|
plugin-harpoon1.url = "github:ThePrimeagen/harpoon";
|
|
|
|
plugin-harpoon1.flake = false;
|
|
|
|
|
|
|
|
# Track hyprland xdg desktop portal master until screenshots get released again
|
|
|
|
xdg-desktop-portal-hyprland.url = "github:hyprwm/xdg-desktop-portal-hyprland";
|
|
|
|
xdg-desktop-portal-hyprland.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
2023-10-31 12:20:02 +01:00
|
|
|
};
|
|
|
|
|
2024-01-10 11:54:07 +01:00
|
|
|
outputs =
|
|
|
|
{ self
|
|
|
|
, nixpkgs
|
|
|
|
, home-manager
|
|
|
|
, ...
|
|
|
|
} @ inputs:
|
|
|
|
let
|
|
|
|
inherit (self) outputs;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
overlays = import ./overlays { inherit inputs; };
|
|
|
|
|
|
|
|
nixosConfigurations = {
|
|
|
|
"kalle-pc" = nixpkgs.lib.nixosSystem {
|
|
|
|
specialArgs = { inherit inputs outputs; };
|
|
|
|
modules = [ ./nixos/kalle-pc/configuration.nix ];
|
|
|
|
};
|
2024-02-29 11:25:56 +01:00
|
|
|
"kalle-laptop" = nixpkgs.lib.nixosSystem {
|
|
|
|
specialArgs = { inherit inputs outputs; };
|
|
|
|
modules = [ ./nixos/kalle-laptop/configuration.nix ];
|
|
|
|
};
|
2023-10-31 12:20:02 +01:00
|
|
|
};
|
2024-01-10 11:54:07 +01:00
|
|
|
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 ];
|
|
|
|
};
|
2024-02-29 11:25:56 +01:00
|
|
|
"kalle@kalle-laptop" = home-manager.lib.homeManagerConfiguration {
|
|
|
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
|
|
|
extraSpecialArgs = { inherit inputs outputs; };
|
|
|
|
modules = [ ./home-manager/kalle-laptop/kalle.nix ];
|
|
|
|
};
|
2023-10-31 12:20:02 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|