OSAuto, sane nix defaults

This commit is contained in:
Julia Lange 2025-11-26 15:21:12 -08:00
parent d833f04aa3
commit d02533517f
Signed by: Julia
SSH key fingerprint: SHA256:5DJcfxa5/fKCYn57dcabJa2vN2e6eT0pBerYi5SUbto

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ config, pkgs, lib, inputs, ... }:
{
options.system = {
@ -29,15 +29,26 @@
# Packages & Default Packages
nixpkgs.config.allowUnfree = true;
nix = {
registry.nixpkgs.flake = inputs.nixpkgs;
gc = { automatic = true; options = "--delete-older-than 5d"; };
channel.enable = false;
settings = {
auto-optimise-store = true;
keep-going = true;
use-xdg-base-directories = true;
experimental-features = [
"flakes"
"nix-command"
];
};
};
environment.systemPackages = with pkgs; [
git
neovim
xdg-user-dirs
] ++ config.system.extraPkgs;
# XDG Compliance
nix.settings.use-xdg-base-directories = true;
users = {
users = builtins.listToAttrs (map (
user: {