at 23.05-pre 1.2 kB view raw
1{ config, lib, pkgs, ... }: 2 3{ 4 options = { 5 gnu = lib.mkOption { 6 type = lib.types.bool; 7 default = false; 8 description = lib.mdDoc '' 9 When enabled, GNU software is chosen by default whenever a there is 10 a choice between GNU and non-GNU software (e.g., GNU lsh 11 vs. OpenSSH). 12 ''; 13 }; 14 }; 15 16 config = lib.mkIf config.gnu { 17 18 environment.systemPackages = with pkgs; 19 # TODO: Adjust `requiredPackages' from `system-path.nix'. 20 # TODO: Add Inetutils once it has the new `ifconfig'. 21 [ parted 22 #fdisk # XXX: GNU fdisk currently fails to build and it's redundant 23 # with the `parted' command. 24 nano zile 25 texinfo # for the stand-alone Info reader 26 ] 27 ++ lib.optional (!stdenv.isAarch32) grub2; 28 29 30 # GNU GRUB, where available. 31 boot.loader.grub.enable = !pkgs.stdenv.isAarch32; 32 boot.loader.grub.version = 2; 33 34 # GNU lsh. 35 services.openssh.enable = false; 36 services.lshd.enable = true; 37 programs.ssh.startAgent = false; 38 services.xserver.startGnuPGAgent = true; 39 40 # TODO: GNU dico. 41 # TODO: GNU Inetutils' inetd. 42 # TODO: GNU Pies. 43 }; 44}