Compare commits

..

8 Commits

Author SHA1 Message Date
0401a62c05 Add extra env vars
Signed-off-by: Noah Knegt <git@noahknegt.com>
2025-07-03 22:27:07 +02:00
2613918639 Add nuxt config
Signed-off-by: Noah Knegt <git@noahknegt.com>
2025-07-03 22:13:47 +02:00
c1f616112b Rename cargo to rust for all rust related config
Signed-off-by: Noah Knegt <git@noahknegt.com>
2025-07-03 22:10:47 +02:00
04733b74ab Add ssh config
Signed-off-by: Noah Knegt <git@noahknegt.com>
2025-07-03 22:02:00 +02:00
f09c55cd92 Add cargo config
Signed-off-by: Noah Knegt <git@noahknegt.com>
2025-07-03 21:40:09 +02:00
a45e02881a Add clang-format to home-manager
Signed-off-by: Noah Knegt <git@noahknegt.com>
2025-07-03 21:34:17 +02:00
004756d9ae Create development profiles
Signed-off-by: Noah Knegt <git@noahknegt.com>
2025-07-02 23:20:34 +02:00
4dd8bb85c7 Update github key to the bitwarden public key
Signed-off-by: Noah Knegt <git@noahknegt.com>
2025-07-02 22:47:09 +02:00
10 changed files with 159 additions and 36 deletions

View File

@@ -3,30 +3,61 @@
{ {
programs.vscode = { programs.vscode = {
enable = true; enable = true;
profiles.default.extensions = with pkgs.vscode-extensions; [ profiles.default = {
extensions = with pkgs.vscode-extensions; [
catppuccin.catppuccin-vsc catppuccin.catppuccin-vsc
catppuccin.catppuccin-vsc-icons catppuccin.catppuccin-vsc-icons
jnoortheen.nix-ide
mhutchie.git-graph mhutchie.git-graph
donjayamanne.githistory donjayamanne.githistory
eamodio.gitlens eamodio.gitlens
# Rust plugins streetsidesoftware.code-spell-checker
rust-lang.rust-analyzer gruntfuggly.todo-tree
tamasfe.even-better-toml
fill-labs.dependi
ms-vscode.cpptools
]; ];
profiles.default.userSettings = { userSettings = {
# Theme # Theme
"workbench.iconTheme" = "catppuccin-mocha"; "workbench.iconTheme" = "catppuccin-mocha";
"workbench.colorTheme" = "Catppuccin Mocha"; "workbench.colorTheme" = "Catppuccin Mocha";
"workbench.sideBar.location" = "right"; "workbench.sideBar.location" = "right";
"workbench.activityBar.location" = "bottom"; "workbench.activityBar.location" = "bottom";
"editor.fontFamily" = "Source Code Pro"; "editor.fontFamily" = "SauceCodePro";
# Settings for all files
"files.autoSave" = "off";
# Git settings
"git.autofetch" = true;
"git.confirmSync" = false;
"git.alwaysSignOff" = true;
"git.pruneOnFetch" = true;
};
};
profiles.home-manager = {
extensions = with pkgs.vscode-extensions; [
catppuccin.catppuccin-vsc
catppuccin.catppuccin-vsc-icons
mhutchie.git-graph
donjayamanne.githistory
eamodio.gitlens
streetsidesoftware.code-spell-checker
gruntfuggly.todo-tree
# Nix specific extensions
jnoortheen.nix-ide
];
userSettings = {
# Theme
"workbench.iconTheme" = "catppuccin-mocha";
"workbench.colorTheme" = "Catppuccin Mocha";
"workbench.sideBar.location" = "right";
"workbench.activityBar.location" = "bottom";
"editor.fontFamily" = "SauceCodePro";
# Settings for all files # Settings for all files
"files.autoSave" = "off"; "files.autoSave" = "off";
@@ -37,9 +68,46 @@
"git.alwaysSignOff" = true; "git.alwaysSignOff" = true;
"git.pruneOnFetch" = true; "git.pruneOnFetch" = true;
# Nix lang settings # Nix lang settings
"[nix]"."editor.tabSize" = 2; "[nix]"."editor.tabSize" = 2;
}; };
}; };
profiles.rust = {
extensions = with pkgs.vscode-extensions; [
catppuccin.catppuccin-vsc
catppuccin.catppuccin-vsc-icons
mhutchie.git-graph
donjayamanne.githistory
eamodio.gitlens
streetsidesoftware.code-spell-checker
gruntfuggly.todo-tree
# Rust development
rust-lang.rust-analyzer
tamasfe.even-better-toml
fill-labs.dependi
];
userSettings = {
# Theme
"workbench.iconTheme" = "catppuccin-mocha";
"workbench.colorTheme" = "Catppuccin Mocha";
"workbench.sideBar.location" = "right";
"workbench.activityBar.location" = "bottom";
"editor.fontFamily" = "SauceCodePro";
# Settings for all files
"files.autoSave" = "off";
# Git settings
"git.autofetch" = true;
"git.confirmSync" = false;
"git.alwaysSignOff" = true;
"git.pruneOnFetch" = true;
};
};
};
} }

