more small things

This commit is contained in:
nora 2023-09-17 21:59:26 +02:00
parent 6ab5c496f3
commit a3d63eb272
4 changed files with 17 additions and 13 deletions

View file

@ -16,7 +16,7 @@
}; };
extraConfig = { extraConfig = {
core.autocrlf = false; core.autocrlf = false;
core.editor = "nvim"; core.editor = "${pkgs.neovim}/bin/nvim";
pull.ff = "only"; pull.ff = "only";
push.autoSetupRemote = true; push.autoSetupRemote = true;
init.defaultBranch = "main"; init.defaultBranch = "main";

View file

@ -44,22 +44,31 @@ in
git-absorb git-absorb
git-crypt git-crypt
htop htop
hyperfine
inferno inferno
jetbrains.idea-ultimate jetbrains.idea-ultimate
linuxKernel.packages.linux_6_1.perf linuxKernel.packages.linux_6_1.perf
mold # For global .cargo/config.toml
nixpkgs-fmt nixpkgs-fmt
obsidian
obs-studio obs-studio
obsidian
postman postman
prismlauncher prismlauncher
python3 python3
ripgrep ripgrep
rnix-lsp rnix-lsp
rustup-toolchain-install-master rustup-toolchain-install-master
samply
spotify spotify
]; ];
home.file.".cargo/config.toml" = {
text = ''
[target.x86_64-unknown-linux-gnu]
linker = "clang"
rustflags = ["-Clink-arg=-fuse-ld=${pkgs.mold}/bin/mold", "-Ctarget-cpu=native"]
'';
};
programs.home-manager.enable = true; programs.home-manager.enable = true;
programs.fish = { programs.fish = {

View file

@ -1,7 +1,9 @@
{ pkgs, ... }: { { pkgs, ... }: {
programs.vscode = { programs.vscode = {
enable = true; enable = true;
package = pkgs.vscode; package = pkgs.vscodium;
enableUpdateCheck = false;
mutableExtensionsDir = false;
extensions = with pkgs.vscode-extensions; [ extensions = with pkgs.vscode-extensions; [
jnoortheen.nix-ide jnoortheen.nix-ide
usernamehw.errorlens usernamehw.errorlens

View file

@ -152,13 +152,11 @@
isNormalUser = true; isNormalUser = true;
openssh.authorizedKeys.keys = [ openssh.authorizedKeys.keys = [
# TODO: Add your SSH public key(s) here, if you plan on using SSH to connect # TODO: Add your SSH public key(s) here, if you plan on using SSH to connect
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG0n1ikUG9rYqobh7WpAyXrqZqxQoQ2zNJrFPj12gTpP"
]; ];
extraGroups = [ "wheel" "networkmanager" "audio" "libvirtd" ]; extraGroups = [ "wheel" "networkmanager" "audio" "libvirtd" ];
# TODO: This is mostly temporary until home-manager works nicely
packages = with pkgs; [ packages = with pkgs; [
firefox
vscode vscode
home-manager
]; ];
shell = pkgs.fish; shell = pkgs.fish;
}; };
@ -170,20 +168,15 @@
}; };
}; };
# SSH Server, maybe enable at some point
services.openssh = { services.openssh = {
enable = true; enable = true;
# Forbid root login through SSH.
settings.PermitRootLogin = "no"; settings.PermitRootLogin = "no";
# Use keys only. Remove if you want to SSH using password (not recommended)
settings.PasswordAuthentication = false; settings.PasswordAuthentication = false;
}; };
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. vim
wget wget
(curl.override { (curl.override {
# error: implicit declaration of function 'SSL_set_quic_use_legacy_codepoint' :( # error: implicit declaration of function 'SSL_set_quic_use_legacy_codepoint' :(