122 lines
3.0 KiB
Nix
122 lines
3.0 KiB
Nix
{
|
|
description = "naps62's nix config";
|
|
|
|
nixConfig = {
|
|
experimental-features = [
|
|
"nix-command"
|
|
"flakes"
|
|
];
|
|
};
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
systems.url = "github:nix-systems/default-linux";
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
nvchad4nix = {
|
|
url = "github:nix-community/nix4nvchad";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.nvchad-starter.follows = "nvchad-starter";
|
|
};
|
|
nvchad-starter = {
|
|
url = "github:naps62/nvchad-starter";
|
|
flake = false;
|
|
};
|
|
foundry = {
|
|
url = "github:shazow/foundry.nix";
|
|
};
|
|
hardware.url = "github:NixOS/nixos-hardware/master";
|
|
rose-pine-hyprcursor.url = "github:ndom91/rose-pine-hyprcursor";
|
|
zen-browser.url = "github:0xc000022070/zen-browser-flake";
|
|
ethui.url = "github:ethui/ethui/nix";
|
|
hyprland = {
|
|
type = "git";
|
|
url = "https://github.com/hyprwm/Hyprland";
|
|
submodules = true;
|
|
};
|
|
noctalia = {
|
|
url = "github:noctalia-dev/noctalia-shell";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
spicetify-nix.url = "github:Gerg-L/spicetify-nix";
|
|
claude-code.url = "github:sadjow/claude-code-nix";
|
|
nix-index-database = {
|
|
url = "github:nix-community/nix-index-database";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs =
|
|
{
|
|
self,
|
|
systems,
|
|
nixpkgs,
|
|
home-manager,
|
|
...
|
|
}@inputs:
|
|
let
|
|
inherit (self) outputs;
|
|
pkgsFor = nixpkgs.lib.genAttrs (import systems) (
|
|
system:
|
|
import nixpkgs {
|
|
inherit system;
|
|
config.allowUnfree = true;
|
|
config.android_sdk.accept_license = true;
|
|
overlays = [
|
|
inputs.foundry.overlay
|
|
];
|
|
}
|
|
);
|
|
|
|
x86 = pkgsFor.x86_64-linux;
|
|
|
|
mkNixOS =
|
|
name:
|
|
nixpkgs.lib.nixosSystem {
|
|
modules = [
|
|
./hosts/${name}
|
|
];
|
|
specialArgs = {
|
|
inherit inputs outputs;
|
|
};
|
|
};
|
|
|
|
mkHome =
|
|
name: pkgs:
|
|
home-manager.lib.homeManagerConfiguration {
|
|
inherit pkgs;
|
|
modules = [
|
|
./home/${name}
|
|
];
|
|
extraSpecialArgs = {
|
|
inherit inputs outputs self;
|
|
};
|
|
};
|
|
in
|
|
{
|
|
nixosConfigurations = {
|
|
arrakis = mkNixOS "arrakis";
|
|
konishi = mkNixOS "konishi";
|
|
};
|
|
|
|
# Named "<user>@<host>" so `nh home switch` auto-detects them
|
|
# (nh home tries "$USER@$(hostname)", not the bare hostname).
|
|
homeConfigurations = {
|
|
"naps62@arrakis" = mkHome "arrakis" x86;
|
|
"naps62@konishi" = mkHome "konishi" x86;
|
|
};
|
|
|
|
devShells =
|
|
let
|
|
forEachSystem = nixpkgs.lib.genAttrs [
|
|
"x86_64-linux"
|
|
"aarch64-linux"
|
|
];
|
|
forEachPkg = f: forEachSystem (sys: f pkgsFor.${sys});
|
|
in
|
|
forEachPkg (pkgs: import ./shell.nix { inherit pkgs; });
|
|
};
|
|
}
|