View File

@@ -0,0 +1,9 @@
{ pkgs, ... }:
{
home.file.".clang-format".text = ''
---
Language: Cpp
BasedOnStyle: Google
'';
}

View File

@@ -0,0 +1,9 @@
{ ... }:
{
imports = [
./clang.nix
./nuxt.nix
./rust.nix
];
}

View File

@@ -0,0 +1,7 @@
{ pkgs, ... }:
{
home.file.".nuxtrc".text = ''
telemetry.enabled=false
'';
}

View File

@@ -0,0 +1,13 @@
{ pkgs, ... }:
{
home.file.".cargo/config.toml".text = ''
[net]
git-fetch-with-cli = true
[registries]
[registries.git_noahknegt_com_ev-charging]
index = "sparse+https://git.noahknegt.com/api/packages/ev-charging/cargo/"
'';
}

View File

@@ -49,8 +49,8 @@
condition = "gitdir:~/Repos/open-source/"; condition = "gitdir:~/Repos/open-source/";
contents = { contents = {
user = { user = {
email = "git@noahknegt.com"; email = "github@noahknegt.com";
signingKey = "~/.ssh/id_open_source.pub"; signingKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJi7QgoPtTQLHmKNbJAC8mgzQ6Wwq82L2YhBLSaxpQ3/";
}; };
commit = { commit = {

View File

@@ -15,12 +15,12 @@
# You can also split up your configuration and import pieces of it here: # You can also split up your configuration and import pieces of it here:
# ./nvim.nix # ./nvim.nix
./IDEs
./development ./development
./dotfiles
./tools
./git ./git
./IDEs
./ssh
./tools
./zsh ./zsh
]; ];
@@ -53,10 +53,12 @@
sessionPath = [ sessionPath = [
"$HOME/.cargo/bin" "$HOME/.cargo/bin"
"$HOME/.local/bin" "$HOME/.local/bin"
"$HOME/.local/share/pnpm"
]; ];
sessionVariables = { sessionVariables = {
SSH_AUTH_SOCK = "/home/noahk/.bitwarden-ssh-agent.sock"; SSH_AUTH_SOCK = "/home/noahk/.bitwarden-ssh-agent.sock";
DRONE_SERVER = "https://drone.noahknegt.com";
}; };
packages = with pkgs; [ packages = with pkgs; [

View File

@@ -0,0 +1,15 @@
{ pkgs, inputs, ... }:
{
programs.ssh = {
enable = true;
matchBlocks = {
"zeus" = {
hostname = "vps.noahknegt.com";
user = "noahk";
port = 22;
};
};
};
}

View File

@@ -11,6 +11,7 @@
extraOptions = [ extraOptions = [
"--group-directories-first" "--group-directories-first"
"-h"
]; ];
}; };
} }

View File

@@ -11,7 +11,6 @@
append = true; append = true;
}; };
shellAliases = { shellAliases = {
ls = "eza"; ls = "eza";
ll = "eza -lh"; ll = "eza -lh";