105 lines
2.4 KiB
Nix
105 lines
2.4 KiB
Nix
{
|
|
description = "A rewrite of the original Sakamoto NixOS config.";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
chaotic.url = "github:chaotic-cx/nyx/nyxpkgs-unstable";
|
|
|
|
jovian = {
|
|
url = "github:Jovian-Experiments/Jovian-NixOS";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
matugen = {
|
|
url = "github:/InioX/Matugen";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
# ref = "refs/tags/matugen-v0.10.0";
|
|
};
|
|
|
|
hyprland = {
|
|
url = "github:hyprwm/Hyprland";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
darwin = {
|
|
url = "github:lnl7/nix-darwin";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
nixovim = {
|
|
url = "git+https://git.sakamoto.dev/kenji/nixovim.git";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
illogical-impulse = {
|
|
url = "git+https://git.sakamoto.dev/kenji/illogical-impulse.git";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = {
|
|
self,
|
|
nixpkgs,
|
|
home-manager,
|
|
darwin,
|
|
chaotic,
|
|
jovian,
|
|
illogical-impulse,
|
|
...
|
|
} @ inputs: let
|
|
config = import ./config.nix;
|
|
system = "x86_64-linux";
|
|
args =
|
|
{
|
|
inherit inputs system;
|
|
}
|
|
// config;
|
|
in {
|
|
nixosConfigurations = {
|
|
hakase = nixpkgs.lib.nixosSystem {
|
|
specialArgs = args;
|
|
modules = [
|
|
chaotic.nixosModules.default
|
|
home-manager.nixosModules.home-manager
|
|
jovian.nixosModules.default
|
|
./hosts/hakase/configuration.nix
|
|
];
|
|
};
|
|
};
|
|
|
|
homeConfigurations = {
|
|
hakase = home-manager.lib.homeManagerConfiguration {
|
|
pkgs = import nixpkgs {
|
|
config.allowUnfree = true;
|
|
extraSpecialArgs = args;
|
|
};
|
|
modules = [
|
|
home-manager.nixosModules.home-manager
|
|
./home/hakase.nix
|
|
];
|
|
};
|
|
};
|
|
darwinConfigurations = {
|
|
macos = darwin.lib.darwinSystem {
|
|
system = "aarch64-darwin";
|
|
specialArgs =
|
|
{
|
|
inherit inputs;
|
|
system = "aarch64-darwin";
|
|
}
|
|
// config;
|
|
modules = [
|
|
home-manager.darwinModules.home-manager
|
|
./hosts/macos/darwin.nix
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|