Compare commits

..

2 Commits

Author SHA1 Message Date
Zynh Ludwig 505eac929a rust: module init 2024-08-28 17:15:36 -07:00
Zynh Ludwig 624fa2f312 flake: update 2024-08-27 19:32:54 -07:00
3 changed files with 44 additions and 13 deletions

View File

@ -140,11 +140,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1724227338, "lastModified": 1724440431,
"narHash": "sha256-TuSaYdhOxeaaE9885mFO1lZHHax33GD5A9dczJrGUjw=", "narHash": "sha256-9etXEOUtzeMgqg1u0wp+EdwG7RpmrAZ2yX516bMj2aE=",
"owner": "cachix", "owner": "cachix",
"repo": "git-hooks.nix", "repo": "git-hooks.nix",
"rev": "6cedaa7c1b4f82a266e5d30f212273e60d62cb0d", "rev": "c8a54057aae480c56e28ef3e14e4960628ac495b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -229,11 +229,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1724391918, "lastModified": 1724741796,
"narHash": "sha256-cE2PmF0Ayw/flzTL3aEtiak5QkBTp0z265CDWnUKoM8=", "narHash": "sha256-6xHnymeLK8ggCyzMxdUlY+TndDRZ8lOTm+29y+HxJb8=",
"owner": "nix-community", "owner": "nix-community",
"repo": "neovim-nightly-overlay", "repo": "neovim-nightly-overlay",
"rev": "4fb7a5de4d5024a49bb60b7ff5ddb54252fe4622", "rev": "b900ce46ea339cd6db0adbbf737ae1be37c01d2b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -245,11 +245,11 @@
"neovim-src": { "neovim-src": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1724363148, "lastModified": 1724686656,
"narHash": "sha256-mvxaYMDkhOM0f1LEmu43u2qMtHkY40Me4bcP2XqQ9MM=", "narHash": "sha256-yYPlus4IN97gOgfOTsZhW//mYiMY6j4dBZqN4UvEmrA=",
"owner": "neovim", "owner": "neovim",
"repo": "neovim", "repo": "neovim",
"rev": "3b32869ced32821fb58f0a7c08094105be7bdaf0", "rev": "d9ccd828b0d46754b9bcb9b17f47c2a51968db05",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -260,11 +260,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1724224976, "lastModified": 1724479785,
"narHash": "sha256-Z/ELQhrSd7bMzTO8r7NZgi9g5emh+aRKoCdaAv5fiO0=", "narHash": "sha256-pP3Azj5d6M5nmG68Fu4JqZmdGt4S4vqI5f8te+E/FTw=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "c374d94f1536013ca8e92341b540eba4c22f9c62", "rev": "d0e1602ddde669d5beb01aec49d71a51937ed7be",
"type": "github" "type": "github"
}, },
"original": { "original": {

31
home/modules/rust.nix Normal file
View File

@ -0,0 +1,31 @@
{ lib, config, pkgs, ... }:
let
cfg = config.snowhawk.rust;
in
{
options.snowhawk.rust = {
enable = lib.mkEnableOption "rust home-manager module";
};
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [
rustup
];
programs.bacon = {
enable = true;
settings = {
keybindings = {
esc = "back";
g = "scroll-to-top";
shift-g = "scroll-to-bottom";
k = "scroll-lines(-1)";
j = "scroll-lines(1)";
ctrl-u = "scroll-page(-1)";
ctrl-d = "scroll-page(1)";
};
};
};
};
}

View File

@ -27,6 +27,7 @@ in
flameshot.enable = true; flameshot.enable = true;
tldr.enable = true; tldr.enable = true;
sources.enable = true; sources.enable = true;
rust.enable = true;
}; };
snowhawk.ssh = { snowhawk.ssh = {
enable = true; enable = true;
@ -94,7 +95,6 @@ in
steam steam
# Build Tools # Build Tools
rustup
gnumake gnumake
zig zig
gcc gcc