Files
dotfiles/home.nix
Menno van Leeuwen 2947ea8060
All checks were successful
Ansible Lint Check / check-ansible (push) Successful in 7s
Nix Format Check / check-format (push) Successful in 43s
Python Lint Check / check-python (push) Successful in 7s
Upgrade to Nix 25.11 and migrate configs
Update flake inputs and flake.lock to Nix/nixpkgs and home-manager
release 25.11; bump home.stateVersion and setup script NIXOS_RELEASE.

Migrate git config to new Home Manager layout (programs.git.settings,
aliases under settings.alias), adjust delta config path, and reorganize
SSH into matchBlocks with enableDefaultConfig=false to avoid global
leaks. Simplify snapd session variable handling to avoid recursion.

Misc: tweak Dashy title, replace du-dust->dust and plex-media-player ->
plex-desktop, remove unused hostname arg, and add GitHub Copilot
instructions document.
2025-12-11 16:28:22 +01:00

56 lines
962 B
Nix

{
config,
lib,
isServer ? false,
opnix,
...
}:
{
options = {
isServer = lib.mkOption {
type = lib.types.bool;
default = false;
};
};
imports = [
opnix.homeManagerModules.default
./config/default.nix
./packages/common/default.nix
]
++ (
if isServer then
[
./packages/server/default.nix
./server/default.nix
]
else
[
./packages/workstation/default.nix
./workstation/default.nix
]
);
config = {
isServer = isServer;
programs.home-manager.enable = true;
nixpkgs.config = {
allowUnfree = true;
allowUnfreePredicate = pkg: true;
};
home = {
username = "menno";
homeDirectory = "/home/menno";
stateVersion = "25.11";
sessionVariables = {
PATH = "${config.home.homeDirectory}/go/bin:$PATH";
DOTFILES_PATH = "${config.home.homeDirectory}/.dotfiles";
};
};
};
}