mirror of
https://github.com/Noratrieb/nixos.git
synced 2026-01-14 19:55:08 +01:00
59 lines
1.4 KiB
Nix
59 lines
1.4 KiB
Nix
# This is your home-manager configuration file
|
|
# Use this to configure your home environment (it replaces ~/.config/nixpkgs/home.nix)
|
|
|
|
{ lib
|
|
, pkgs
|
|
, ...
|
|
}:
|
|
let
|
|
customPkgs = import ../custom-pkgs/default.nix pkgs;
|
|
in
|
|
{
|
|
# You can import other home-manager modules here
|
|
imports = [
|
|
# If you want to use home-manager modules from other flakes (such as nix-colors):
|
|
# inputs.nix-colors.homeManagerModule
|
|
|
|
# You can also split up your configuration and import pieces of it here:
|
|
# ./nvim.nix
|
|
./common.nix
|
|
./git.nix
|
|
./firefox.nix
|
|
./vscode.nix
|
|
];
|
|
|
|
home = {
|
|
username = "nils";
|
|
homeDirectory = "/home/nils";
|
|
};
|
|
|
|
home.packages = with pkgs; [
|
|
audacity
|
|
customPkgs.cargo-bisect-rustc
|
|
discord
|
|
jetbrains.idea-ultimate
|
|
obs-studio
|
|
obsidian
|
|
prismlauncher
|
|
spotify
|
|
# rustup from nix for rust :)
|
|
rustup
|
|
] ++ import ./common-packages.nix { inherit pkgs; };
|
|
|
|
programs.fish = {
|
|
enable = true;
|
|
interactiveShellInit = ''
|
|
set fish_greeting # Disable greeting
|
|
'';
|
|
shellAbbrs = {
|
|
flamegraph = "perf script | inferno-collapse-perf | inferno-flamegraph > out.svg && firefox out.svg";
|
|
g = "git";
|
|
};
|
|
shellAliases = {
|
|
x = "CARGO_MOMMYS_ACTUAL=${lib.getExe customPkgs.x} ${lib.getExe' pkgs.cargo-mommy "cargo-mommy"}";
|
|
};
|
|
};
|
|
|
|
# Nicely reload system units when changing configs
|
|
systemd.user.startServices = "sd-switch";
|
|
}
|