system/common: minor build optimizations
This commit is contained in:
parent
e50348731e
commit
5d21e5281e
|
@ -829,10 +829,6 @@ in {
|
||||||
extraOptions = "-i ${netAddresses.lan4} -p 6969 -P 6969 -p 80";
|
extraOptions = "-i ${netAddresses.lan4} -p 6969 -P 6969 -p 80";
|
||||||
};
|
};
|
||||||
|
|
||||||
# it takes a stupidly long time when done via qemu
|
|
||||||
# (also it's supposed to be disabled by default but it was enabled for me, why?)
|
|
||||||
documentation.man.generateCaches = false;
|
|
||||||
|
|
||||||
impermanence.directories = [
|
impermanence.directories = [
|
||||||
# for wireguard key
|
# for wireguard key
|
||||||
{ directory = /secrets; mode = "0000"; }
|
{ directory = /secrets; mode = "0000"; }
|
||||||
|
|
|
@ -89,12 +89,14 @@
|
||||||
# rxvt-unicode-unwrapped.terminfo
|
# rxvt-unicode-unwrapped.terminfo
|
||||||
vim
|
vim
|
||||||
]);
|
]);
|
||||||
|
# this is supposed to default to false, but it doesn't because of nixos fish module
|
||||||
|
documentation.man.generateCaches = lib.mkOverride 999 false;
|
||||||
|
# and we don't need html files and so on on minimal machines (it's not like I ever use it anyway)
|
||||||
|
# as a bonus, this disables the HTML NixOS manual which takes a while to build and which I
|
||||||
|
# definitely don't need on minimal machines
|
||||||
|
documentation.doc.enable = lib.mkIf cfg.minimal (lib.mkDefault false);
|
||||||
programs.fish.enable = true;
|
programs.fish.enable = true;
|
||||||
/*programs.zsh = {
|
users.defaultUserShell = lib.mkDefault pkgs.fish;
|
||||||
enable = true;
|
|
||||||
enableBashCompletion = true;
|
|
||||||
};*/
|
|
||||||
users.defaultUserShell = lib.mkIf cfg.minimal pkgs.fish;
|
|
||||||
users.users.${cfg.mainUsername} = {
|
users.users.${cfg.mainUsername} = {
|
||||||
uid = 1000;
|
uid = 1000;
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
|
@ -102,6 +104,7 @@
|
||||||
};
|
};
|
||||||
# nixos-hardware uses mkDefault here, so we use slightly higher priority
|
# nixos-hardware uses mkDefault here, so we use slightly higher priority
|
||||||
services.xserver.libinput.enable = lib.mkOverride 999 (!cfg.minimal);
|
services.xserver.libinput.enable = lib.mkOverride 999 (!cfg.minimal);
|
||||||
|
# TODO: minimal fish/vim config
|
||||||
/*
|
/*
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Reference in a new issue