Compare commits
8 Commits
c2339252e3
...
main
Author | SHA1 | Date | |
---|---|---|---|
0401a62c05
|
|||
2613918639
|
|||
c1f616112b
|
|||
04733b74ab
|
|||
f09c55cd92
|
|||
a45e02881a
|
|||
004756d9ae
|
|||
4dd8bb85c7
|
@@ -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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
9
home-manager/dotfiles/clang.nix
Normal file
9
home-manager/dotfiles/clang.nix
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
home.file.".clang-format".text = ''
|
||||||
|
---
|
||||||
|
Language: Cpp
|
||||||
|
BasedOnStyle: Google
|
||||||
|
'';
|
||||||
|
}
|
9
home-manager/dotfiles/default.nix
Normal file
9
home-manager/dotfiles/default.nix
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./clang.nix
|
||||||
|
./nuxt.nix
|
||||||
|
./rust.nix
|
||||||
|
];
|
||||||
|
}
|
7
home-manager/dotfiles/nuxt.nix
Normal file
7
home-manager/dotfiles/nuxt.nix
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
home.file.".nuxtrc".text = ''
|
||||||
|
telemetry.enabled=false
|
||||||
|
'';
|
||||||
|
}
|
13
home-manager/dotfiles/rust.nix
Normal file
13
home-manager/dotfiles/rust.nix
Normal 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/"
|
||||||
|
'';
|
||||||
|
}
|
@@ -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 = {
|
||||||
|
@@ -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; [
|
||||||
|
15
home-manager/ssh/default.nix
Normal file
15
home-manager/ssh/default.nix
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{ pkgs, inputs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.ssh = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
matchBlocks = {
|
||||||
|
"zeus" = {
|
||||||
|
hostname = "vps.noahknegt.com";
|
||||||
|
user = "noahk";
|
||||||
|
port = 22;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
extraOptions = [
|
extraOptions = [
|
||||||
"--group-directories-first"
|
"--group-directories-first"
|
||||||
|
"-h"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@@ -11,7 +11,6 @@
|
|||||||
append = true;
|
append = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
ls = "eza";
|
ls = "eza";
|
||||||
ll = "eza -lh";
|
ll = "eza -lh";
|
||||||
|
Reference in New Issue
Block a user