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
-
}
+
},
+
{ "is_built_in_keyboard": true }
]
}
],
···
"description": "MacBook internal keyboard",
"vendor_id": 1452,
"product_id": 641
-
}
+
},
+
{ "is_built_in_keyboard": true }
]
}
],
+69 -118
flake.lock
···
"home-manager": [
"home-manager"
],
-
"nix-darwin": "nix-darwin",
+
"nix-darwin": [
+
"nix-darwin"
+
],
"nixpkgs": [
"nixpkgs"
],
···
"pre-commit-hooks": "pre-commit-hooks"
},
"locked": {
-
"lastModified": 1751095980,
-
"narHash": "sha256-ZaSWSq1WXMBma91zzV671B15uf7WuqaJu4XKOvhcIYk=",
+
"lastModified": 1758123851,
+
"narHash": "sha256-sbKwqBOLI423TvXvzlX2UGZR4pE1M8C7KXi0699ImmQ=",
"owner": "yunfachi",
"repo": "denix",
-
"rev": "888e92b0327a21ee63873fad8e1b479b4a15577e",
+
"rev": "d90f816b7b93304e5d5e69d429de0052f64d5149",
"type": "github"
},
"original": {
···
"flake-compat": {
"flake": false,
"locked": {
-
"lastModified": 1696426674,
-
"narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=",
+
"lastModified": 1747046372,
+
"narHash": "sha256-CIVLLkVgvHYbgI2UpXvIIBJ12HWgX+fjA8Xf8PUmqCY=",
"owner": "edolstra",
"repo": "flake-compat",
-
"rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",
+
"rev": "9100a0f413b0c601e0533d1d94ffd501ce2e7885",
"type": "github"
},
"original": {
···
"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": 1752286566,
-
"narHash": "sha256-A4nftqiNz2bNihz0bKY94Hq/6ydR6UQOcGioeL7iymY=",
+
"lastModified": 1765480374,
+
"narHash": "sha256-HlbvQAqLx7WqZFFQZ8nu5UUJAVlXiV/kqKbyueA8srw=",
"owner": "nix-community",
"repo": "home-manager",
-
"rev": "392ddb642abec771d63688c49fa7bcbb9d2a5717",
+
"rev": "39cb677ed9e908e90478aa9fe5f3383dfc1a63f3",
"type": "github"
},
"original": {
···
"xwayland-satellite-unstable": "xwayland-satellite-unstable"
},
"locked": {
-
"lastModified": 1752291616,
-
"narHash": "sha256-zpPFo4cgr5tOy8DCLIoD++idsKjnzgVPnBeZLmazYc4=",
+
"lastModified": 1765528203,
+
"narHash": "sha256-DTs3VkvRjW/Quu7y9hzNUrddysBXbcqv5Rpo4rtQYQI=",
"owner": "sodiboo",
"repo": "niri-flake",
-
"rev": "30962469e2e8fb93c3672ee605316b89b8e9a198",
+
"rev": "8f74fd85c7b42f2d06347a9c9eaff6d4904854f3",
"type": "github"
},
"original": {
···
"niri-stable": {
"flake": false,
"locked": {
-
"lastModified": 1748151941,
-
"narHash": "sha256-z4viQZLgC2bIJ3VrzQnR+q2F3gAOEQpU1H5xHtX/2fs=",
+
"lastModified": 1756556321,
+
"narHash": "sha256-RLD89dfjN0RVO86C/Mot0T7aduCygPGaYbog566F0Qo=",
"owner": "YaLTeR",
"repo": "niri",
-
"rev": "8ba57fcf25d2fc9565131684a839d58703f1dae7",
+
"rev": "01be0e65f4eb91a9cd624ac0b76aaeab765c7294",
"type": "github"
},
"original": {
"owner": "YaLTeR",
-
"ref": "v25.05.1",
+
"ref": "v25.08",
"repo": "niri",
"type": "github"
}
···
"niri-unstable": {
"flake": false,
"locked": {
-
"lastModified": 1750791124,
-
"narHash": "sha256-F5iVU/hjoSHSSe0gllxm0PcAaseEtGNanYK5Ha3k2Tg=",
+
"lastModified": 1765524373,
+
"narHash": "sha256-gi38XWhkb+H8iHhlXgv7MgUaQCuhmaTzKmq3yzYOg9g=",
"owner": "YaLTeR",
"repo": "niri",
-
"rev": "37458d94b288945f6cfbd3c5c233f634d59f246c",
+
"rev": "c22d8358c293f5e66748d8ac20600e6b114f9743",
"type": "github"
},
"original": {
···
"nix-darwin": {
"inputs": {
"nixpkgs": [
-
"denix",
"nixpkgs"
]
},
"locked": {
-
"lastModified": 1746254942,
-
"narHash": "sha256-Y062AuRx6l+TJNX8wxZcT59SSLsqD9EedAY0mqgTtQE=",
-
"owner": "nix-darwin",
+
"lastModified": 1765065051,
+
"narHash": "sha256-b7W9WsvyMOkUScNxbzS45KEJp0iiqRPyJ1I3JBE+oEE=",
+
"owner": "LnL7",
"repo": "nix-darwin",
-
"rev": "760a11c87009155afa0140d55c40e7c336d62d7a",
+
"rev": "7e22bf538aa3e0937effcb1cee73d5f1bcc26f79",
"type": "github"
},
"original": {
···
"type": "github"
}
},
-
"nix-darwin_2": {
-
"inputs": {
-
"nixpkgs": [
-
"nixpkgs"
-
]
-
},
-
"locked": {
-
"lastModified": 1751313918,
-
"narHash": "sha256-HsJM3XLa43WpG+665aGEh8iS8AfEwOIQWk3Mke3e7nk=",
-
"owner": "LnL7",
-
"repo": "nix-darwin",
-
"rev": "e04a388232d9a6ba56967ce5b53a8a6f713cdfcf",
-
"type": "github"
-
},
-
"original": {
-
"owner": "LnL7",
-
"repo": "nix-darwin",
-
"type": "github"
-
}
-
},
"nix-index-database": {
"inputs": {
"nixpkgs": [
···
]
},
"locked": {
-
"lastModified": 1752305182,
-
"narHash": "sha256-6i4Q68G7wzNq1m2+l3lJUYgGZ9PwULvSVJpRSTTC46o=",
+
"lastModified": 1765267181,
+
"narHash": "sha256-d3NBA9zEtBu2JFMnTBqWj7Tmi7R5OikoU2ycrdhQEws=",
"owner": "nix-community",
"repo": "nix-index-database",
-
"rev": "ad29e2961dd0d58372384563bf00d510fc9f2e15",
+
"rev": "82befcf7dc77c909b0f2a09f5da910ec95c5b78f",
"type": "github"
},
"original": {
···
},
"nix-vscode-extensions": {
"inputs": {
-
"flake-utils": "flake-utils_3",
"nixpkgs": "nixpkgs_2"
},
"locked": {
-
"lastModified": 1752286423,
-
"narHash": "sha256-5a4+w/P9cr5l8YOypiwNrAIOyhLYA9x9Va1mqKkvwRs=",
+
"lastModified": 1765505053,
+
"narHash": "sha256-nDMsy5cVXs4iShqoLt8gCz/s1LdVxsaUFsTuSY/22rg=",
"owner": "nix-community",
"repo": "nix-vscode-extensions",
-
"rev": "f942441f13f5dbd29e4bd5596b2c2ba346c4940e",
+
"rev": "1778f178603ed65b4e4033c64f04ea51142ad6f6",
"type": "github"
},
"original": {
···
},
"nixpkgs": {
"locked": {
-
"lastModified": 1749213349,
-
"narHash": "sha256-UAaWOyQhdp7nXzsbmLVC67fo+QetzoTm9hsPf9X3yr4=",
+
"lastModified": 1754340878,
+
"narHash": "sha256-lgmUyVQL9tSnvvIvBp7x1euhkkCho7n3TMzgjdvgPoU=",
"owner": "NixOS",
"repo": "nixpkgs",
-
"rev": "a4ff0e3c64846abea89662bfbacf037ef4b34207",
+
"rev": "cab778239e705082fe97bb4990e0d24c50924c04",
"type": "github"
},
"original": {
···
},
"nixpkgs-lib": {
"locked": {
-
"lastModified": 1749345370,
-
"narHash": "sha256-w2J8aeSsMT6v6xAokr076vSCDHs5LRi2JkTUyNsEl4o=",
+
"lastModified": 1754184128,
+
"narHash": "sha256-AjhoyBL4eSyXf01Bmc6DiuaMrJRNdWopmdnMY0Pa/M0=",
"owner": "nix-community",
"repo": "nixpkgs.lib",
-
"rev": "2a3d74c76852805ec8eba6dd52350e85e75805ec",
+
"rev": "02e72200e6d56494f4a7c0da8118760736e41b60",
"type": "github"
},
"original": {
···
},
"nixpkgs-stable": {
"locked": {
-
"lastModified": 1752162966,
-
"narHash": "sha256-3MxxkU8ZXMHXcbFz7UE4M6qnIPTYGcE/7EMqlZNnVDE=",
+
"lastModified": 1765311797,
+
"narHash": "sha256-mSD5Ob7a+T2RNjvPvOA1dkJHGVrNVl8ZOrAwBjKBDQo=",
"owner": "NixOS",
"repo": "nixpkgs",
-
"rev": "10e687235226880ed5e9f33f1ffa71fe60f2638a",
+
"rev": "09eb77e94fa25202af8f3e81ddc7353d9970ac1b",
"type": "github"
},
"original": {
"owner": "NixOS",
-
"ref": "nixos-25.05",
+
"ref": "nixos-25.11",
+
"ref": "nixos-25.11",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
-
"lastModified": 1744868846,
-
"narHash": "sha256-5RJTdUHDmj12Qsv7XOhuospjAjATNiTMElplWnJE9Hs=",
-
"owner": "NixOS",
+
"lastModified": 1759770925,
+
"narHash": "sha256-CZwkCtzTNclqlhuwDsVtGoRumTpqCUK0xSnFIMgd8ls=",
+
"owner": "nixos",
"repo": "nixpkgs",
-
"rev": "ebe4301cbd8f81c4f8d3244b3632338bbeb6d49c",
+
"rev": "674c2b09c59a220204350ced584cadaacee30038",
"type": "github"
},
"original": {
-
"owner": "NixOS",
+
"owner": "nixos",
"repo": "nixpkgs",
-
"rev": "ebe4301cbd8f81c4f8d3244b3632338bbeb6d49c",
+
"rev": "674c2b09c59a220204350ced584cadaacee30038",
"type": "github"
}
},
"nixpkgs_3": {
"locked": {
-
"lastModified": 1751984180,
-
"narHash": "sha256-LwWRsENAZJKUdD3SpLluwDmdXY9F45ZEgCb0X+xgOL0=",
+
"lastModified": 1765186076,
+
"narHash": "sha256-hM20uyap1a0M9d344I692r+ik4gTMyj60cQWO+hAYP8=",
"owner": "nixos",
"repo": "nixpkgs",
-
"rev": "9807714d6944a957c2e036f84b0ff8caf9930bc0",
+
"rev": "addf7cf5f383a3101ecfba091b98d0a1263dc9b8",
"type": "github"
},
"original": {
···
"nixpkgs": "nixpkgs"
},
"locked": {
-
"lastModified": 1746537231,
-
"narHash": "sha256-Wb2xeSyOsCoTCTj7LOoD6cdKLEROyFAArnYoS+noCWo=",
+
"lastModified": 1754416808,
+
"narHash": "sha256-c6yg0EQ9xVESx6HGDOCMcyRSjaTpNJP10ef+6fRcofA=",
"owner": "cachix",
"repo": "git-hooks.nix",
-
"rev": "fa466640195d38ec97cf0493d6d6882bc4d14969",
+
"rev": "9c52372878df6911f9afc1e2a1391f55e4dfc864",
"type": "github"
},
"original": {
···
"iosevka-solai": "iosevka-solai",
"lix-module": "lix-module",
"niri-flake": "niri-flake",
-
"nix-darwin": "nix-darwin_2",
+
"nix-darwin": "nix-darwin",
"nix-index-database": "nix-index-database",
"nix-vscode-extensions": "nix-vscode-extensions",
"nixpkgs": "nixpkgs_3",
···
}
},
"systems_2": {
-
"locked": {
-
"lastModified": 1681028828,
-
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
-
"owner": "nix-systems",
-
"repo": "default",
-
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
-
"type": "github"
-
},
-
"original": {
-
"owner": "nix-systems",
-
"repo": "default",
-
"type": "github"
-
}
-
},
-
"systems_3": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
···
"xwayland-satellite-stable": {
"flake": false,
"locked": {
-
"lastModified": 1748488455,
-
"narHash": "sha256-IiLr1alzKFIy5tGGpDlabQbe6LV1c9ABvkH6T5WmyRI=",
+
"lastModified": 1755491097,
+
"narHash": "sha256-m+9tUfsmBeF2Gn4HWa6vSITZ4Gz1eA1F5Kh62B0N4oE=",
"owner": "Supreeeme",
"repo": "xwayland-satellite",
-
"rev": "3ba30b149f9eb2bbf42cf4758d2158ca8cceef73",
+
"rev": "388d291e82ffbc73be18169d39470f340707edaa",
"type": "github"
},
"original": {
"owner": "Supreeeme",
-
"ref": "v0.6",
+
"ref": "v0.7",
"repo": "xwayland-satellite",
"type": "github"
}
···
"xwayland-satellite-unstable": {
"flake": false,
"locked": {
-
"lastModified": 1751228685,
-
"narHash": "sha256-MENtauGBhJ+kDeFaawvWGXaFG3Il6qQzjaP0RmtfM0k=",
+
"lastModified": 1765343581,
+
"narHash": "sha256-HtTPbV6z6AJPg2d0bHaJKFrnNha+SEbHvbJafKAQ614=",
"owner": "Supreeeme",
"repo": "xwayland-satellite",
-
"rev": "557ebeb616e03d5e4a8049862bbbd1f02c6f020b",
+
"rev": "f0ad674b7009a6afd80cea59d4fbf975dd68ee95",
"type": "github"
},
"original": {
···
]
},
"locked": {
-
"lastModified": 1752293576,
-
"narHash": "sha256-84tAzrC/kioWRmG0jLt1HWRP/wHON7zjLtXCwWRNI/g=",
+
"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": "1a40cdcb093a0025631ef692caa53130f821dd77",
+
"rev": "897df2f2ad4880563ce801fa29f348a4e98f0a20",
+
"rev": "897df2f2ad4880563ce801fa29f348a4e98f0a20",
"type": "github"
},
"original": {
+18 -28
flake.nix
···
# nur.url = "github:nix-community/NUR";
nix-darwin = {
-
url = "github:LnL7/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";
};
-
-
# 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};
+
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.${system} = {
+
packages = forSystems (pkgs: {
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];
-
# };
+
devShells = defaultForSystems (pkgs:
+
pkgs.mkShell {
+
buildInputs = [pkgs.just];
+
});
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;
-
};
+
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;
+
};
+
}
+4 -1
hosts/wallsocket/hardware.nix
···
{
delib,
lib,
+
pkgs,
...
}: let
platform = "x86_64-linux";
···
nixpkgs.hostPlatform = platform;
system.stateVersion = stateVersion;
-
hardware.enableRedistributableFirmware = true;
+
hardware.enableAllFirmware = true;
hardware.cpu.amd.updateMicrocode = true;
# Kernel
···
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-amd"];
boot.extraModulePackages = [];
+
boot.kernelPackages = pkgs.linuxPackages_latest;
# Bootloader
boot.loader.systemd-boot.enable = true;
boot.loader.systemd-boot.configurationLimit = 10;
+
boot.loader.systemd-boot.consoleMode = "max";
boot.loader.efi.canTouchEfiVariables = true;
# Disks
+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
+
zen-bin
'';
mode = "0755";
};
+10 -10
modules/bluetooth.nix
···
nixos.ifEnabled = {
hardware.bluetooth.enable = true;
# TODO: determine if this actually affected me. Maybe should yeet.
-
hardware.bluetooth.settings = {
-
# Try and reduce latency from Xbox Series controllers
-
# https://atar-axis.github.io/xpadneo#high-latency-or-lost-button-events-with-bluetooth-le
-
LE = {
-
MinConnectionInterval = 7;
-
MaxConnectionInterval = 9;
-
ConnectionLatency = 0;
-
};
-
};
-
hardware.xpadneo.enable = true;
+
# hardware.bluetooth.settings = {
+
# # Try and reduce latency from Xbox Series controllers
+
# # https://atar-axis.github.io/xpadneo#high-latency-or-lost-button-events-with-bluetooth-le
+
# LE = {
+
# MinConnectionInterval = 7;
+
# MaxConnectionInterval = 9;
+
# ConnectionLatency = 0;
+
# };
+
# };
+
# hardware.xpadneo.enable = true;
environment.systemPackages = [pkgs.kdePackages.bluedevil];
};
}
+3 -3
modules/darwin/homebrew.nix
···
onActivation.cleanup = "zap";
taps = [
-
"homebrew/cask-versions"
"ovyerus/klog"
"ovyerus/tap"
];
···
# Actually searches symlinks for apps, compared to Alfred.
"raycast"
"swiftformat-for-xcode"
-
# "visual-studio-code"
+
"tailscale-app"
# "vorta"
+
"vesktop"
+
"zen"
];
masApps = {
Keka = 470158793;
"Yubico Authenticator" = 1497506650;
"System Color Picker" = 1545870783;
-
Tailscale = 1475387142;
};
};
}
+8
modules/darwin/system.nix
···
+
{delib, ...}:
+
delib.module {
+
name = "darwin.system";
+
+
darwin.always = {
+
system.primaryUser = "ovy";
+
};
+
}
+5 -1
modules/fonts.nix
···
nixos.always = {
fonts = {
packages = [
-
pkgs.ubuntu_font_family
+
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
];
+5 -1
modules/graphics.nix
···
enable = true;
enable32Bit = true;
};
+
hardware.amdgpu = {
+
initrd.enable = true;
+
opencl.enable = true;
+
};
-
environment.systemPackages = with pkgs; [amdgpu_top lact nvtopPackages.full];
+
environment.systemPackages = with pkgs; [amdgpu_top lact];
systemd.services.lactd = {
description = "AMDGPU Control Daemon";
-11
modules/logitech.nix
···
-
{delib, ...}:
-
delib.module {
-
name = "logitech";
-
-
options = delib.singleEnableOption true;
-
-
nixos.ifEnabled = {
-
hardware.logitech.wireless.enable = true;
-
hardware.new-lg4ff.enable = true;
-
};
-
}
-6
modules/networking.nix
···
# dnsovertls = "trues";
};
-
services.tailscale = {
-
enable = true;
-
openFirewall = true;
-
useRoutingFeatures = "client";
-
};
-
# services.mullvad-vpn.enable = true;
# services.mullvad-vpn.package = pkgs.mullvad-vpn;
+67 -66
modules/nix.nix
···
delib,
inputs,
...
-
}: let
-
shared = {
+
}:
+
delib.module {
+
name = "nix";
+
+
# TODO: double check home-manager options
+
home.always = {
nixpkgs.config = import ../files/nixpkgs-config.nix;
-
-
nix.settings = {
-
auto-optimise-store = true;
-
experimental-features = ["nix-command" "flakes"];
-
trusted-users = ["root" "@wheel" "ovy"];
-
};
+
xdg.configFile."nixpkgs/config.nix".source = ../files/nixpkgs-config.nix;
};
-
in
-
delib.module {
-
name = "nix";
+
+
nixos.always = {
+
nixpkgs.config = import ../files/nixpkgs-config.nix;
-
# TODO: double check home-manager options
-
home.always =
-
shared
-
// {
-
xdg.configFile."nixpkgs/config.nix".source = ../files/nixpkgs-config.nix;
+
nix = {
+
gc = {
+
automatic = true;
+
options = "--delete-older-than 10d";
+
dates = "weekly";
};
-
nixos.always =
-
shared
-
// {
-
nix = {
-
gc = {
-
automatic = true;
-
options = "--delete-older-than 10d";
-
dates = "weekly";
-
};
-
nixPath = ["nixpkgs=${inputs.nixpkgs}"];
+
nixPath = ["nixpkgs=${inputs.nixpkgs}"];
-
registry.nixpkgs.to = {
-
type = "path";
-
path = inputs.nixpkgs;
-
narHash = inputs.nixpkgs.narHash;
-
};
-
};
+
registry.nixpkgs.to = {
+
type = "path";
+
path = inputs.nixpkgs;
+
narHash = inputs.nixpkgs.narHash;
+
};
-
system.tools.nixos-option.enable = false;
+
settings = {
+
auto-optimise-store = true;
+
experimental-features = ["nix-command" "flakes"];
+
trusted-users = ["root" "@wheel" "ovy"];
+
warn-dirty = 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";
-
}
-
];
+
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;
+
distributedBuilds = true;
-
gc = {
-
automatic = true;
-
options = "--delete-older-than 7d";
-
interval.Weekday = 6;
-
};
+
gc = {
+
automatic = true;
+
options = "--delete-older-than 7d";
+
interval.Weekday = 6;
+
};
-
optimise.automatic = true;
+
optimise.automatic = true;
-
settings = {
-
builders-use-substitutes = true;
-
experimental-features = "nix-command flakes";
-
trusted-users = ["root" "ovy"];
-
};
+
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";
-
};
-
}
+19 -5
modules/plasma.nix
···
sddm.enable = true;
sddm.wayland.enable = true;
-
# autoLogin = {
-
# enable = true;
-
# user = "ovy";
-
# };
+
autoLogin = {
+
enable = true;
+
user = "ovy";
+
};
};
services.desktopManager.plasma6.enable = true;
···
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];
+
environment.systemPackages = with pkgs; [
+
adwaita-icon-theme
+
kdePackages.kcalc
+
kdePackages.partitionmanager
+
kdePackages.kcolorchooser
+
kdePackages.kdenlive
+
];
+
+
# TODO: move
+
boot.plymouth = {
+
enable = true;
+
theme = "breeze";
+
};
};
}
+1 -2
modules/programs/core-cli.nix
···
openssh
p7zip
pciutils
-
solaar
sysstat
unar
wget
···
home.always = {
home.packages = with pkgs; [
curlie
-
du-dust
+
dust
duf
fd
jq
+25 -5
modules/programs/desktop-apps.nix
···
{
delib,
pkgs,
+
homeConfig,
...
}:
delib.module {
···
blender
btop # TODO: module & options
bruno
-
# davinci-resolve
-
# distrobox
+
davinci-resolve
+
(discord.override {
+
withOpenASAR = true;
+
withVencord = true;
+
})
gajim
glaxnimate
# godot_4
···
lunacy
lutris
# mixxx
-
obs-studio
obsidian
+
opencloud-desktop
oversteer
p7zip
picard
···
temurin-bin-17
];
})
+
protonup-qt
qbittorrent
qimgv
slack
-
vesktop
+
# vesktop
vlc
vorta
winetricks
···
yubioath-flutter
];
-
services.owncloud-client.enable = true;
+
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"];
+
};
+
};
};
}
+31 -19
modules/programs/desktop-cli.nix
···
{
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
-
];
+
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 = "/home/${myconfig.constants.username}/.config/nixos";
+
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 = [pkgs.nh];
+
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;
-
};
-
}
+6 -2
modules/programs/fish.nix
···
nix-your-shell fish | source
+
if test -d /opt/homebrew/bin;
+
fish_add_path /opt/homebrew/bin
+
end;
+
# Docker compose alias that switches to if the standalone binary is present.
if which docker-compose &> /dev/null;
alias dc docker-compose;
···
owner = "PatrickF1";
repo = "fzf.fish";
rev = "8920367cf85eee5218cc25a11e209d46e2591e7a";
-
hash = "sha256-lxQZo6APemNjt2c21IL7+uY3YVs81nuaRUL7NDMcB6s=";
+
hash = "sha256-T8KYLA/r/gOKvAivKRoeqIwE2pINlxFQtZJHpOy9GMM=";
};
}
{
···
owner = "gazorby";
repo = "fifc";
rev = "a01650cd432becdc6e36feeff5e8d657bd7ee84a";
-
hash = "sha256-Nrart7WAh2VQhsDDe0EFI59TqvBO56US2MraqencxgE";
+
hash = "sha256-Ynb0Yd5EMoz7tXwqF8NNKqCGbzTZn/CwLsZRQXIAVp4=";
};
}
{
+25 -7
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 = {
+
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";
+
# diff-formatter = "delta";
+
editor = "codium -w";
+
merge-editor = "vscodium";
};
revset-aliases = {
"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 = {
-
tug = ["bookmark" "move" "--from" "closest_bookmark(@-)" "--to" "@-"];
e = ["edit"];
n = ["new"];
+
tug = ["bookmark" "move" "--from" "closest_bookmark(@-)" "--to" "@-"];
+
tug-here = ["bookmark" "move" "--from" "closest_bookmark(@)" "--to" "@"];
+
solve = ["resolve" "--tool" "mergiraf"];
};
merge-tools.mergiraf = {
program = "mergiraf";
merge-args = ["merge" "$base" "$left" "$right" "-o" "$output"];
+
merge-conflict-exit-codes = [1];
+
conflict-marker-style = "git";
};
git = {
sign-on-push = true;
-
push-new-bookmarks = true;
+
write-change-id-header = true;
};
signing = {
···
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 = "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.packages = [pkgs.moor];
home.sessionVariables = {
-
PAGER = "moar";
-
MOAR = "--no-linenumbers";
+
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;
+
enableDefaultConfig = false;
+
matchBlocks = {
"*" = {
identitiesOnly = true;
+4 -1
modules/programs/vscode.nix
···
bmalehorn.vscode-fish
github.vscode-github-actions
eamodio.gitlens
-
# TODO: terraform (use opentofu instead)
ms-vscode.hexeditor
lokalise.i18n-ally
kisstkondoros.vscode-gutter-preview
···
vunguyentuan.vscode-postcss
esbenp.prettier-vscode
prisma.prisma
+
gleam.gleam
# TODO: use jedi instead of pylance
ms-python.python
ms-python.debugpy
···
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";
+9 -3
modules/systemd.nix
···
nixos.always = {
systemd = {
-
extraConfig = ''
-
DefaultTimeoutStopSec=30s
-
'';
+
settings.Manager.DefaultTimeoutStopSec = "30s";
user.extraConfig = ''
DefaultTimeoutStopSec=30s
'';
};
+
+
services.udev.extraRules = ''
+
# USB device rules for both dongle and mouse (Lamzu Maya)
+
SUBSYSTEM=="usb", ATTRS{idVendor}=="3554", ATTRS{idProduct}=="f50d", MODE="0666", GROUP="input", TAG+="uaccess"
+
SUBSYSTEM=="usb", ATTRS{idVendor}=="3554", ATTRS{idProduct}=="f50f", MODE="0666", GROUP="input", TAG+="uaccess"
+
KERNEL=="hidraw*", ATTRS{idVendor}=="3554", ATTRS{idProduct}=="f50d", MODE="0666", GROUP="input", TAG+="uaccess"
+
KERNEL=="hidraw*", ATTRS{idVendor}=="3554", ATTRS{idProduct}=="f50f", MODE="0666", GROUP="input", TAG+="uaccess"
+
'';
};
}
+14
modules/tailscale.nix
···
+
{delib, ...}:
+
delib.module {
+
name = "tailscale";
+
+
options = delib.singleEnableOption true;
+
+
nixos.ifEnabled.services.tailscale = {
+
enable = true;
+
openFirewall = true;
+
useRoutingFeatures = "client";
+
};
+
+
# home.ifEnabled.services.tailscale-systray.enable = true;
+
}