nix-system/flake.nix
2025-05-21 23:08:53 +02:00

74 lines
2 KiB
Nix

{
description = "Home Manager configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
unstable.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager/release-24.11";
inputs.nixpkgs.follows = "nixpkgs";
};
nixgl = {
url = "github:nix-community/nixGL";
inputs.nixpkgs.follows = "nixpkgs";
};
st-flexipatch.url = "https://git.antoinevaure.fr/ant/st-flexipatch/archive/master.zip";
};
outputs = { ... }@inputs:
let
system = "x86_64-linux";
pkgs = inputs.nixpkgs.legacyPackages.${system};
pkgs-unstable = inputs.unstable.legacyPackages.${system};
nixgl = inputs.nixgl.packages.${system};
in {
homeConfigurations."anvaure@Allegro23-12" =
inputs.home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = {
inherit pkgs-unstable;
variant = "allegro";
};
modules = [
{ home.username = "anvaure"; }
./home.nix
{ home.packages = [ nixgl.nixGLIntel ]; }
{ home.packages = [ inputs.st-flexipatch.packages.${system}.st ]; }
];
};
homeConfigurations."ant@hs" =
inputs.home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = {
inherit pkgs-unstable;
variant = "hs";
};
modules = [
{ home.username = "ant"; }
./home.nix
];
};
homeConfigurations."ant@nixos" =
inputs.home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = {
inherit pkgs-unstable;
variant = "default";
};
modules = [
{ home.username = "ant"; }
./home.nix
{ home.packages = [ inputs.st-flexipatch.packages.${system}.st ]; }
{ wayland.windowManager.hyprland.package = pkgs-unstable.hyprland; }
];
};
};
}