Fix everything.

This commit is contained in:
Jimbo 2025-02-28 13:32:11 -05:00
parent 11075719cb
commit 3d25d316fe
118 changed files with 180 additions and 244 deletions

View file

@ -0,0 +1,9 @@
{ ... }:
{
imports = [
./minimal
./nix
./security
./timezone
];
}

View file

@ -0,0 +1,21 @@
{ ... }:
{
environment = {
defaultPackages = [ ];
stub-ld.enable = false;
};
documentation = {
doc.enable = false;
info.enable = false;
nixos.enable = false;
};
programs = {
nano.enable = false;
less.lessopen = null;
command-not-found.enable = false;
};
services.logrotate.enable = false;
}

View file

@ -0,0 +1,23 @@
{ config, lib, pkgs, unstable, ... }:
{
imports = [ ./gc ];
options.nixpkgs.allowUnfreePackages = lib.mkOption {
type = with lib.types; listOf str;
};
config = {
nix.settings = {
experimental-features = [
"nix-command"
"flakes"
];
auto-optimise-store = true;
};
_module.args.pkgsUnstable = import unstable {
inherit (pkgs.stdenv.hostPlatform) system;
inherit (config.nixpkgs) config;
};
};
}

View file

@ -0,0 +1,8 @@
{ ... }:
{
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
}

View file

@ -0,0 +1,4 @@
{ ... }:
{
time.timeZone = "America/Toronto";
}