2023-07-23 03:04:32 +00:00
|
|
|
{
|
|
|
|
description = "Home Manager configuration of kristian";
|
|
|
|
|
|
|
|
inputs = {
|
2023-08-03 18:49:58 +00:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05";
|
|
|
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
nixpkgs-master.url = "github:nixos/nixpkgs/master";
|
2023-08-26 16:35:30 +00:00
|
|
|
|
2023-07-23 03:04:32 +00:00
|
|
|
home-manager = {
|
2023-08-03 18:49:58 +00:00
|
|
|
url = "github:nix-community/home-manager/release-23.05";
|
2023-07-23 03:04:32 +00:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
|
|
|
# Nix User Repository
|
2023-08-03 18:49:58 +00:00
|
|
|
nur.url = "github:nix-community/NUR";
|
2023-07-23 03:04:32 +00:00
|
|
|
|
|
|
|
# Zig
|
2023-08-03 18:49:58 +00:00
|
|
|
zig.url = "github:mitchellh/zig-overlay";
|
2023-07-31 18:47:35 +00:00
|
|
|
|
|
|
|
# Wallpaper
|
2023-08-03 18:49:58 +00:00
|
|
|
wallpaper.url = "github:lunik1/nix-wallpaper";
|
2023-07-23 03:04:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = {
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
2023-07-31 18:08:25 +00:00
|
|
|
nixpkgs-unstable,
|
|
|
|
nixpkgs-master,
|
2023-07-23 03:04:32 +00:00
|
|
|
home-manager,
|
|
|
|
nur,
|
|
|
|
zig,
|
2023-07-31 18:47:35 +00:00
|
|
|
wallpaper,
|
2023-08-25 13:48:30 +00:00
|
|
|
}: let
|
2023-07-23 03:04:32 +00:00
|
|
|
system = "x86_64-linux";
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
in {
|
2023-08-26 16:35:30 +00:00
|
|
|
formatter.${system} = pkgs.alejandra;
|
2023-07-31 18:08:25 +00:00
|
|
|
|
2023-07-23 03:04:32 +00:00
|
|
|
homeConfigurations = {
|
|
|
|
kristian = home-manager.lib.homeManagerConfiguration {
|
|
|
|
inherit pkgs;
|
|
|
|
|
|
|
|
modules = [
|
2023-08-26 22:27:36 +00:00
|
|
|
./home.nix
|
2023-07-31 18:47:35 +00:00
|
|
|
{
|
|
|
|
_module.args.wallpaper = wallpaper.packages.${system}.default;
|
|
|
|
}
|
2023-07-31 18:08:25 +00:00
|
|
|
|
|
|
|
nur.nixosModules.nur
|
2023-07-23 03:04:32 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
nixpkgs.overlays = [
|
2023-08-26 16:35:30 +00:00
|
|
|
zig.overlays.default # Add zig
|
2023-07-31 18:08:25 +00:00
|
|
|
( # https://github.com/nix-community/home-manager/issues/1538#issuecomment-706627100
|
|
|
|
final: prev: {
|
2023-08-25 13:48:30 +00:00
|
|
|
unstable = import nixpkgs-unstable {
|
2023-07-31 18:08:25 +00:00
|
|
|
system = final.system;
|
2023-08-25 13:48:30 +00:00
|
|
|
config.allowUnfreePredicate = _: true;
|
2023-07-31 18:08:25 +00:00
|
|
|
};
|
2023-08-25 13:48:30 +00:00
|
|
|
master = import nixpkgs-master {
|
2023-08-13 20:52:54 +00:00
|
|
|
system = final.system;
|
2023-08-25 13:48:30 +00:00
|
|
|
config.allowUnfreePredicate = _: true;
|
2023-08-13 20:52:54 +00:00
|
|
|
};
|
2023-07-31 18:08:25 +00:00
|
|
|
}
|
|
|
|
)
|
2023-08-25 14:53:55 +00:00
|
|
|
( # Overrides davinci-resolve with the unstable version because of https://github.com/NixOS/nixpkgs/pull/246074
|
2023-08-25 15:51:31 +00:00
|
|
|
final: prev: {davinci-resolve = final.master.davinci-resolve;}
|
2023-08-25 14:53:55 +00:00
|
|
|
)
|
2023-07-23 03:04:32 +00:00
|
|
|
];
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|