Nix configurations for my personal machines (Linux & macOS)

Compare changes

Choose any two refs to compare.

+4 -2
files/karabiner/keybind-helpers.json
···
"description": "MacBook internal keyboard",
"vendor_id": 1452,
"product_id": 641
-
}
]
}
],
···
"description": "MacBook internal keyboard",
"vendor_id": 1452,
"product_id": 641
-
}
]
}
],
···
"description": "MacBook internal keyboard",
"vendor_id": 1452,
"product_id": 641
+
},
+
{ "is_built_in_keyboard": true }
]
}
],
···
"description": "MacBook internal keyboard",
"vendor_id": 1452,
"product_id": 641
+
},
+
{ "is_built_in_keyboard": true }
]
}
],
+46 -95
flake.lock
···
"home-manager": [
"home-manager"
],
-
"nix-darwin": "nix-darwin",
"nixpkgs": [
"nixpkgs"
],
···
"type": "github"
}
},
-
"flake-utils_3": {
-
"inputs": {
-
"systems": "systems_3"
-
},
-
"locked": {
-
"lastModified": 1731533236,
-
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
-
"owner": "numtide",
-
"repo": "flake-utils",
-
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
-
"type": "github"
-
},
-
"original": {
-
"owner": "numtide",
-
"repo": "flake-utils",
-
"type": "github"
-
}
-
},
"flakey-profile": {
"locked": {
"lastModified": 1712898590,
···
]
},
"locked": {
-
"lastModified": 1758375677,
-
"narHash": "sha256-BLtD+6qWz7fQjPk2wpwyXQLGI0E30Ikgf2ppn2nVadI=",
"owner": "nix-community",
"repo": "home-manager",
-
"rev": "edc7468e12be92e926847cb02418e649b02b59dd",
"type": "github"
},
"original": {
···
"xwayland-satellite-unstable": "xwayland-satellite-unstable"
},
"locked": {
-
"lastModified": 1758434547,
-
"narHash": "sha256-HV6J991KhLAvPk9jXOiO9kufVm9JwBhggTxx608bxIw=",
"owner": "sodiboo",
"repo": "niri-flake",
-
"rev": "1e707d7863f8c17ff13f4394c6c17df68cd8ac49",
"type": "github"
},
"original": {
···
"niri-unstable": {
"flake": false,
"locked": {
-
"lastModified": 1758370089,
-
"narHash": "sha256-0C7695SLx4hU9m3VW4fCrZdvyIY+3kFQTWELHA4hxRQ=",
"owner": "YaLTeR",
"repo": "niri",
-
"rev": "a1dccedbb72da372d2a8a84022f37ccaa4d4a6e6",
"type": "github"
},
"original": {
···
"nix-darwin": {
"inputs": {
"nixpkgs": [
-
"denix",
"nixpkgs"
]
},
"locked": {
-
"lastModified": 1751313918,
-
"narHash": "sha256-HsJM3XLa43WpG+665aGEh8iS8AfEwOIQWk3Mke3e7nk=",
-
"owner": "nix-darwin",
"repo": "nix-darwin",
-
"rev": "e04a388232d9a6ba56967ce5b53a8a6f713cdfcf",
"type": "github"
},
"original": {
···
"type": "github"
}
},
-
"nix-darwin_2": {
-
"inputs": {
-
"nixpkgs": [
-
"nixpkgs"
-
]
-
},
-
"locked": {
-
"lastModified": 1758387173,
-
"narHash": "sha256-E5Ru709RoQEFl+Q0MHRXTIvbY0l6LSR1UHqwTulSeog=",
-
"owner": "LnL7",
-
"repo": "nix-darwin",
-
"rev": "7be9c1b136ef7083e60eb060be0a66dcb254e3ca",
-
"type": "github"
-
},
-
"original": {
-
"owner": "LnL7",
-
"repo": "nix-darwin",
-
"type": "github"
-
}
-
},
"nix-index-database": {
"inputs": {
"nixpkgs": [
···
]
},
"locked": {
-
"lastModified": 1758427679,
-
"narHash": "sha256-xwjWRJTKDCjQ0iwfh7WhDhgcS0Wt3d1Yscg83mKBCn4=",
"owner": "nix-community",
"repo": "nix-index-database",
-
"rev": "fd2569ca2ef7d69f244cd9ffcb66a0540772ff85",
"type": "github"
},
"original": {
···
},
"nix-vscode-extensions": {
"inputs": {
-
"flake-utils": "flake-utils_3",
"nixpkgs": "nixpkgs_2"
},
"locked": {
-
"lastModified": 1758420016,
-
"narHash": "sha256-xnS4Xp2nvtT+fwIfxz16ikSMs03pV9SpQW80btttVe4=",
"owner": "nix-community",
"repo": "nix-vscode-extensions",
-
"rev": "c55175e19f142be0330b2579d7da043d2f22e324",
"type": "github"
},
"original": {
···
},
"nixpkgs-stable": {
"locked": {
-
"lastModified": 1758346548,
-
"narHash": "sha256-afXE7AJ7MY6wY1pg/Y6UPHNYPy5GtUKeBkrZZ/gC71E=",
"owner": "NixOS",
"repo": "nixpkgs",
-
"rev": "b2a3852bd078e68dd2b3dfa8c00c67af1f0a7d20",
"type": "github"
},
"original": {
"owner": "NixOS",
-
"ref": "nixos-25.05",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
-
"lastModified": 1744868846,
-
"narHash": "sha256-5RJTdUHDmj12Qsv7XOhuospjAjATNiTMElplWnJE9Hs=",
-
"owner": "NixOS",
"repo": "nixpkgs",
-
"rev": "ebe4301cbd8f81c4f8d3244b3632338bbeb6d49c",
"type": "github"
},
"original": {
-
"owner": "NixOS",
"repo": "nixpkgs",
-
"rev": "ebe4301cbd8f81c4f8d3244b3632338bbeb6d49c",
"type": "github"
}
},
"nixpkgs_3": {
"locked": {
-
"lastModified": 1758277210,
-
"narHash": "sha256-iCGWf/LTy+aY0zFu8q12lK8KuZp7yvdhStehhyX1v8w=",
"owner": "nixos",
"repo": "nixpkgs",
-
"rev": "8eaee110344796db060382e15d3af0a9fc396e0e",
"type": "github"
},
"original": {
···
"iosevka-solai": "iosevka-solai",
"lix-module": "lix-module",
"niri-flake": "niri-flake",
-
"nix-darwin": "nix-darwin_2",
"nix-index-database": "nix-index-database",
"nix-vscode-extensions": "nix-vscode-extensions",
"nixpkgs": "nixpkgs_3",
···
"type": "github"
}
},
-
"systems_3": {
-
"locked": {
-
"lastModified": 1681028828,
-
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
-
"owner": "nix-systems",
-
"repo": "default",
-
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
-
"type": "github"
-
},
-
"original": {
-
"owner": "nix-systems",
-
"repo": "default",
-
"type": "github"
-
}
-
},
"xwayland-satellite-stable": {
"flake": false,
"locked": {
···
"xwayland-satellite-unstable": {
"flake": false,
"locked": {
-
"lastModified": 1757179758,
-
"narHash": "sha256-TIvyWzRt1miQj6Cf5Wy8Qz43XIZX7c4vTVwRLAT5S4Y=",
"owner": "Supreeeme",
"repo": "xwayland-satellite",
-
"rev": "970728d0d9d1eada342bb8860af214b601139e58",
"type": "github"
},
"original": {
···
]
},
"locked": {
-
"lastModified": 1757304371,
-
"narHash": "sha256-EZ3Vwgh5xgXuiPUmr9e1a9dEu3hvEWhRurAKpsAwB2A=",
"owner": "youwen5",
"repo": "zen-browser-flake",
-
"rev": "3968348af022fe88468ef8de4f9683076e2e5e4b",
"type": "github"
},
"original": {
···
"home-manager": [
"home-manager"
],
+
"nix-darwin": [
+
"nix-darwin"
+
],
"nixpkgs": [
"nixpkgs"
],
···
"type": "github"
}
},
"flakey-profile": {
"locked": {
"lastModified": 1712898590,
···
]
},
"locked": {
+
"lastModified": 1765480374,
+
"narHash": "sha256-HlbvQAqLx7WqZFFQZ8nu5UUJAVlXiV/kqKbyueA8srw=",
"owner": "nix-community",
"repo": "home-manager",
+
"rev": "39cb677ed9e908e90478aa9fe5f3383dfc1a63f3",
"type": "github"
},
"original": {
···
"xwayland-satellite-unstable": "xwayland-satellite-unstable"
},
"locked": {
+
"lastModified": 1765528203,
+
"narHash": "sha256-DTs3VkvRjW/Quu7y9hzNUrddysBXbcqv5Rpo4rtQYQI=",
"owner": "sodiboo",
"repo": "niri-flake",
+
"rev": "8f74fd85c7b42f2d06347a9c9eaff6d4904854f3",
"type": "github"
},
"original": {
···
"niri-unstable": {
"flake": false,
"locked": {
+
"lastModified": 1765524373,
+
"narHash": "sha256-gi38XWhkb+H8iHhlXgv7MgUaQCuhmaTzKmq3yzYOg9g=",
"owner": "YaLTeR",
"repo": "niri",
+
"rev": "c22d8358c293f5e66748d8ac20600e6b114f9743",
"type": "github"
},
"original": {
···
"nix-darwin": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
+
"lastModified": 1765065051,
+
"narHash": "sha256-b7W9WsvyMOkUScNxbzS45KEJp0iiqRPyJ1I3JBE+oEE=",
+
"owner": "LnL7",
"repo": "nix-darwin",
+
"rev": "7e22bf538aa3e0937effcb1cee73d5f1bcc26f79",
"type": "github"
},
"original": {
···
"type": "github"
}
},
"nix-index-database": {
"inputs": {
"nixpkgs": [
···
]
},
"locked": {
+
"lastModified": 1765267181,
+
"narHash": "sha256-d3NBA9zEtBu2JFMnTBqWj7Tmi7R5OikoU2ycrdhQEws=",
"owner": "nix-community",
"repo": "nix-index-database",
+
"rev": "82befcf7dc77c909b0f2a09f5da910ec95c5b78f",
"type": "github"
},
"original": {
···
},
"nix-vscode-extensions": {
"inputs": {
"nixpkgs": "nixpkgs_2"
},
"locked": {
+
"lastModified": 1765505053,
+
"narHash": "sha256-nDMsy5cVXs4iShqoLt8gCz/s1LdVxsaUFsTuSY/22rg=",
"owner": "nix-community",
"repo": "nix-vscode-extensions",
+
"rev": "1778f178603ed65b4e4033c64f04ea51142ad6f6",
"type": "github"
},
"original": {
···
},
"nixpkgs-stable": {
"locked": {
+
"lastModified": 1765311797,
+
"narHash": "sha256-mSD5Ob7a+T2RNjvPvOA1dkJHGVrNVl8ZOrAwBjKBDQo=",
"owner": "NixOS",
"repo": "nixpkgs",
+
"rev": "09eb77e94fa25202af8f3e81ddc7353d9970ac1b",
"type": "github"
},
"original": {
"owner": "NixOS",
+
"ref": "nixos-25.11",
+
"ref": "nixos-25.11",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
+
"lastModified": 1759770925,
+
"narHash": "sha256-CZwkCtzTNclqlhuwDsVtGoRumTpqCUK0xSnFIMgd8ls=",
+
"owner": "nixos",
"repo": "nixpkgs",
+
"rev": "674c2b09c59a220204350ced584cadaacee30038",
"type": "github"
},
"original": {
+
"owner": "nixos",
"repo": "nixpkgs",
+
"rev": "674c2b09c59a220204350ced584cadaacee30038",
"type": "github"
}
},
"nixpkgs_3": {
"locked": {
+
"lastModified": 1765186076,
+
"narHash": "sha256-hM20uyap1a0M9d344I692r+ik4gTMyj60cQWO+hAYP8=",
"owner": "nixos",
"repo": "nixpkgs",
+
"rev": "addf7cf5f383a3101ecfba091b98d0a1263dc9b8",
"type": "github"
},
"original": {
···
"iosevka-solai": "iosevka-solai",
"lix-module": "lix-module",
"niri-flake": "niri-flake",
+
"nix-darwin": "nix-darwin",
"nix-index-database": "nix-index-database",
"nix-vscode-extensions": "nix-vscode-extensions",
"nixpkgs": "nixpkgs_3",
···
"type": "github"
}
},
"xwayland-satellite-stable": {
"flake": false,
"locked": {
···
"xwayland-satellite-unstable": {
"flake": false,
"locked": {
+
"lastModified": 1765343581,
+
"narHash": "sha256-HtTPbV6z6AJPg2d0bHaJKFrnNha+SEbHvbJafKAQ614=",
"owner": "Supreeeme",
"repo": "xwayland-satellite",
+
"rev": "f0ad674b7009a6afd80cea59d4fbf975dd68ee95",
"type": "github"
},
"original": {
···
]
},
"locked": {
+
"lastModified": 1764648680,
+
"narHash": "sha256-B/nmawJ75/951Xs9ludSxDVd/txFY+odmcbinySqMQo=",
+
"lastModified": 1764648680,
+
"narHash": "sha256-B/nmawJ75/951Xs9ludSxDVd/txFY+odmcbinySqMQo=",
"owner": "youwen5",
"repo": "zen-browser-flake",
+
"rev": "897df2f2ad4880563ce801fa29f348a4e98f0a20",
+
"rev": "897df2f2ad4880563ce801fa29f348a4e98f0a20",
"type": "github"
},
"original": {
+18 -28
flake.nix
···
# nur.url = "github:nix-community/NUR";
nix-darwin = {
-
url = "github:LnL7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
···
denix = {
url = "github:yunfachi/denix";
inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager";
};
···
url = "github:youwen5/zen-browser-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
-
-
# ags = {
-
# url = "github:Aylur/ags";
-
# inputs.nixpkgs.follows = "nixpkgs";
-
# };
};
outputs = {
-
# ags,
denix,
home-manager,
lix-module,
···
self,
...
} @ inputs: let
-
system = "x86_64-linux";
-
pkgs = nixpkgs.legacyPackages.${system};
-
# agsPkgs = ags.packages.${system};
mkConfigurations = moduleSystem:
denix.lib.configurations (let
homeManagerUser = "ovy";
···
specialArgs = {inherit inputs moduleSystem homeManagerUser;};
});
in {
-
packages.${system} = {
iconifydl = pkgs.callPackage ./pkgs/iconifydl.nix {};
-
# default = ags.lib.bundle {
-
# inherit pkgs;
-
# src = ./files/astal;
-
# name = "ovy-shell";
-
# entry = "app.ts";
-
# };
-
};
-
-
# devShells.x86_64-linux.default = pkgs.mkShell {
-
# buildInputs = [agsPkgs.agsFull agsPkgs.io agsPkgs.apps agsPkgs.tray self.packages.${system}.iconifydl];
-
# };
nixosConfigurations = mkConfigurations "nixos";
darwinConfigurations = mkConfigurations "darwin";
···
# };
# };
-
formatter = {
-
aarch64-linux = nixpkgs.legacyPackages.aarch64-linux.alejandra;
-
aarch64-darwin = nixpkgs.legacyPackages.aarch64-darwin.alejandra;
-
x86_64-darwin = nixpkgs.legacyPackages.x86_64-darwin.alejandra;
-
x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.alejandra;
-
};
};
}
···
# nur.url = "github:nix-community/NUR";
nix-darwin = {
+
url = "github:nix-darwin/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
···
denix = {
url = "github:yunfachi/denix";
inputs.nixpkgs.follows = "nixpkgs";
+
inputs.nix-darwin.follows = "nix-darwin";
inputs.home-manager.follows = "home-manager";
};
···
url = "github:youwen5/zen-browser-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {
denix,
home-manager,
lix-module,
···
self,
...
} @ inputs: let
+
forSystems = fn:
+
nixpkgs.lib.genAttrs [
+
"aarch64-linux"
+
"aarch64-darwin"
+
"x86_64-darwin"
+
"x86_64-linux"
+
] (system: fn nixpkgs.legacyPackages.${system});
+
defaultForSystems = fn: forSystems (pkgs: {default = fn pkgs;});
+
mkConfigurations = moduleSystem:
denix.lib.configurations (let
homeManagerUser = "ovy";
···
specialArgs = {inherit inputs moduleSystem homeManagerUser;};
});
in {
+
packages = forSystems (pkgs: {
iconifydl = pkgs.callPackage ./pkgs/iconifydl.nix {};
+
});
+
devShells = defaultForSystems (pkgs:
+
pkgs.mkShell {
+
buildInputs = [pkgs.just];
+
});
nixosConfigurations = mkConfigurations "nixos";
darwinConfigurations = mkConfigurations "darwin";
···
# };
# };
+
formatter = forSystems (pkgs: pkgs.alejandra);
};
}
+15
hosts/setsuna/default.nix
···
···
+
{delib, ...}:
+
delib.host {
+
name = "setsuna";
+
+
myconfig._1password.enable = false;
+
myconfig.gaming.enable = false;
+
myconfig.tray.enable = false;
+
myconfig.virtualisation.enable = false;
+
+
myconfig.programs.chromium.enable = false;
+
myconfig.programs.desktop-apps.enable = false;
+
myconfig.programs.espanso.enable = false;
+
myconfig.programs.kitty.enable = false;
+
myconfig.programs.syncthing.enable = false;
+
}
+19
hosts/setsuna/hardware.nix
···
···
+
{
+
delib,
+
inputs,
+
...
+
}:
+
delib.host {
+
name = "setsuna";
+
+
homeManagerSystem = "aarch64-darwin";
+
home.home.stateVersion = "26.05";
+
+
darwin = {
+
nixpkgs.hostPlatform = "aarch64-darwin";
+
# TODO: `darwin-rebuild changelog` to see what changed, latest is 6
+
system.stateVersion = 6;
+
# TODO: see what this does, i forgor
+
system.configurationRevision = inputs.self.rev or inputs.self.dirtyRev or null;
+
};
+
}
-1
hosts/shimmer/default.nix
···
myconfig.tray.enable = false;
myconfig.virtualisation.enable = false;
-
myconfig.programs.firefox.enable = false;
myconfig.programs.chromium.enable = false;
myconfig.programs.desktop-apps.enable = false;
myconfig.programs.espanso.enable = false;
···
myconfig.tray.enable = false;
myconfig.virtualisation.enable = false;
myconfig.programs.chromium.enable = false;
myconfig.programs.desktop-apps.enable = false;
myconfig.programs.espanso.enable = false;
+2
hosts/wallsocket/hardware.nix
···
{
delib,
lib,
...
}: let
platform = "x86_64-linux";
···
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-amd"];
boot.extraModulePackages = [];
# Bootloader
boot.loader.systemd-boot.enable = true;
···
{
delib,
lib,
+
pkgs,
...
}: let
platform = "x86_64-linux";
···
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-amd"];
boot.extraModulePackages = [];
+
boot.kernelPackages = pkgs.linuxPackages_latest;
# Bootloader
boot.loader.systemd-boot.enable = true;
+15
justfile
···
···
+
[private]
+
default:
+
just --list
+
+
[linux]
+
boot:
+
sudo nixos-rebuild boot -L
+
+
[linux]
+
switch:
+
sudo nixos-rebuild switch -L
+
+
[macos]
+
switch:
+
sudo darwin-rebuild switch --flake . -L
+1
modules/1password.nix
···
text = ''
vivaldi-bin
zen
'';
mode = "0755";
};
···
text = ''
vivaldi-bin
zen
+
zen-bin
'';
mode = "0755";
};
+2 -1
modules/darwin/homebrew.nix
···
# Actually searches symlinks for apps, compared to Alfred.
"raycast"
"swiftformat-for-xcode"
# "vorta"
"zen"
];
···
Keka = 470158793;
"Yubico Authenticator" = 1497506650;
"System Color Picker" = 1545870783;
-
Tailscale = 1475387142;
};
};
}
···
# Actually searches symlinks for apps, compared to Alfred.
"raycast"
"swiftformat-for-xcode"
+
"tailscale-app"
# "vorta"
+
"vesktop"
"zen"
];
···
Keka = 470158793;
"Yubico Authenticator" = 1497506650;
"System Color Picker" = 1545870783;
};
};
}
+5 -3
modules/fonts.nix
···
nixos.always = {
fonts = {
packages = [
-
pkgs.ubuntu_font_family
pkgs.inter
-
pkgs.corefonts
-
pkgs.vista-fonts
inputs.iosevka-solai.packages.x86_64-linux.bin
];
···
nixos.always = {
fonts = {
packages = [
+
pkgs.ubuntu-classic
+
pkgs.ubuntu-sans
pkgs.inter
+
# Only needed for one specific thing and now can't download from sourceforge for some reason
+
# pkgs.corefonts
+
# pkgs.vista-fonts
inputs.iosevka-solai.packages.x86_64-linux.bin
];
+1 -1
modules/graphics.nix
···
opencl.enable = true;
};
-
environment.systemPackages = with pkgs; [amdgpu_top lact nvtopPackages.full];
systemd.services.lactd = {
description = "AMDGPU Control Daemon";
···
opencl.enable = true;
};
+
environment.systemPackages = with pkgs; [amdgpu_top lact];
systemd.services.lactd = {
description = "AMDGPU Control Daemon";
+66 -72
modules/nix.nix
···
delib,
inputs,
...
-
}: let
-
shared = {
-
nixpkgs.config = import ../files/nixpkgs-config.nix;
-
nix.settings = {
-
auto-optimise-store = true;
-
experimental-features = ["nix-command" "flakes"];
-
trusted-users = ["root" "@wheel" "ovy"];
-
};
};
-
in
-
delib.module {
-
name = "nix";
-
# TODO: double check home-manager options
-
home.always =
-
shared
-
// {
-
xdg.configFile."nixpkgs/config.nix".source = ../files/nixpkgs-config.nix;
};
-
nixos.always =
-
shared
-
// {
-
nix = {
-
gc = {
-
automatic = true;
-
options = "--delete-older-than 10d";
-
dates = "weekly";
-
};
-
nixPath = ["nixpkgs=${inputs.nixpkgs}"];
-
registry.nixpkgs.to = {
-
type = "path";
-
path = inputs.nixpkgs;
-
narHash = inputs.nixpkgs.narHash;
-
};
-
settings = {
-
auto-optimise-store = true;
-
experimental-features = ["nix-command" "flakes"];
-
trusted-users = ["root" "@wheel" "ovy"];
-
};
-
};
-
system.tools.nixos-option.enable = false;
-
};
-
darwin.always = {
-
nix = {
-
buildMachines = [
-
{
-
hostName = "rushing.axolotl-map.ts.net";
-
sshUser = "colmena-deploy";
-
system = "x86_64-linux";
-
speedFactor = 2;
-
maxJobs = 6;
-
protocol = "ssh-ng";
-
}
-
{
-
hostName = "skyline.axolotl-map.ts.net";
-
sshUser = "colmena-deploy";
-
system = "aarch64-linux";
-
speedFactor = 1;
-
maxJobs = 2;
-
protocol = "ssh-ng";
-
}
-
];
-
distributedBuilds = true;
-
gc = {
-
automatic = true;
-
options = "--delete-older-than 7d";
-
interval.Weekday = 6;
-
};
-
optimise.automatic = true;
-
settings = {
-
builders-use-substitutes = true;
-
experimental-features = "nix-command flakes";
-
trusted-users = ["root" "ovy"];
-
};
};
};
-
}
···
delib,
inputs,
...
+
}:
+
delib.module {
+
name = "nix";
+
# TODO: double check home-manager options
+
home.always = {
+
nixpkgs.config = import ../files/nixpkgs-config.nix;
+
xdg.configFile."nixpkgs/config.nix".source = ../files/nixpkgs-config.nix;
};
+
+
nixos.always = {
+
nixpkgs.config = import ../files/nixpkgs-config.nix;
+
nix = {
+
gc = {
+
automatic = true;
+
options = "--delete-older-than 10d";
+
dates = "weekly";
};
+
nixPath = ["nixpkgs=${inputs.nixpkgs}"];
+
registry.nixpkgs.to = {
+
type = "path";
+
path = inputs.nixpkgs;
+
narHash = inputs.nixpkgs.narHash;
+
};
+
settings = {
+
auto-optimise-store = true;
+
experimental-features = ["nix-command" "flakes"];
+
trusted-users = ["root" "@wheel" "ovy"];
+
warn-dirty = false;
+
};
+
};
+
system.tools.nixos-option.enable = false;
+
};
+
darwin.always = {
+
nixpkgs.config = import ../files/nixpkgs-config.nix;
+
nix = {
+
buildMachines = [
+
{
+
hostName = "rushing.axolotl-map.ts.net";
+
sshUser = "colmena-deploy";
+
system = "x86_64-linux";
+
speedFactor = 2;
+
maxJobs = 6;
+
protocol = "ssh-ng";
+
}
+
{
+
hostName = "skyline.axolotl-map.ts.net";
+
sshUser = "colmena-deploy";
+
system = "aarch64-linux";
+
speedFactor = 1;
+
maxJobs = 2;
+
protocol = "ssh-ng";
+
}
+
];
+
distributedBuilds = true;
+
gc = {
+
automatic = true;
+
options = "--delete-older-than 7d";
+
interval.Weekday = 6;
+
};
+
optimise.automatic = true;
+
settings = {
+
builders-use-substitutes = true;
+
experimental-features = "nix-command flakes";
+
trusted-users = ["root" "ovy"];
+
sandbox = true;
+
warn-dirty = false;
};
};
+
};
+
}
-10
modules/ollama.nix
···
-
{delib, ...}:
-
delib.module {
-
name = "ollama";
-
-
nixos.always.services.ollama = {
-
enable = true;
-
acceleration = "rocm";
-
rocmOverrideGfx = "11.0.0";
-
};
-
}
···
+9 -1
modules/plasma.nix
···
environment.plasma6.excludePackages = with pkgs.kdePackages; [
elisa
gwenview
konsole
];
qt = {
···
# environment.sessionVariables."NIXOS_OZONE_WL" = 1;
environment.sessionVariables."MOZ_ENABLE_WAYLAND" = 0;
-
environment.systemPackages = with pkgs; [adwaita-icon-theme kdePackages.kcalc kdePackages.partitionmanager kdePackages.kcolorchooser];
# TODO: move
boot.plymouth = {
···
environment.plasma6.excludePackages = with pkgs.kdePackages; [
elisa
gwenview
+
kate
konsole
+
krunner
];
qt = {
···
# environment.sessionVariables."NIXOS_OZONE_WL" = 1;
environment.sessionVariables."MOZ_ENABLE_WAYLAND" = 0;
+
environment.systemPackages = with pkgs; [
+
adwaita-icon-theme
+
kdePackages.kcalc
+
kdePackages.partitionmanager
+
kdePackages.kcolorchooser
+
kdePackages.kdenlive
+
];
# TODO: move
boot.plymouth = {
+1 -1
modules/programs/core-cli.nix
···
home.always = {
home.packages = with pkgs; [
curlie
-
du-dust
duf
fd
jq
···
home.always = {
home.packages = with pkgs; [
curlie
+
dust
duf
fd
jq
+25 -5
modules/programs/desktop-apps.nix
···
{
delib,
pkgs,
...
}:
delib.module {
···
blender
btop # TODO: module & options
bruno
-
# davinci-resolve
-
# distrobox
gajim
glaxnimate
# godot_4
···
lunacy
lutris
# mixxx
-
obs-studio
obsidian
oversteer
p7zip
picard
···
temurin-bin-17
];
})
qbittorrent
qimgv
slack
-
vesktop
vlc
vorta
winetricks
···
yubioath-flutter
];
-
services.owncloud-client.enable = true;
};
}
···
{
delib,
pkgs,
+
homeConfig,
...
}:
delib.module {
···
blender
btop # TODO: module & options
bruno
+
davinci-resolve
+
(discord.override {
+
withOpenASAR = true;
+
withVencord = true;
+
})
gajim
glaxnimate
# godot_4
···
lunacy
lutris
# mixxx
obsidian
+
opencloud-desktop
oversteer
p7zip
picard
···
temurin-bin-17
];
})
+
protonup-qt
qbittorrent
qimgv
slack
+
# vesktop
vlc
vorta
winetricks
···
yubioath-flutter
];
+
systemd.user.services.opencloud-client = {
+
Unit = {
+
Description = "OpenCloud Client";
+
After = ["graphical-session.target"];
+
PartOf = ["graphical-session.target"];
+
};
+
+
Service = {
+
Environment = ["PATH=${homeConfig.home.profileDirectory}/bin"];
+
ExecStart = "${pkgs.opencloud-desktop}/bin/opencloud";
+
};
+
+
Install = {
+
WantedBy = ["graphical-session.target"];
+
};
+
};
};
}
+30 -18
modules/programs/desktop-cli.nix
···
{
delib,
pkgs,
...
}:
···
options = delib.singleEnableOption true;
-
home.ifEnabled.home.packages = with pkgs; [
-
age-plugin-yubikey
-
alejandra
-
cachix
-
fastfetch
-
hexyl
-
lazydocker
-
macchina
-
minio-client
-
mix2nix
-
minisign
-
mtr
-
nix-output-monitor
-
pgcli
-
rage
-
systemctl-tui
-
];
nixos.ifEnabled = {myconfig, ...}: {
programs.nh = {
enable = true;
flake = "/etc/nixos";
};
};
darwin.ifEnabled = {myconfig, ...}: {
-
environment.systemPackages = [pkgs.nh];
environment.variables.NH_FLAKE = "/Users/${myconfig.constants.username}/.config/nix-darwin";
};
}
···
{
delib,
+
lib,
pkgs,
...
}:
···
options = delib.singleEnableOption true;
+
home.ifEnabled.home.packages = with pkgs;
+
[
+
age-plugin-yubikey
+
alejandra
+
cachix
+
fastfetch
+
hexyl
+
lazydocker
+
macchina
+
minio-client
+
mix2nix
+
minisign
+
mtr
+
nix-output-monitor
+
pgcli
+
rage
+
systemctl-tui
+
]
+
++ (lib.optional pkgs.stdenv.isLinux [pkgs.claude-code pkgs.claude-code-router]);
nixos.ifEnabled = {myconfig, ...}: {
programs.nh = {
enable = true;
flake = "/etc/nixos";
};
+
+
environment.systemPackages = with pkgs.gst_all_1; [
+
gstreamer
+
gst-vaapi
+
gst-libav
+
gst-plugins-good
+
gst-plugins-ugly
+
gst-plugins-bad
+
];
};
darwin.ifEnabled = {myconfig, ...}: {
+
environment.systemPackages = with pkgs; [nh];
environment.variables.NH_FLAKE = "/Users/${myconfig.constants.username}/.config/nix-darwin";
};
}
-16
modules/programs/firefox.nix
···
-
{
-
delib,
-
pkgs,
-
inputs,
-
...
-
}:
-
delib.module {
-
name = "programs.firefox";
-
-
options = delib.singleEnableOption true;
-
-
home.ifEnabled.programs.firefox = {
-
enable = true;
-
package = inputs.zen-browser.packages.${pkgs.system}.default;
-
};
-
}
···
+2 -2
modules/programs/fish.nix
···
owner = "PatrickF1";
repo = "fzf.fish";
rev = "8920367cf85eee5218cc25a11e209d46e2591e7a";
-
hash = "sha256-lxQZo6APemNjt2c21IL7+uY3YVs81nuaRUL7NDMcB6s=";
};
}
{
···
owner = "gazorby";
repo = "fifc";
rev = "a01650cd432becdc6e36feeff5e8d657bd7ee84a";
-
hash = "sha256-Nrart7WAh2VQhsDDe0EFI59TqvBO56US2MraqencxgE";
};
}
{
···
owner = "PatrickF1";
repo = "fzf.fish";
rev = "8920367cf85eee5218cc25a11e209d46e2591e7a";
+
hash = "sha256-T8KYLA/r/gOKvAivKRoeqIwE2pINlxFQtZJHpOy9GMM=";
};
}
{
···
owner = "gazorby";
repo = "fifc";
rev = "a01650cd432becdc6e36feeff5e8d657bd7ee84a";
+
hash = "sha256-Ynb0Yd5EMoz7tXwqF8NNKqCGbzTZn/CwLsZRQXIAVp4=";
};
}
{
+18 -6
modules/programs/git.nix
···
programs.git = {
enable = true;
-
userName = userfullname;
-
userEmail = useremail;
-
delta.enable = true;
signing = {
signByDefault = true;
···
key = "~/.ssh/id_ed25519_sk_rk";
};
-
extraConfig = {
# TODO: custom pretty stuff?
blame.showEmail = true;
init.defaultBranch = "main";
···
default-command = "log";
show-cryptographic-signatures = true;
conflict-marker-style = "git";
-
diff-formatter = "delta";
editor = "codium -w";
merge-editor = "vscodium";
};
···
"closest_bookmark(to)" = "heads(::to & bookmarks())";
"p(n)" = "p(@, n)";
"p(r, n)" = "roots(r | ancestors(r-, n))";
};
aliases = {
···
n = ["new"];
tug = ["bookmark" "move" "--from" "closest_bookmark(@-)" "--to" "@-"];
tug-here = ["bookmark" "move" "--from" "closest_bookmark(@)" "--to" "@"];
};
merge-tools.mergiraf = {
···
git = {
sign-on-push = true;
-
push-new-bookmarks = true;
write-change-id-header = true;
};
···
key = "~/.ssh/id_ed25519_sk_rk.pub";
backends.ssh.allowed-signers = "~/.config/git/allowed_signers";
};
};
};
programs.mergiraf.enable = true;
···
programs.git = {
enable = true;
signing = {
signByDefault = true;
···
key = "~/.ssh/id_ed25519_sk_rk";
};
+
settings = {
+
user = {
+
name = userfullname;
+
email = useremail;
+
};
+
# TODO: custom pretty stuff?
blame.showEmail = true;
init.defaultBranch = "main";
···
default-command = "log";
show-cryptographic-signatures = true;
conflict-marker-style = "git";
+
# diff-formatter = "delta";
editor = "codium -w";
merge-editor = "vscodium";
};
···
"closest_bookmark(to)" = "heads(::to & bookmarks())";
"p(n)" = "p(@, n)";
"p(r, n)" = "roots(r | ancestors(r-, n))";
+
"tail()" = "tail(@)";
+
"tail(h)" = "roots(trunk()..h)";
};
aliases = {
···
n = ["new"];
tug = ["bookmark" "move" "--from" "closest_bookmark(@-)" "--to" "@-"];
tug-here = ["bookmark" "move" "--from" "closest_bookmark(@)" "--to" "@"];
+
solve = ["resolve" "--tool" "mergiraf"];
};
merge-tools.mergiraf = {
···
git = {
sign-on-push = true;
write-change-id-header = true;
};
···
key = "~/.ssh/id_ed25519_sk_rk.pub";
backends.ssh.allowed-signers = "~/.config/git/allowed_signers";
};
+
+
remotes.origin.auto-track-bookmarks = "glob:*";
};
+
};
+
+
programs.delta = {
+
enable = true;
+
enableGitIntegration = true;
+
enableJujutsuIntegration = true;
};
programs.mergiraf.enable = true;
+1 -1
modules/programs/kitty.nix
···
cursor_shape = "block";
cursor_shape_unfocused = "hollow";
scrollback_lines = 10000;
-
scrollback_pager = "moar +INPUT_LINE_NUMBER";
scrollback_pager_history_size = 5;
window_padding_width = 8;
hide_window_decorations = true;
···
cursor_shape = "block";
cursor_shape_unfocused = "hollow";
scrollback_lines = 10000;
+
scrollback_pager = "moor +INPUT_LINE_NUMBER";
scrollback_pager_history_size = 5;
window_padding_width = 8;
hide_window_decorations = true;
+20
modules/programs/obs-studio.nix
···
···
+
{
+
delib,
+
pkgs,
+
...
+
}:
+
delib.module {
+
name = "programs.obs-studio";
+
+
options = delib.singleEnableOption true;
+
+
nixos.ifEnabled.programs.obs-studio = {
+
enable = true;
+
plugins = with pkgs.obs-studio-plugins; [
+
obs-vaapi
+
obs-gstreamer
+
obs-vkcapture
+
obs-pipewire-audio-capture
+
];
+
};
+
}
+3 -3
modules/programs/pager.nix
···
# TODO: read docs and experiment
home.always = {
-
home.packages = [pkgs.moar];
home.sessionVariables = {
-
PAGER = "moar";
-
MOAR = "--no-linenumbers";
MANPAGER = "sh -c 'col -bx | bat -l man -p'";
MANROFFOPT = "-c";
};
···
# TODO: read docs and experiment
home.always = {
+
home.packages = [pkgs.moor];
home.sessionVariables = {
+
PAGER = "moor";
+
MOOR = "--no-linenumbers";
MANPAGER = "sh -c 'col -bx | bat -l man -p'";
MANROFFOPT = "-c";
};
+2
modules/programs/ssh.nix
···
home.always.programs.ssh = {
enable = true;
matchBlocks = {
"*" = {
identitiesOnly = true;
···
home.always.programs.ssh = {
enable = true;
+
enableDefaultConfig = false;
+
matchBlocks = {
"*" = {
identitiesOnly = true;
+3
modules/programs/vscode.nix
···
wakatime.vscode-wakatime
redhat.vscode-yaml
arcanis.vscode-zipfs
vscode-marketplace.wraith13.background-phi-colors
vscode-marketplace.be5invis.theme-dolch
vscode-marketplace.fabiospampinato.vscode-diff
···
"[prisma]"."editor.defaultFormatter" = "Prisma.prisma";
"[python]"."editor.defaultFormatter" = "ms-python.python";
"[rust]"."editor.defaultFormatter" = "rust-lang.rust-analyzer";
# Sane defaults
"editor.tabSize" = 2;
···
];
# "prettier.prettierPath" = "prettierd";
"prettier.proseWrap" = "always";
# Pretties
"workbench.colorTheme" = "Dolch";
···
wakatime.vscode-wakatime
redhat.vscode-yaml
arcanis.vscode-zipfs
+
golang.go
vscode-marketplace.wraith13.background-phi-colors
vscode-marketplace.be5invis.theme-dolch
vscode-marketplace.fabiospampinato.vscode-diff
···
"[prisma]"."editor.defaultFormatter" = "Prisma.prisma";
"[python]"."editor.defaultFormatter" = "ms-python.python";
"[rust]"."editor.defaultFormatter" = "rust-lang.rust-analyzer";
+
"[go]"."editor.defaultFormatter" = "golang.go";
# Sane defaults
"editor.tabSize" = 2;
···
];
# "prettier.prettierPath" = "prettierd";
"prettier.proseWrap" = "always";
+
"chat.disableAIFeatures" = true;
# Pretties
"workbench.colorTheme" = "Dolch";