all: merge system/* to configs directory

This commit is contained in:
Aaron Bieber 2024-01-10 15:14:08 -07:00
parent 3764949cf8
commit 6d39adf1c1
No known key found for this signature in database
5 changed files with 12 additions and 34 deletions

View File

@ -12,5 +12,7 @@
./tmux.nix
./net-overlay.nix
./zsh.nix
./nix.nix
./update.nix
];
}

View File

@ -1,17 +1,21 @@
{ pkgs, ... }:
let
nixOptions = {
{
nix = {
package = pkgs.nixVersions.nix_2_17;
gc = {
automatic = true;
dates = "daily";
options = "--delete-older-than 10d";
};
# Enable flakes
package = pkgs.nixVersions.nix_2_17;
extraOptions = ''
experimental-features = nix-command flakes
'';
settings.auto-optimise-store = true;
settings = {
sandbox = true;
trusted-users = [ "@wheel" ];
allowed-users = [ "root" "qbit" ];
};
};
in
{ nix = { settings.auto-optimise-store = true; } // nixOptions; }
}

View File

@ -28,9 +28,6 @@ in
./overlays
./pkgs
./services
./system/nix-config.nix
./system/nix-lockdown.nix
./system/update.nix
./users
./monitoring

View File

@ -1,25 +0,0 @@
{ config
, lib
, ...
}:
with lib; {
options = {
nixLockdown = {
enable = mkOption {
description = "Lockdown Nix";
default = true;
example = true;
type = lib.types.bool;
};
};
};
config = mkIf config.nixLockdown.enable {
nix = {
settings = {
sandbox = true;
trusted-users = [ "@wheel" ];
allowed-users = [ "root" "qbit" ];
};
};
};
}