Changes
3 changed files (+10/-11)
-
-
@@ -1,6 +1,8 @@# nixos-config My NixOS configuration files for my laptop and the server running this site. This repo is for machine-specific stuff. For my machine-independent configs, see [my dotfiles repo](/dotfiles). My NixOS configuration files for my laptop and the server running this site. I generally try to keep these configs simple and pragmatic, so stuff like Home Manager, Firefox extensions, and other 3rd-party flakes are out-of-scope. Besides, I don't want to write hundreds of lines of Nix and spend all day Nixifying my entire setup. This repo is for machine-specific stuff. For my machine-independent configs, see [my dotfiles repo](/dotfiles). Another reason for this separation is so that I can just clone my dotfiles anywhere, not just on NixOS machines. ## Cheatsheet
-
@@ -26,3 +28,4 @@ Prefer the new `nix` CLI when possible instead of the old `nix-*` commands. It's| Install specific version of package | https://lazamar.co.uk/nix-versions/ | | Run Nix file | `nix eval -f main.nix` | | Inspect system config in REPL | `nix repl .#nixosConfigurations.$hostname` | | Fix uv `libstdc++.so.6` error | `LD_LIBRARY_PATH=$NIX_LD_LIBRARY_PATH uv run` |
-
-
-
@@ -73,10 +73,11 @@elan # Unfortunately python3 # WolframAlpha at home sage # 1000 times faster! uv # For Lean # Patched for XDG support # Patch for XDG support # https://discourse.nixos.org/t/can-i-install-vscodium-and-tweak-its-product-json/54481/3 (vscodium.overrideAttrs (oldAttrs: { postInstall = (oldAttrs.postInstall or "") + ''
-
@@ -129,7 +130,7 @@fonts = { # The default CJK font (Unifont) looks atrocious packages = with pkgs; [ wqy_microhei ]; # Fix broken emojis # Fix broken emojis in fcitx5 and other places # https://github.com/NixOS/nixpkgs/issues/336989 fontconfig.localConf = '' <match target="font">
-
-
-
@@ -12,12 +12,7 @@}; }; outputs = inputs@{ self, nixpkgs, nixpkgs-old, ... }: inputs@{ self, nixpkgs, ... }: let system = "x86_64-linux"; pkgs = import nixpkgs { inherit system; };
-
@@ -26,7 +21,7 @@nixosConfigurations = { # Very creative name, I know ThinkPad-X1-Yoga-Gen-6 = nixpkgs.lib.nixosSystem { specialArgs.pkgs-old = import nixpkgs-old { inherit system; }; specialArgs.pkgs-old = import inputs.nixpkgs-old { inherit system; }; modules = [ ./configuration.nix ./ThinkPad-X1-Yoga-Gen-6
-