77 lines
2.3 KiB
Nix
77 lines
2.3 KiB
Nix
{
|
|
description = "Mine very own Nix(OS) / home-manager / nix-darwin configuration";
|
|
|
|
inputs = {
|
|
# Nixpkgs
|
|
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.05";
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
# Home manager
|
|
home-manager.url = "github:nix-community/home-manager/master";
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
# nix-index
|
|
nix-index-database.url = "github:nix-community/nix-index-database";
|
|
nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
# stylix
|
|
stylix.url = "github:danth/stylix";
|
|
stylix.inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
outputs =
|
|
{ self
|
|
, nixpkgs
|
|
, home-manager
|
|
, ...
|
|
} @ inputs:
|
|
let
|
|
inherit (self) outputs;
|
|
lib = nixpkgs.lib;
|
|
systems = [
|
|
"x86_64-linux"
|
|
"aarch64-darwin"
|
|
];
|
|
forEachSystem = f: lib.genAttrs systems (system: f pkgsFor.${system});
|
|
pkgsFor = lib.genAttrs systems (system: import nixpkgs {
|
|
inherit system;
|
|
config.allowUnfree = true;
|
|
});
|
|
in
|
|
{
|
|
inherit lib;
|
|
packages = forEachSystem (pkgs: import ./pkgs { inherit pkgs; });
|
|
devShells = forEachSystem (pkgs: import ./shell.nix { inherit pkgs; });
|
|
formatter = forEachSystem (pkgs: pkgs.nixpkgs-fmt);
|
|
|
|
overlays = import ./overlays { inherit inputs outputs; };
|
|
nixosModules = import ./modules/nixos;
|
|
homeManagerModules = import ./modules/home-manager;
|
|
|
|
nixosConfigurations = {
|
|
enoko = lib.nixosSystem {
|
|
specialArgs = { inherit inputs outputs; };
|
|
modules = [
|
|
./nixos/enoko/configuration.nix
|
|
home-manager.nixosModules.home-manager
|
|
{
|
|
home-manager.extraSpecialArgs = { inherit inputs outputs; };
|
|
home-manager.users.lu = import ./home/enoko.nix;
|
|
}
|
|
];
|
|
};
|
|
|
|
yukari = lib.nixosSystem {
|
|
specialArgs = { inherit inputs outputs; };
|
|
modules = [
|
|
./nixos/yukari/configuration.nix
|
|
home-manager.nixosModules.home-manager
|
|
{
|
|
home-manager.extraSpecialArgs = { inherit inputs outputs; };
|
|
home-manager.users.lu = import ./home/yukari.nix;
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|