mirror of
https://codeberg.org/tmayoff/.dotfiles.git
synced 2025-12-06 08:48:34 -05:00
61 lines
1.5 KiB
Nix
61 lines
1.5 KiB
Nix
{
|
|
description = "Home manager flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
nixgl.url = "github:nix-community/nixGL";
|
|
};
|
|
|
|
outputs = {
|
|
self,
|
|
nixpkgs,
|
|
nixpkgs-unstable,
|
|
home-manager,
|
|
...
|
|
} @ inputs: let
|
|
inherit (self) outputs;
|
|
|
|
system = "x86_64-linux";
|
|
in rec {
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
config.allowUnfree = true;
|
|
};
|
|
|
|
overlays = import ./overlays {inherit inputs;};
|
|
|
|
defaultPackage.${system} = home-manager.defaultPackage.${system};
|
|
|
|
nixosConfigurations = {
|
|
mal = nixpkgs.lib.nixosSystem {
|
|
specialArgs = {inherit inputs outputs;};
|
|
modules = [./nixos/mal/configuration.nix];
|
|
};
|
|
};
|
|
|
|
homeConfigurations = {
|
|
"tyler@guidebolt" = home-manager.lib.homeManagerConfiguration {
|
|
inherit pkgs;
|
|
extraSpecialArgs = {inherit inputs outputs;};
|
|
modules = [./home/guidebolt/guidebolt.nix];
|
|
};
|
|
|
|
"tyler@wash" = home-manager.lib.homeManagerConfiguration {
|
|
inherit pkgs;
|
|
extraSpecialArgs = {inherit inputs outputs;};
|
|
modules = [./home/wash/wash.nix];
|
|
};
|
|
|
|
"tyler@mal" = home-manager.lib.homeManagerConfiguration {
|
|
inherit pkgs;
|
|
extraSpecialArgs = {inherit inputs outputs;};
|
|
modules = [./home/mal/mal.nix];
|
|
};
|
|
};
|
|
};
|
|
}
|