nixos/home-manager/desktop.nix
2023-12-24 17:00:02 +01:00

63 lines
1.5 KiB
Nix

# This is your home-manager configuration file
# Use this to configure your home environment (it replaces ~/.config/nixpkgs/home.nix)
{ inputs
, lib
, config
, 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-mommy
customPkgs.cargo-bisect-rustc
discord
jetbrains.idea-ultimate
linuxKernel.packages.linux_6_6.perf
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 customPkgs.cargo-mommy}";
};
};
# Nicely reload system units when changing configs
systemd.user.startServices = "sd-switch";
}