home manager for laptop

This commit is contained in:
nora 2023-09-18 14:55:09 +02:00
parent d0d9400502
commit 31b5f8b4f2
6 changed files with 99 additions and 41 deletions

26
home-manager/common.nix Normal file
View file

@ -0,0 +1,26 @@
{ inputs
, lib
, config
, pkgs
, ...
}: {
programs.neovim.enable = true;
home.file.".cargo/config.toml" = {
text = ''
[target.x86_64-unknown-linux-gnu]
linker = "${pkgs.llvmPackages_16.clang}/bin/clang"
rustflags = ["-Clink-arg=-fuse-ld=${pkgs.mold}/bin/mold", "-Ctarget-cpu=native"]
'';
};
programs.zoxide = {
enable = true;
enableFishIntegration = true;
};
programs.home-manager.enable = true;
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
home.stateVersion = "22.11";
}