Compare commits
11 Commits
9fc0b33228
...
main
Author | SHA1 | Date | |
---|---|---|---|
0401a62c05
|
|||
2613918639
|
|||
c1f616112b
|
|||
04733b74ab
|
|||
f09c55cd92
|
|||
a45e02881a
|
|||
004756d9ae
|
|||
4dd8bb85c7
|
|||
c2339252e3
|
|||
1dcc9efd8b
|
|||
f10feaaddd
|
15
flake.lock
generated
15
flake.lock
generated
@@ -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"
|
||||
}
|
||||
|
@@ -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";
|
||||
};
|
||||
|
||||
|
@@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
@@ -2,7 +2,7 @@
|
||||
|
||||
{
|
||||
programs.zed-editor = {
|
||||
enable = true;
|
||||
enable = false;
|
||||
|
||||
userSettings = {
|
||||
features = {
|
||||
|
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/"
|
||||
'';
|
||||
}
|
11
home-manager/git/cliff.nix
Normal file
11
home-manager/git/cliff.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.git-cliff = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
trim = true;
|
||||
};
|
||||
};
|
||||
}
|
@@ -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 = {
|
||||
|
@@ -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";
|
||||
}
|
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 = [
|
||||
"--group-directories-first"
|
||||
"-h"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
@@ -11,7 +11,6 @@
|
||||
append = true;
|
||||
};
|
||||
|
||||
|
||||
shellAliases = {
|
||||
ls = "eza";
|
||||
ll = "eza -lh";
|
||||
|
@@ -4,4 +4,5 @@
|
||||
# Bootloader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.loader.systemd-boot.configurationLimit = 5;
|
||||
}
|
||||
|
@@ -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?
|
||||
}
|
||||
|
Reference in New Issue
Block a user