59 lines
1.3 KiB
Nix
59 lines
1.3 KiB
Nix
{ pkgs, lib, isDarwin, ... }:
|
|
|
|
let
|
|
# Modules that only make sense on Linux, either because they use systemd,
|
|
# KDE/Plasma, or a package that nixpkgs only builds for Linux. On macOS the
|
|
# equivalents are installed as Homebrew casks (see modules/darwin.nix).
|
|
linuxOnly = lib.optionals (!isDarwin) [
|
|
../modules/plasma.nix
|
|
../modules/dropbox.nix
|
|
../modules/globalprotect.nix
|
|
../modules/gimp.nix
|
|
../modules/libreoffice.nix
|
|
../modules/masterpdfeditor.nix
|
|
../modules/pymol.nix
|
|
../modules/zoom.nix
|
|
];
|
|
in
|
|
{
|
|
home.username = "alex";
|
|
home.homeDirectory = if isDarwin then "/Users/alex" else "/home/alex";
|
|
home.stateVersion = "25.11";
|
|
home.sessionPath = [ "$HOME/.local/bin" ];
|
|
|
|
imports = [
|
|
../modules/datalad.nix
|
|
../modules/docker.nix
|
|
../modules/fonts.nix
|
|
../modules/ghostty.nix
|
|
../modules/helix.nix
|
|
../modules/hyperfine.nix
|
|
../modules/pixi.nix
|
|
../modules/python.nix
|
|
../modules/rust.nix
|
|
../modules/ssh.nix
|
|
../modules/starship.nix
|
|
../modules/typst.nix
|
|
../modules/vscode.nix
|
|
../modules/yazi.nix
|
|
../modules/zellij.nix
|
|
../modules/zig.nix
|
|
../modules/zsh.nix
|
|
./git.nix
|
|
./gh.nix
|
|
] ++ linuxOnly;
|
|
|
|
home.packages = with pkgs; [
|
|
atool
|
|
httpie
|
|
just
|
|
git-lfs
|
|
typst
|
|
unzip
|
|
glow
|
|
] ++ lib.optionals (!isDarwin) [
|
|
spotify
|
|
brave
|
|
];
|
|
}
|