mirror of
https://github.com/Noratrieb/nixos.git
synced 2026-01-14 19:55:08 +01:00
Cleanup home manager
This commit is contained in:
parent
a87ec6f1d2
commit
12eb0b02bf
4 changed files with 135 additions and 135 deletions
36
home-manager/firefox.nix
Normal file
36
home-manager/firefox.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
||||||
|
{ pkgs }: {
|
||||||
|
enable = true;
|
||||||
|
profiles = {
|
||||||
|
nils = {
|
||||||
|
id = 0;
|
||||||
|
name = "nils";
|
||||||
|
|
||||||
|
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||||
|
ublock-origin
|
||||||
|
bitwarden
|
||||||
|
tampermonkey
|
||||||
|
];
|
||||||
|
|
||||||
|
bookmarks = [
|
||||||
|
{
|
||||||
|
name = "Nix sites";
|
||||||
|
toolbar = true;
|
||||||
|
bookmarks = [
|
||||||
|
{
|
||||||
|
name = "NixOS options";
|
||||||
|
url = "https://search.nixos.org/options";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "home-manager options";
|
||||||
|
url = "https://rycee.gitlab.io/home-manager/options.html";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "nixpkgs search";
|
||||||
|
url = "https://search.nixos.org/packages";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
22
home-manager/git.nix
Normal file
22
home-manager/git.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
{ pkgs }: {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
userEmail = "48135649+Nilstrieb@users.noreply.github.com";
|
||||||
|
userName = "Nilstrieb";
|
||||||
|
|
||||||
|
aliases = {
|
||||||
|
hardupdate = "!git fetch && git reset --hard \"origin/$(git rev-parse --abbrev-ref HEAD)\"";
|
||||||
|
fpush = "push --force-with-lease";
|
||||||
|
resq = "rebase --autosquash -i";
|
||||||
|
pfush = "!echo \"hör uf ume z'pfusche und machs richtig\"";
|
||||||
|
};
|
||||||
|
difftastic = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
extraConfig = {
|
||||||
|
core.autocrlf = false;
|
||||||
|
core.editor = "nvim";
|
||||||
|
pull.ff = "only";
|
||||||
|
init.defaultBranch = "main";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -37,7 +37,6 @@ in
|
||||||
];
|
];
|
||||||
# Configure your nixpkgs instance
|
# Configure your nixpkgs instance
|
||||||
config = {
|
config = {
|
||||||
# Disable if you don't want unfree packages
|
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
# Workaround for https://github.com/nix-community/home-manager/issues/2942
|
# Workaround for https://github.com/nix-community/home-manager/issues/2942
|
||||||
allowUnfreePredicate = (_: true);
|
allowUnfreePredicate = (_: true);
|
||||||
|
|
@ -52,146 +51,34 @@ in
|
||||||
# Add stuff for your user as you see fit:
|
# Add stuff for your user as you see fit:
|
||||||
programs.neovim.enable = true;
|
programs.neovim.enable = true;
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
discord
|
|
||||||
spotify
|
|
||||||
nixpkgs-fmt
|
|
||||||
rnix-lsp
|
|
||||||
fzf
|
|
||||||
linuxKernel.packages.linux_6_1.perf
|
|
||||||
cargo-nextest
|
|
||||||
git-absorb
|
|
||||||
gcc
|
|
||||||
jetbrains.idea-ultimate
|
|
||||||
htop
|
|
||||||
ripgrep
|
|
||||||
bat
|
|
||||||
postman
|
|
||||||
rustup-toolchain-install-master
|
|
||||||
inferno
|
|
||||||
gh
|
|
||||||
obsidian
|
|
||||||
customPkgs.cargo-bisect-rustc
|
|
||||||
audacity
|
audacity
|
||||||
|
bat
|
||||||
|
cargo-nextest
|
||||||
|
customPkgs.cargo-bisect-rustc
|
||||||
|
discord
|
||||||
|
fzf
|
||||||
|
gcc
|
||||||
|
gh
|
||||||
|
git-absorb
|
||||||
|
htop
|
||||||
|
inferno
|
||||||
|
jetbrains.idea-ultimate
|
||||||
|
linuxKernel.packages.linux_6_1.perf
|
||||||
|
nixpkgs-fmt
|
||||||
|
obsidian
|
||||||
|
postman
|
||||||
prismlauncher
|
prismlauncher
|
||||||
|
ripgrep
|
||||||
|
rnix-lsp
|
||||||
|
rustup-toolchain-install-master
|
||||||
|
spotify
|
||||||
];
|
];
|
||||||
|
|
||||||
# Enable home-manager and git
|
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
programs.git = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
userEmail = "48135649+Nilstrieb@users.noreply.github.com";
|
programs.git = import ./git.nix { inherit pkgs; };
|
||||||
userName = "Nilstrieb";
|
programs.firefox = import ./firefox.nix { inherit pkgs; };
|
||||||
|
programs.vscode = import ./vscode.nix { inherit pkgs; };
|
||||||
aliases = {
|
|
||||||
hardupdate = "!git fetch && git reset --hard \"origin/$(git rev-parse --abbrev-ref HEAD)\"";
|
|
||||||
fpush = "push --force-with-lease";
|
|
||||||
resq = "rebase --autosquash -i";
|
|
||||||
pfush = "!echo \"hör uf ume z'pfusche und machs richtig\"";
|
|
||||||
};
|
|
||||||
difftastic = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
extraConfig = {
|
|
||||||
core.autocrlf = false;
|
|
||||||
core.editor = "nvim";
|
|
||||||
pull.ff = "only";
|
|
||||||
init.defaultBranch = "main";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.firefox = {
|
|
||||||
enable = true;
|
|
||||||
profiles = {
|
|
||||||
nils = {
|
|
||||||
id = 0;
|
|
||||||
name = "nils";
|
|
||||||
|
|
||||||
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
|
||||||
ublock-origin
|
|
||||||
bitwarden
|
|
||||||
tampermonkey
|
|
||||||
];
|
|
||||||
|
|
||||||
bookmarks = [
|
|
||||||
{
|
|
||||||
name = "Nix sites";
|
|
||||||
toolbar = true;
|
|
||||||
bookmarks = [
|
|
||||||
{
|
|
||||||
name = "NixOS options";
|
|
||||||
url = "https://search.nixos.org/options";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "home-manager options";
|
|
||||||
url = "https://rycee.gitlab.io/home-manager/options.html";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "nixpkgs search";
|
|
||||||
url = "https://search.nixos.org/packages";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.vscode = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.vscode;
|
|
||||||
extensions = with pkgs.vscode-extensions; [
|
|
||||||
jnoortheen.nix-ide
|
|
||||||
usernamehw.errorlens
|
|
||||||
ms-vscode.cmake-tools
|
|
||||||
ms-vscode.cpptools
|
|
||||||
eamodio.gitlens
|
|
||||||
tamasfe.even-better-toml
|
|
||||||
ms-vscode-remote.remote-ssh
|
|
||||||
esbenp.prettier-vscode
|
|
||||||
dbaeumer.vscode-eslint
|
|
||||||
ms-python.python
|
|
||||||
redhat.vscode-yaml
|
|
||||||
mads-hartmann.bash-ide-vscode
|
|
||||||
ms-azuretools.vscode-docker
|
|
||||||
] ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
|
|
||||||
{
|
|
||||||
publisher = "dtsvet";
|
|
||||||
name = "vscode-wasm";
|
|
||||||
version = "1.4.1";
|
|
||||||
sha256 = "sha256-zs7E3pxf4P8kb3J+5zLoAO2dvTeepuCuBJi5s354k0I=";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
publisher = "redhat";
|
|
||||||
name = "ansible";
|
|
||||||
version = "2.7.98";
|
|
||||||
sha256 = "sha256-b3Z40IeQbtYci2LA4/OlJkfqMB78cWRNTNWd89lfhy4=";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
publisher = "matthewpi";
|
|
||||||
name = "caddyfile-support";
|
|
||||||
version = "0.3.0";
|
|
||||||
sha256 = "sha256-1yiOnvC2w33kiPRdQYskee38Cid/GOj9becLadP1fUY=";
|
|
||||||
}
|
|
||||||
] ++ [
|
|
||||||
(pkgs.vscode-utils.buildVscodeExtension {
|
|
||||||
name = "riverdelta";
|
|
||||||
version = "0.1.0";
|
|
||||||
src = builtins.fetchGit {
|
|
||||||
url = "https://github.com/Nilstrieb/riverdelta";
|
|
||||||
rev = "64d81b56084d9a7663517b367b4533fb8ea83a92";
|
|
||||||
};
|
|
||||||
vscodeExtPublisher = "Nilstrieb";
|
|
||||||
vscodeExtName = "riverdelta";
|
|
||||||
vscodeExtUniqueId = "Nilstrieb.riverdelta";
|
|
||||||
buildPhase = ''
|
|
||||||
runHook preBuild;
|
|
||||||
cd ./vscode
|
|
||||||
runHook postBuild;
|
|
||||||
'';
|
|
||||||
})
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
55
home-manager/vscode.nix
Normal file
55
home-manager/vscode.nix
Normal file
|
|
@ -0,0 +1,55 @@
|
||||||
|
{ pkgs }: {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.vscode;
|
||||||
|
extensions = with pkgs.vscode-extensions; [
|
||||||
|
jnoortheen.nix-ide
|
||||||
|
usernamehw.errorlens
|
||||||
|
ms-vscode.cmake-tools
|
||||||
|
ms-vscode.cpptools
|
||||||
|
eamodio.gitlens
|
||||||
|
tamasfe.even-better-toml
|
||||||
|
ms-vscode-remote.remote-ssh
|
||||||
|
esbenp.prettier-vscode
|
||||||
|
dbaeumer.vscode-eslint
|
||||||
|
ms-python.python
|
||||||
|
redhat.vscode-yaml
|
||||||
|
mads-hartmann.bash-ide-vscode
|
||||||
|
ms-azuretools.vscode-docker
|
||||||
|
] ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
|
||||||
|
{
|
||||||
|
publisher = "dtsvet";
|
||||||
|
name = "vscode-wasm";
|
||||||
|
version = "1.4.1";
|
||||||
|
sha256 = "sha256-zs7E3pxf4P8kb3J+5zLoAO2dvTeepuCuBJi5s354k0I=";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
publisher = "redhat";
|
||||||
|
name = "ansible";
|
||||||
|
version = "2.7.98";
|
||||||
|
sha256 = "sha256-b3Z40IeQbtYci2LA4/OlJkfqMB78cWRNTNWd89lfhy4=";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
publisher = "matthewpi";
|
||||||
|
name = "caddyfile-support";
|
||||||
|
version = "0.3.0";
|
||||||
|
sha256 = "sha256-1yiOnvC2w33kiPRdQYskee38Cid/GOj9becLadP1fUY=";
|
||||||
|
}
|
||||||
|
] ++ [
|
||||||
|
(pkgs.vscode-utils.buildVscodeExtension {
|
||||||
|
name = "riverdelta";
|
||||||
|
version = "0.1.0";
|
||||||
|
src = builtins.fetchGit {
|
||||||
|
url = "https://github.com/Nilstrieb/riverdelta";
|
||||||
|
rev = "64d81b56084d9a7663517b367b4533fb8ea83a92";
|
||||||
|
};
|
||||||
|
vscodeExtPublisher = "Nilstrieb";
|
||||||
|
vscodeExtName = "riverdelta";
|
||||||
|
vscodeExtUniqueId = "Nilstrieb.riverdelta";
|
||||||
|
buildPhase = ''
|
||||||
|
runHook preBuild;
|
||||||
|
cd ./vscode
|
||||||
|
runHook postBuild;
|
||||||
|
'';
|
||||||
|
})
|
||||||
|
];
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue