Files
nixos-config/profiles/nixos/default.nix
Christoph Schmatzler e4b491d23d Fix NixOS garbage collection configuration
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>
2025-08-11 11:57:50 +02:00

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";
};
};
};
}