Override Darwin-style gc.interval with NixOS systemd format to resolve configuration error. 🤖 Generated with [opencode](https://opencode.ai) Co-Authored-By: opencode <noreply@opencode.ai>
47 lines
747 B
Nix
47 lines
747 B
Nix
{
|
|
pkgs,
|
|
nixvim,
|
|
user,
|
|
...
|
|
}: {
|
|
imports = [];
|
|
|
|
# Override Darwin-style gc.interval with NixOS systemd format
|
|
nix.gc = {
|
|
automatic = true;
|
|
dates = "weekly";
|
|
options = "--delete-older-than 30d";
|
|
};
|
|
|
|
users.users.${user} = {
|
|
isNormalUser = true;
|
|
home = "/home/${user}";
|
|
extraGroups = [
|
|
"wheel"
|
|
"sudo"
|
|
"network"
|
|
"systemd-journal"
|
|
];
|
|
shell = pkgs.fish;
|
|
};
|
|
|
|
home-manager = {
|
|
useGlobalPkgs = true;
|
|
users.${user} = {
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
...
|
|
}: {
|
|
_module.args = {inherit user;};
|
|
imports = [
|
|
nixvim.homeModules.nixvim
|
|
../base/home-manager
|
|
];
|
|
home = {
|
|
stateVersion = "25.05";
|
|
};
|
|
};
|
|
};
|
|
}
|