mirror of
https://github.com/ivabus/nixos
synced 2024-11-22 08:25:07 +03:00
Ivan Bushchik
f916ffb2b4
Untested VF2 config, basic "user", option to enable users, option to enable git, basic graphics role, unfinished `router` role, global features Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
40 lines
890 B
Nix
40 lines
890 B
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
let
|
|
my = import ../.;
|
|
secrets = my.secrets { inherit config; };
|
|
in {
|
|
nix = {
|
|
package = pkgs.nixUnstable;
|
|
extraOptions = ''
|
|
experimental-features = nix-command flakes
|
|
'';
|
|
settings = {
|
|
auto-optimise-store = true;
|
|
allowed-users = [ "root" "@wheel" ];
|
|
trusted-users = [ "root" "@wheel" ];
|
|
#sandbox = true;
|
|
};
|
|
gc = {
|
|
automatic = true;
|
|
options = "--delete-older-than 7d";
|
|
};
|
|
};
|
|
|
|
documentation = {
|
|
doc.enable = false;
|
|
info.enable = false;
|
|
man.enable = true;
|
|
};
|
|
|
|
environment.systemPackages = with pkgs;
|
|
[ wget curl git git-crypt neovim python3Minimal ]
|
|
++ lib.optionals pkgs.stdenv.isLinux [
|
|
usbutils
|
|
pciutils
|
|
coreutils
|
|
killall
|
|
];
|
|
# Inject secrets through module arguments while evaluating configs.
|
|
_module.args.secrets = secrets;
|
|
}
|