39e6276c7d
Tooling: - nh + nvd/nom/statix/deadnix/comma (new programs/nix.nix); GC via nh clean - zoxide (cd), atuin, just, lazydocker, dust, duf, difftastic (git dft) Structure: - rename desktop -> konishi; homeConfigurations -> "user@host" for nh autodetect Removals (heavy/unused): - android-studio, unity/.NET/omnisharp/vscode, kicad, zoom, calibre, google-fonts, nerd-dictation Screen recording: - kooha + vokoscreen-ng + `webcam` corner-cam command/window-rule Fixes: - WEBKIT_DISABLE_DMABUF_RENDERER moved to common (electron/tauri on intel) - kitty pinned to Catppuccin-Mocha; darkman no longer toggles kitty/claude - claude theme dark + statusline locale fix - ssh: migrate to settings API + multiplexing/keepalive/AddKeysToAgent; gpg-agent enableSshSupport - silence hyprland configType / gtk4 / xdg userDirs deprecations Flake hygiene: - follows=nixpkgs for foundry/hardware/rose-pine/zen/spicetify (10->5 nixpkgs) - zoxide _ZO_DOCTOR=0 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
138 lines
3.5 KiB
Nix
138 lines
3.5 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";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
hardware = {
|
|
url = "github:NixOS/nixos-hardware/master";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
rose-pine-hyprcursor = {
|
|
url = "github:ndom91/rose-pine-hyprcursor";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
zen-browser = {
|
|
url = "github:0xc000022070/zen-browser-flake";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
# ethui pins its own nixpkgs (verified rust/tauri build) — do not follow.
|
|
ethui.url = "github:ethui/ethui/nix";
|
|
# hyprland pins its own nixpkgs to match its cachix cache — do not follow,
|
|
# or it compiles from source.
|
|
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";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
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; });
|
|
};
|
|
}
|