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.
56 lines
962 B
Nix
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";
|
|
};
|
|
};
|
|
};
|
|
}
|