From c12e188acca7f77857b1b562563e53134f23b46a Mon Sep 17 00:00:00 2001 From: Jet Pham Date: Mon, 8 Dec 2025 18:43:50 -0800 Subject: [PATCH] feat: update to rust linting and flake update --- configuration.nix | 14 ++++++-------- flake.lock | 30 +++++++++++++++--------------- flake.nix | 13 +------------ home.nix | 27 ++++++++++++++++++--------- 4 files changed, 40 insertions(+), 44 deletions(-) diff --git a/configuration.nix b/configuration.nix index ff579bb..74c4683 100644 --- a/configuration.nix +++ b/configuration.nix @@ -13,6 +13,7 @@ # Bootloader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; + boot.kernelParams = [ "usbcore.autosuspend=-1" ]; # Boot time optimizations boot.loader.timeout = 0; # Boot immediately without waiting for user input @@ -38,23 +39,20 @@ }; }; - # Enable networking networking.networkmanager.enable = true; - networking.nameservers = [ "1.1.1.1#one.one.one.one" "1.0.0.1#one.one.one.one" ]; - services.resolved = { enable = true; - dnssec = "true"; - domains = [ "~." ]; - fallbackDns = [ "1.1.1.1#one.one.one.one" "1.0.0.1#one.one.one.one" ]; - dnsovertls = "true"; }; + networking.firewall.checkReversePath = "loose"; + services.tailscale.enable = true; + services.mullvad-vpn.enable = true; + services.mullvad-vpn.package = pkgs.mullvad-vpn; # Set your time zone. - time.timeZone = "America/Los_Angeles"; + time.timeZone = "Europe/Berlin"; # Select internationalisation properties. i18n.defaultLocale = "en_US.UTF-8"; diff --git a/flake.lock b/flake.lock index ca6be46..eef80e9 100644 --- a/flake.lock +++ b/flake.lock @@ -7,11 +7,11 @@ ] }, "locked": { - "lastModified": 1763416652, - "narHash": "sha256-8EBEEvtzQ11LCxpQHMNEBQAGtQiCu/pqP9zSovDSbNM=", + "lastModified": 1767619743, + "narHash": "sha256-N0kK1JqxIjFl7hPAfhkW6C9AO7feYJUWLPyqJO2VuQQ=", "owner": "nix-community", "repo": "home-manager", - "rev": "ea164b7c9ccdc2321379c2ff78fd4317b4c41312", + "rev": "a65c04965c841eb01ba401f5162f12bc8d52014f", "type": "github" }, "original": { @@ -28,11 +28,11 @@ ] }, "locked": { - "lastModified": 1762964643, - "narHash": "sha256-RYHN8O/Aja59XDji6WSJZPkJpYVUfpSkyH+PEupBJqM=", + "lastModified": 1767104570, + "narHash": "sha256-GKgwu5//R+cLdKysZjGqvUEEOGXXLdt93sNXeb2M/Lk=", "owner": "nix-community", "repo": "home-manager", - "rev": "827f2a23373a774a8805f84ca5344654c31f354b", + "rev": "e4e78a2cbeaddd07ab7238971b16468cc1d14daf", "type": "github" }, "original": { @@ -43,11 +43,11 @@ }, "nixos-hardware": { "locked": { - "lastModified": 1762847253, - "narHash": "sha256-BWWnUUT01lPwCWUvS0p6Px5UOBFeXJ8jR+ZdLX8IbrU=", + "lastModified": 1767185284, + "narHash": "sha256-ljDBUDpD1Cg5n3mJI81Hz5qeZAwCGxon4kQW3Ho3+6Q=", "owner": "NixOS", "repo": "nixos-hardware", - "rev": "899dc449bc6428b9ee6b3b8f771ca2b0ef945ab9", + "rev": "40b1a28dce561bea34858287fbb23052c3ee63fe", "type": "github" }, "original": { @@ -58,11 +58,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1763421233, - "narHash": "sha256-Stk9ZYRkGrnnpyJ4eqt9eQtdFWRRIvMxpNRf4sIegnw=", + "lastModified": 1767379071, + "narHash": "sha256-EgE0pxsrW9jp9YFMkHL9JMXxcqi/OoumPJYwf+Okucw=", "owner": "nixos", "repo": "nixpkgs", - "rev": "89c2b2330e733d6cdb5eae7b899326930c2c0648", + "rev": "fb7944c166a3b630f177938e478f0378e64ce108", "type": "github" }, "original": { @@ -88,11 +88,11 @@ ] }, "locked": { - "lastModified": 1763457799, - "narHash": "sha256-33hJpIuqbn/PHf4VCZAktxDCUxnWLOtMAOyAFd75O9E=", + "lastModified": 1767568852, + "narHash": "sha256-6s8hL3YX9zAq2T7qvcwwzaEVwc9MEYbW+C2LcAAQfbk=", "owner": "0xc000022070", "repo": "zen-browser-flake", - "rev": "85bc80b9d8c8b22ed273163dd7c7adfad9287a5d", + "rev": "350c729b261e6f5529460140a5f0943dd4c5e156", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 27af045..0002b69 100644 --- a/flake.nix +++ b/flake.nix @@ -35,18 +35,7 @@ { nixpkgs.overlays = [ (final: prev: { - code-cursor = prev.code-cursor.overrideAttrs (oldAttrs: rec { - pname = "cursor"; - version = "2.0.77"; - src = prev.appimageTools.extract { - inherit pname version; - src = prev.fetchurl { - url = "https://downloads.cursor.com/production/ba90f2f88e4911312761abab9492c42442117cfe/linux/x64/Cursor-2.0.77-x86_64.AppImage"; - hash = "sha256-/r7cmjgFhec7fEKUfFKw3vUoB9LJB2P/646cMeRKp/0="; - }; - }; - sourceRoot = "${pname}-${version}-extracted/usr/share/cursor"; - }); + }) ]; } diff --git a/home.nix b/home.nix index eedfec9..55fa3fc 100644 --- a/home.nix +++ b/home.nix @@ -48,20 +48,16 @@ git wget helix - code-cursor-fhs kitty zellij jujutsu vlc docker nerd-fonts.commit-mono - prismlauncher qbittorrent-enhanced gimp3 obs-studio inkscape - blender - kdePackages.kdenlive bat zoxide eza @@ -78,13 +74,16 @@ mullvad-vpn font-manager handbrake - libreoffice-qt steam appimage-run - obsidian gh beeper - zed-editor + antigravity-fhs + prusa-slicer + printrun + mkp224o + libreoffice-qt-fresh + claude-code ]; @@ -102,6 +101,7 @@ editor = { line-number = "relative"; lsp.display-messages = true; + lsp.display-inlay-hints = true; }; }; languages = { @@ -114,6 +114,15 @@ other-lines = "hint"; }; }; + rust = { + config = { + end-of-line-diagnostics = "hint"; + }; + "inline-diagnostics" = { + cursor-line = "hint"; + other-lines = "hint"; + }; + }; }; }; @@ -180,7 +189,7 @@ ns = "sudo nixos-rebuild switch --flake ~/Documents/nix-config#jet"; nd = "nix develop"; h = "hx"; - + vanity = "mkp224o-amd64-64-24k -d noisebridgevanitytor noisebridge{2..7}"; }; }; @@ -272,7 +281,7 @@ entries = [ "${pkgs.kitty}/share/applications/kitty.desktop" "${config.programs.zen-browser.package}/share/applications/zen-twilight.desktop" - "${pkgs.zed-editor}/share/applications/dev.zed.Zed.desktop" + "${pkgs.beeper}/share/applications/beepertexts.desktop" ]; };