fixing things i guess

This commit is contained in:
Chris Cochrun 2025-04-08 10:05:00 -05:00
parent 01cce2c99b
commit fce0223ae4
6 changed files with 90 additions and 32 deletions

View file

@ -1,13 +1,17 @@
{ pkgs, lib, config, inputs, ... }:
{
let
laptop = builtins.readFile "/etc/hostname" == ''
syl
'';
in {
imports = [ ./cachix.nix ];
nix = {
extraOptions = "experimental-features = nix-command flakes";
gc = {
automatic = true;
dates = "weekly";
dates = "Mon 10:00";
options = "--delete-older-than 20d";
};
settings = { auto-optimise-store = true; };
@ -18,9 +22,9 @@
system.autoUpgrade = {
enable = true;
dates = "02:00";
dates = "11:00";
allowReboot = false;
flake = "${config.users.users.chris.home}/conf";
flake = "${config.users.users.chris.home}/${if laptop then ".dotfiles" else "conf"}";
flags = [ "--update-input" "nixpkgs" "--commit-lock-file" ];
};