home-manager/flake.nix

139 lines
3.2 KiB
Nix
Raw Normal View History

2023-07-23 03:04:32 +00:00
{
description = "Home Manager configuration of kristian";
inputs = {
2023-12-03 20:06:22 +00:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
# 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-12-03 20:06:22 +00:00
url = "github:nix-community/home-manager/release-23.11";
2023-07-23 03:04:32 +00:00
inputs.nixpkgs.follows = "nixpkgs";
};
nur = {
url = "github:nix-community/NUR";
};
2023-07-23 03:04:32 +00:00
wallpaper = {
url = "github:lunik1/nix-wallpaper";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-index-database = {
url = "github:Mic92/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
vscode-extensions = {
url = "github:nix-community/nix-vscode-extensions";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-02-13 19:56:08 +00:00
spicetify = {
url = "github:the-argus/spicetify-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-01-25 12:09:27 +00:00
starc = {
url = "git+https://git.krsnik.at/Kristian/starc-flake.git";
inputs.nixpkgs.follows = "nixpkgs";
};
scanned-image-extractor = {
url = "git+https://git.krsnik.at/Kristian/scanned-image-extractor.git";
inputs.nixpkgs.follows = "nixpkgs";
};
2023-07-23 03:04:32 +00:00
};
outputs = {
self,
nixpkgs,
# nixpkgs-unstable,
# nixpkgs-master,
2023-07-23 03:04:32 +00:00
home-manager,
nur,
2023-07-31 18:47:35 +00:00
wallpaper,
nix-index-database,
vscode-extensions,
2024-02-13 19:56:08 +00:00
spicetify,
2024-01-25 12:09:27 +00:00
starc,
scanned-image-extractor,
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-09-30 14:16:07 +00:00
homeConfigurations = let
commonModules = [
./systems/common
{
2024-02-13 19:56:08 +00:00
_module.args = {
inherit spicetify;
wallpaper = wallpaper.packages.${system}.default;
libs = import ./libs;
2024-02-13 19:56:08 +00:00
};
2023-09-30 14:16:07 +00:00
}
2024-02-13 19:56:08 +00:00
spicetify.homeManagerModule
2023-09-30 14:16:07 +00:00
nur.nixosModules.nur
nix-index-database.hmModules.nix-index
{
programs.nix-index-database.comma.enable = true;
}
{
nixpkgs.overlays = [
vscode-extensions.overlays.default
starc.overlays.default
scanned-image-extractor.overlays.default
# ( # https://github.com/nix-community/home-manager/issues/1538#issuecomment-706627100
# final: prev: {
# unstable = import nixpkgs-unstable {
# system = final.system;
# config.allowUnfreePredicate = _: true;
# };
# master = import nixpkgs-master {
# system = final.system;
# config.allowUnfreePredicate = _: true;
# };
# }
# )
2023-09-30 14:16:07 +00:00
];
}
];
in {
pc = home-manager.lib.homeManagerConfiguration {
2023-07-23 03:04:32 +00:00
inherit pkgs;
modules =
[
./systems/pc
]
2023-09-30 14:16:07 +00:00
++ commonModules;
};
2023-07-31 18:08:25 +00:00
laptop = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
2023-07-23 03:04:32 +00:00
modules =
2023-08-27 19:20:47 +00:00
[
./systems/laptop
]
2023-09-30 14:16:07 +00:00
++ commonModules;
2023-07-23 03:04:32 +00:00
};
};
devShells.${system}.default = pkgs.mkShellNoCC {
packages = [
pkgs.dconf2nix
];
};
2023-07-23 03:04:32 +00:00
};
}