feat: update to rust linting and flake update
This commit is contained in:
parent
bf461e4f7d
commit
c12e188acc
4 changed files with 40 additions and 44 deletions
|
|
@ -13,6 +13,7 @@
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
boot.kernelParams = [ "usbcore.autosuspend=-1" ];
|
||||||
|
|
||||||
# Boot time optimizations
|
# Boot time optimizations
|
||||||
boot.loader.timeout = 0; # Boot immediately without waiting for user input
|
boot.loader.timeout = 0; # Boot immediately without waiting for user input
|
||||||
|
|
@ -38,23 +39,20 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable networking
|
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
networking.nameservers = [ "1.1.1.1#one.one.one.one" "1.0.0.1#one.one.one.one" ];
|
|
||||||
|
|
||||||
services.resolved = {
|
services.resolved = {
|
||||||
enable = true;
|
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.tailscale.enable = true;
|
||||||
|
services.mullvad-vpn.enable = true;
|
||||||
|
services.mullvad-vpn.package = pkgs.mullvad-vpn;
|
||||||
|
|
||||||
# Set your time zone.
|
# Set your time zone.
|
||||||
time.timeZone = "America/Los_Angeles";
|
time.timeZone = "Europe/Berlin";
|
||||||
|
|
||||||
# Select internationalisation properties.
|
# Select internationalisation properties.
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
|
|
||||||
30
flake.lock
generated
30
flake.lock
generated
|
|
@ -7,11 +7,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1763416652,
|
"lastModified": 1767619743,
|
||||||
"narHash": "sha256-8EBEEvtzQ11LCxpQHMNEBQAGtQiCu/pqP9zSovDSbNM=",
|
"narHash": "sha256-N0kK1JqxIjFl7hPAfhkW6C9AO7feYJUWLPyqJO2VuQQ=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "ea164b7c9ccdc2321379c2ff78fd4317b4c41312",
|
"rev": "a65c04965c841eb01ba401f5162f12bc8d52014f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -28,11 +28,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1762964643,
|
"lastModified": 1767104570,
|
||||||
"narHash": "sha256-RYHN8O/Aja59XDji6WSJZPkJpYVUfpSkyH+PEupBJqM=",
|
"narHash": "sha256-GKgwu5//R+cLdKysZjGqvUEEOGXXLdt93sNXeb2M/Lk=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "827f2a23373a774a8805f84ca5344654c31f354b",
|
"rev": "e4e78a2cbeaddd07ab7238971b16468cc1d14daf",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -43,11 +43,11 @@
|
||||||
},
|
},
|
||||||
"nixos-hardware": {
|
"nixos-hardware": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1762847253,
|
"lastModified": 1767185284,
|
||||||
"narHash": "sha256-BWWnUUT01lPwCWUvS0p6Px5UOBFeXJ8jR+ZdLX8IbrU=",
|
"narHash": "sha256-ljDBUDpD1Cg5n3mJI81Hz5qeZAwCGxon4kQW3Ho3+6Q=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"rev": "899dc449bc6428b9ee6b3b8f771ca2b0ef945ab9",
|
"rev": "40b1a28dce561bea34858287fbb23052c3ee63fe",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -58,11 +58,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1763421233,
|
"lastModified": 1767379071,
|
||||||
"narHash": "sha256-Stk9ZYRkGrnnpyJ4eqt9eQtdFWRRIvMxpNRf4sIegnw=",
|
"narHash": "sha256-EgE0pxsrW9jp9YFMkHL9JMXxcqi/OoumPJYwf+Okucw=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "89c2b2330e733d6cdb5eae7b899326930c2c0648",
|
"rev": "fb7944c166a3b630f177938e478f0378e64ce108",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -88,11 +88,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1763457799,
|
"lastModified": 1767568852,
|
||||||
"narHash": "sha256-33hJpIuqbn/PHf4VCZAktxDCUxnWLOtMAOyAFd75O9E=",
|
"narHash": "sha256-6s8hL3YX9zAq2T7qvcwwzaEVwc9MEYbW+C2LcAAQfbk=",
|
||||||
"owner": "0xc000022070",
|
"owner": "0xc000022070",
|
||||||
"repo": "zen-browser-flake",
|
"repo": "zen-browser-flake",
|
||||||
"rev": "85bc80b9d8c8b22ed273163dd7c7adfad9287a5d",
|
"rev": "350c729b261e6f5529460140a5f0943dd4c5e156",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
||||||
13
flake.nix
13
flake.nix
|
|
@ -35,18 +35,7 @@
|
||||||
{
|
{
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
(final: prev: {
|
(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";
|
|
||||||
});
|
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
27
home.nix
27
home.nix
|
|
@ -48,20 +48,16 @@
|
||||||
git
|
git
|
||||||
wget
|
wget
|
||||||
helix
|
helix
|
||||||
code-cursor-fhs
|
|
||||||
kitty
|
kitty
|
||||||
zellij
|
zellij
|
||||||
jujutsu
|
jujutsu
|
||||||
vlc
|
vlc
|
||||||
docker
|
docker
|
||||||
nerd-fonts.commit-mono
|
nerd-fonts.commit-mono
|
||||||
prismlauncher
|
|
||||||
qbittorrent-enhanced
|
qbittorrent-enhanced
|
||||||
gimp3
|
gimp3
|
||||||
obs-studio
|
obs-studio
|
||||||
inkscape
|
inkscape
|
||||||
blender
|
|
||||||
kdePackages.kdenlive
|
|
||||||
bat
|
bat
|
||||||
zoxide
|
zoxide
|
||||||
eza
|
eza
|
||||||
|
|
@ -78,13 +74,16 @@
|
||||||
mullvad-vpn
|
mullvad-vpn
|
||||||
font-manager
|
font-manager
|
||||||
handbrake
|
handbrake
|
||||||
libreoffice-qt
|
|
||||||
steam
|
steam
|
||||||
appimage-run
|
appimage-run
|
||||||
obsidian
|
|
||||||
gh
|
gh
|
||||||
beeper
|
beeper
|
||||||
zed-editor
|
antigravity-fhs
|
||||||
|
prusa-slicer
|
||||||
|
printrun
|
||||||
|
mkp224o
|
||||||
|
libreoffice-qt-fresh
|
||||||
|
claude-code
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -102,6 +101,7 @@
|
||||||
editor = {
|
editor = {
|
||||||
line-number = "relative";
|
line-number = "relative";
|
||||||
lsp.display-messages = true;
|
lsp.display-messages = true;
|
||||||
|
lsp.display-inlay-hints = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
languages = {
|
languages = {
|
||||||
|
|
@ -114,6 +114,15 @@
|
||||||
other-lines = "hint";
|
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";
|
ns = "sudo nixos-rebuild switch --flake ~/Documents/nix-config#jet";
|
||||||
nd = "nix develop";
|
nd = "nix develop";
|
||||||
h = "hx";
|
h = "hx";
|
||||||
|
vanity = "mkp224o-amd64-64-24k -d noisebridgevanitytor noisebridge{2..7}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -272,7 +281,7 @@
|
||||||
entries = [
|
entries = [
|
||||||
"${pkgs.kitty}/share/applications/kitty.desktop"
|
"${pkgs.kitty}/share/applications/kitty.desktop"
|
||||||
"${config.programs.zen-browser.package}/share/applications/zen-twilight.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"
|
"${pkgs.beeper}/share/applications/beepertexts.desktop"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue