Compare commits

..

11 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
c2339252e3 Switch to unstable for new bitwarden config
Signed-off-by: Noah Knegt <git@noahknegt.com>
2025-07-02 22:41:40 +02:00
1dcc9efd8b Add extra rust tools
Signed-off-by: Noah Knegt <git@noahknegt.com>
2025-05-19 21:29:20 +02:00
f10feaaddd Update to 25.05 and add git-cliff
Signed-off-by: Noah Knegt <git@noahknegt.com>
2025-05-19 21:25:06 +02:00
16 changed files with 208 additions and 56 deletions

15
flake.lock generated
View File

@@ -7,32 +7,31 @@
]
},
"locked": {
"lastModified": 1739757849,
"narHash": "sha256-Gs076ot1YuAAsYVcyidLKUMIc4ooOaRGO0PqTY7sBzA=",
"lastModified": 1751485527,
"narHash": "sha256-E2AtD5UUeU50xco4gmgsCOs7tnBNsVi7+CdCZ4yQUrA=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "9d3d080aec2a35e05a15cedd281c2384767c2cfe",
"rev": "25f003f8a9eae31a11938d53cb23e0b4a3c08d3a",
"type": "github"
},
"original": {
"owner": "nix-community",
"ref": "release-24.11",
"repo": "home-manager",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1740463929,
"narHash": "sha256-4Xhu/3aUdCKeLfdteEHMegx5ooKQvwPHNkOgNCXQrvc=",
"lastModified": 1751271578,
"narHash": "sha256-P/SQmKDu06x8yv7i0s8bvnnuJYkxVGBWLWHaU+tt4YY=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "5d7db4668d7a0c6cc5fc8cf6ef33b008b2b1ed8b",
"rev": "3016b4b15d13f3089db8a41ef937b13a9e33a8df",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-24.11",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}

View File

@@ -2,9 +2,9 @@
description = "A very basic flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager/release-24.11";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};

View File

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

@@ -2,7 +2,7 @@
{
programs.zed-editor = {
enable = true;
enable = false;
userSettings = {
features = {

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

@@ -0,0 +1,11 @@
{ pkgs, ... }:
{
programs.git-cliff = {
enable = true;
settings = {
trim = true;
};
};
}

View File

@@ -1,6 +1,10 @@
{ pkgs, ... }:
{
imports = [
./cliff.nix
];
programs.git = {
enable = true;
package = pkgs.gitFull;
@@ -11,12 +15,12 @@
userEmail = "personal@noahknegt.com";
signing = {
key = "~/.ssh/id_ed25519.pub";
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB1ETzms5KNzQtgS0U/nfJjihMInKrcNR55tixI4ywvW";
signByDefault = true;
format = "ssh";
};
extraConfig = {
gpg = { format = "ssh"; };
push = { autoSetupRemote = true; };
pull = { rebase = true; };
fetch = { prune = true; };
@@ -45,8 +49,8 @@
condition = "gitdir:~/Repos/open-source/";
contents = {
user = {
email = "git@noahknegt.com";
signingKey = "~/.ssh/id_open_source.pub";
email = "github@noahknegt.com";
signingKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJi7QgoPtTQLHmKNbJAC8mgzQ6Wwq82L2YhBLSaxpQ3/";
};
commit = {

View File

@@ -15,12 +15,12 @@
# You can also split up your configuration and import pieces of it here:
# ./nvim.nix
./IDEs
./development
./tools
./dotfiles
./git
./IDEs
./ssh
./tools
./zsh
];
@@ -50,8 +50,20 @@
username = "noahk";
homeDirectory = "/home/noahk";
sessionPath = [
"$HOME/.cargo/bin"
"$HOME/.local/bin"
"$HOME/.local/share/pnpm"
];
sessionVariables = {
SSH_AUTH_SOCK = "/home/noahk/.bitwarden-ssh-agent.sock";
DRONE_SERVER = "https://drone.noahknegt.com";
};
packages = with pkgs; [
(nerdfonts.override { fonts = [ "SourceCodePro" ]; })
nerd-fonts.sauce-code-pro
nerd-fonts.zed-mono
# Desktop env
discord
@@ -70,6 +82,10 @@
gcc
rustup
mqttui
binsider
gpg-tui
kmon
];
};
@@ -82,5 +98,5 @@
systemd.user.startServices = "sd-switch";
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
home.stateVersion = "24.11";
home.stateVersion = "25.05";
}

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 = [
"--group-directories-first"
"-h"
];
};
}

View File

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

View File

@@ -4,4 +4,5 @@
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.systemd-boot.configurationLimit = 5;
}

View File

@@ -30,8 +30,8 @@
};
channel.enable = false;
};
networking = {
hostName = "NixOS_Desktop"; # Define your hostname.
networkmanager.enable = true;
@@ -84,7 +84,7 @@
services.printing.enable = true;
# Enable sound with pipewire.
hardware.pulseaudio.enable = false;
services.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
@@ -125,7 +125,7 @@
xfce.xfce4-whiskermenu-plugin
];
virtualisation.podman.enable = true9;
virtualisation.podman.enable = true;
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
@@ -133,5 +133,5 @@
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "24.11"; # Did you read the comment?
system.stateVersion = "25.05"; # Did you read the comment?
}