2018-09-08 14:49:08 -07:00
|
|
|
|
with import ../lib;
|
|
|
|
|
|
|
|
|
|
{ nixpkgs ? { outPath = cleanSource ./..; revCount = 130979; shortRev = "gfedcba"; }
|
2013-10-10 03:16:20 -07:00
|
|
|
|
, stableBranch ? false
|
2017-04-14 14:59:54 -07:00
|
|
|
|
, supportedSystems ? [ "x86_64-linux" "aarch64-linux" ]
|
2018-09-08 14:49:12 -07:00
|
|
|
|
, configuration ? {}
|
2012-04-09 05:49:03 -07:00
|
|
|
|
}:
|
2012-04-05 06:00:30 -07:00
|
|
|
|
|
2018-01-16 08:29:43 -08:00
|
|
|
|
with import ../pkgs/top-level/release-lib.nix { inherit supportedSystems; };
|
2015-03-20 11:23:55 -07:00
|
|
|
|
|
2012-02-23 04:00:05 -08:00
|
|
|
|
let
|
|
|
|
|
|
2016-07-31 06:05:38 -07:00
|
|
|
|
version = fileContents ../.version;
|
2013-10-10 03:16:20 -07:00
|
|
|
|
versionSuffix =
|
2021-05-22 17:56:13 -07:00
|
|
|
|
(if stableBranch then "." else "beta") + "${toString (nixpkgs.revCount - 291486)}.${nixpkgs.shortRev}";
|
2013-03-26 06:00:31 -07:00
|
|
|
|
|
2018-11-11 03:30:07 -08:00
|
|
|
|
# Run the tests for each platform. You can run a test by doing
|
|
|
|
|
# e.g. ‘nix-build -A tests.login.x86_64-linux’, or equivalently,
|
|
|
|
|
# ‘nix-build tests/login.nix -A result’.
|
|
|
|
|
allTestsForSystem = system:
|
|
|
|
|
import ./tests/all-tests.nix {
|
|
|
|
|
inherit system;
|
2020-02-12 13:43:35 -08:00
|
|
|
|
pkgs = import ./.. { inherit system; };
|
2018-11-11 03:30:07 -08:00
|
|
|
|
callTest = t: {
|
|
|
|
|
${system} = hydraJob t.test;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
allTests =
|
|
|
|
|
foldAttrs recursiveUpdate {} (map allTestsForSystem supportedSystems);
|
2014-04-14 05:02:44 -07:00
|
|
|
|
|
2020-02-12 13:43:35 -08:00
|
|
|
|
pkgs = import ./.. { system = "x86_64-linux"; };
|
2012-04-10 13:28:06 -07:00
|
|
|
|
|
2012-02-23 04:00:05 -08:00
|
|
|
|
|
2013-07-02 04:33:27 -07:00
|
|
|
|
versionModule =
|
2017-03-31 17:00:00 -07:00
|
|
|
|
{ system.nixos.versionSuffix = versionSuffix;
|
|
|
|
|
system.nixos.revision = nixpkgs.rev or nixpkgs.shortRev;
|
2013-10-24 10:58:34 -07:00
|
|
|
|
};
|
2013-07-02 04:33:27 -07:00
|
|
|
|
|
2018-11-07 01:07:38 -08:00
|
|
|
|
makeModules = module: rest: [ configuration versionModule module rest ];
|
2013-07-02 04:33:27 -07:00
|
|
|
|
|
2012-02-23 04:00:05 -08:00
|
|
|
|
makeIso =
|
2018-07-20 13:56:59 -07:00
|
|
|
|
{ module, type, system, ... }:
|
2012-02-23 04:00:05 -08:00
|
|
|
|
|
2020-02-12 13:43:35 -08:00
|
|
|
|
with import ./.. { inherit system; };
|
2012-02-23 04:00:05 -08:00
|
|
|
|
|
2016-03-15 05:48:45 -07:00
|
|
|
|
hydraJob ((import lib/eval-config.nix {
|
|
|
|
|
inherit system;
|
2018-11-07 01:07:38 -08:00
|
|
|
|
modules = makeModules module {
|
|
|
|
|
isoImage.isoBaseName = "nixos-${type}";
|
|
|
|
|
};
|
2016-03-15 05:48:45 -07:00
|
|
|
|
}).config.system.build.isoImage);
|
2012-02-23 04:00:05 -08:00
|
|
|
|
|
|
|
|
|
|
2018-03-31 10:30:08 -07:00
|
|
|
|
makeSdImage =
|
2018-07-20 13:56:59 -07:00
|
|
|
|
{ module, system, ... }:
|
2018-03-31 10:30:08 -07:00
|
|
|
|
|
2020-02-12 13:43:35 -08:00
|
|
|
|
with import ./.. { inherit system; };
|
2018-03-31 10:30:08 -07:00
|
|
|
|
|
|
|
|
|
hydraJob ((import lib/eval-config.nix {
|
|
|
|
|
inherit system;
|
2018-11-07 01:07:38 -08:00
|
|
|
|
modules = makeModules module {};
|
2018-03-31 10:30:08 -07:00
|
|
|
|
}).config.system.build.sdImage);
|
|
|
|
|
|
|
|
|
|
|
2012-02-23 04:00:05 -08:00
|
|
|
|
makeSystemTarball =
|
2013-03-26 06:00:31 -07:00
|
|
|
|
{ module, maintainers ? ["viric"], system }:
|
|
|
|
|
|
2020-02-12 13:43:35 -08:00
|
|
|
|
with import ./.. { inherit system; };
|
2012-02-23 04:00:05 -08:00
|
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
|
|
config = (import lib/eval-config.nix {
|
2012-03-04 12:57:34 -08:00
|
|
|
|
inherit system;
|
2018-11-07 01:07:38 -08:00
|
|
|
|
modules = makeModules module {};
|
2012-02-23 04:00:05 -08:00
|
|
|
|
}).config;
|
|
|
|
|
|
|
|
|
|
tarball = config.system.build.tarball;
|
2013-07-02 04:33:27 -07:00
|
|
|
|
|
2012-02-23 04:00:05 -08:00
|
|
|
|
in
|
|
|
|
|
tarball //
|
|
|
|
|
{ meta = {
|
2021-01-22 17:33:55 -08:00
|
|
|
|
description = "NixOS system tarball for ${system} - ${stdenv.hostPlatform.linux-kernel.name}";
|
2015-03-20 11:23:55 -07:00
|
|
|
|
maintainers = map (x: lib.maintainers.${x}) maintainers;
|
2012-02-23 04:00:05 -08:00
|
|
|
|
};
|
|
|
|
|
inherit config;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
2014-09-18 07:21:00 -07:00
|
|
|
|
makeClosure = module: buildFromConfig module (config: config.system.build.toplevel);
|
|
|
|
|
|
|
|
|
|
|
2015-03-20 11:23:55 -07:00
|
|
|
|
buildFromConfig = module: sel: forAllSystems (system: hydraJob (sel (import ./lib/eval-config.nix {
|
2014-08-22 02:37:31 -07:00
|
|
|
|
inherit system;
|
2018-11-07 01:07:38 -08:00
|
|
|
|
modules = makeModules module
|
2018-07-20 13:56:59 -07:00
|
|
|
|
({ ... }:
|
2015-03-20 11:23:55 -07:00
|
|
|
|
{ fileSystems."/".device = mkDefault "/dev/sda1";
|
|
|
|
|
boot.loader.grub.device = mkDefault "/dev/sda";
|
2014-08-22 02:37:31 -07:00
|
|
|
|
});
|
2014-09-18 07:21:00 -07:00
|
|
|
|
}).config));
|
2014-08-22 02:37:31 -07:00
|
|
|
|
|
2018-09-08 14:49:06 -07:00
|
|
|
|
makeNetboot = { module, system, ... }:
|
2017-04-14 14:59:54 -07:00
|
|
|
|
let
|
2018-09-08 14:49:06 -07:00
|
|
|
|
configEvaled = import lib/eval-config.nix {
|
|
|
|
|
inherit system;
|
2018-11-07 01:07:38 -08:00
|
|
|
|
modules = makeModules module {};
|
2018-09-08 14:49:06 -07:00
|
|
|
|
};
|
2018-01-11 08:46:49 -08:00
|
|
|
|
build = configEvaled.config.system.build;
|
2021-01-22 17:33:55 -08:00
|
|
|
|
kernelTarget = configEvaled.pkgs.stdenv.hostPlatform.linux-kernel.target;
|
2017-04-14 14:59:54 -07:00
|
|
|
|
in
|
|
|
|
|
pkgs.symlinkJoin {
|
2018-01-11 08:46:49 -08:00
|
|
|
|
name = "netboot";
|
|
|
|
|
paths = [
|
2017-04-14 14:59:54 -07:00
|
|
|
|
build.netbootRamdisk
|
|
|
|
|
build.kernel
|
|
|
|
|
build.netbootIpxeScript
|
|
|
|
|
];
|
|
|
|
|
postBuild = ''
|
|
|
|
|
mkdir -p $out/nix-support
|
2018-07-25 05:07:58 -07:00
|
|
|
|
echo "file ${kernelTarget} ${build.kernel}/${kernelTarget}" >> $out/nix-support/hydra-build-products
|
|
|
|
|
echo "file initrd ${build.netbootRamdisk}/initrd" >> $out/nix-support/hydra-build-products
|
|
|
|
|
echo "file ipxe ${build.netbootIpxeScript}/netboot.ipxe" >> $out/nix-support/hydra-build-products
|
2017-04-14 14:59:54 -07:00
|
|
|
|
'';
|
2018-01-11 08:47:23 -08:00
|
|
|
|
preferLocalBuild = true;
|
2017-04-14 14:59:54 -07:00
|
|
|
|
};
|
|
|
|
|
|
2013-10-24 10:31:51 -07:00
|
|
|
|
in rec {
|
2008-12-17 05:25:23 -08:00
|
|
|
|
|
2015-06-13 18:55:29 -07:00
|
|
|
|
channel = import lib/make-channel.nix { inherit pkgs nixpkgs version versionSuffix; };
|
2009-08-31 07:56:19 -07:00
|
|
|
|
|
2018-09-06 12:17:44 -07:00
|
|
|
|
manualHTML = buildFromConfig ({ ... }: { }) (config: config.system.build.manual.manualHTML);
|
|
|
|
|
manual = manualHTML; # TODO(@oxij): remove eventually
|
2018-07-20 13:56:59 -07:00
|
|
|
|
manualEpub = (buildFromConfig ({ ... }: { }) (config: config.system.build.manual.manualEpub));
|
|
|
|
|
manpages = buildFromConfig ({ ... }: { }) (config: config.system.build.manual.manpages);
|
|
|
|
|
manualGeneratedSources = buildFromConfig ({ ... }: { }) (config: config.system.build.manual.generatedSources);
|
|
|
|
|
options = (buildFromConfig ({ ... }: { }) (config: config.system.build.manual.optionsJSON)).x86_64-linux;
|
2016-02-03 03:16:33 -08:00
|
|
|
|
|
2013-03-26 06:00:31 -07:00
|
|
|
|
|
2014-10-09 09:40:37 -07:00
|
|
|
|
# Build the initial ramdisk so Hydra can keep track of its size over time.
|
2018-07-20 13:56:59 -07:00
|
|
|
|
initialRamdisk = buildFromConfig ({ ... }: { }) (config: config.system.build.initialRamdisk);
|
2014-10-09 09:40:37 -07:00
|
|
|
|
|
2021-04-23 09:34:51 -07:00
|
|
|
|
netboot = forMatchingSystems supportedSystems (system: makeNetboot {
|
2018-09-08 14:49:06 -07:00
|
|
|
|
module = ./modules/installer/netboot/netboot-minimal.nix;
|
2018-01-16 08:42:47 -08:00
|
|
|
|
inherit system;
|
|
|
|
|
});
|
2016-04-08 06:53:27 -07:00
|
|
|
|
|
2013-10-31 00:48:57 -07:00
|
|
|
|
iso_minimal = forAllSystems (system: makeIso {
|
2013-03-26 06:00:31 -07:00
|
|
|
|
module = ./modules/installer/cd-dvd/installation-cd-minimal.nix;
|
|
|
|
|
type = "minimal";
|
|
|
|
|
inherit system;
|
2013-04-06 09:24:12 -07:00
|
|
|
|
});
|
|
|
|
|
|
2019-08-07 16:53:47 -07:00
|
|
|
|
iso_plasma5 = forMatchingSystems [ "x86_64-linux" ] (system: makeIso {
|
|
|
|
|
module = ./modules/installer/cd-dvd/installation-cd-graphical-plasma5.nix;
|
|
|
|
|
type = "plasma5";
|
2013-03-26 06:00:31 -07:00
|
|
|
|
inherit system;
|
|
|
|
|
});
|
|
|
|
|
|
2020-04-21 12:35:32 -07:00
|
|
|
|
iso_gnome = forMatchingSystems [ "x86_64-linux" ] (system: makeIso {
|
|
|
|
|
module = ./modules/installer/cd-dvd/installation-cd-graphical-gnome.nix;
|
|
|
|
|
type = "gnome";
|
|
|
|
|
inherit system;
|
|
|
|
|
});
|
|
|
|
|
|
2013-03-26 06:00:31 -07:00
|
|
|
|
# A variant with a more recent (but possibly less stable) kernel
|
|
|
|
|
# that might support more hardware.
|
2018-12-19 10:10:48 -08:00
|
|
|
|
iso_minimal_new_kernel = forMatchingSystems [ "x86_64-linux" "aarch64-linux" ] (system: makeIso {
|
2014-06-05 14:00:25 -07:00
|
|
|
|
module = ./modules/installer/cd-dvd/installation-cd-minimal-new-kernel.nix;
|
|
|
|
|
type = "minimal-new-kernel";
|
|
|
|
|
inherit system;
|
|
|
|
|
});
|
|
|
|
|
|
2018-04-14 19:32:59 -07:00
|
|
|
|
sd_image = forMatchingSystems [ "armv6l-linux" "armv7l-linux" "aarch64-linux" ] (system: makeSdImage {
|
|
|
|
|
module = {
|
2021-02-02 13:14:06 -08:00
|
|
|
|
armv6l-linux = ./modules/installer/sd-card/sd-image-raspberrypi-installer.nix;
|
|
|
|
|
armv7l-linux = ./modules/installer/sd-card/sd-image-armv7l-multiplatform-installer.nix;
|
|
|
|
|
aarch64-linux = ./modules/installer/sd-card/sd-image-aarch64-installer.nix;
|
2018-04-14 19:32:59 -07:00
|
|
|
|
}.${system};
|
2018-03-31 10:30:08 -07:00
|
|
|
|
inherit system;
|
|
|
|
|
});
|
2013-03-26 06:00:31 -07:00
|
|
|
|
|
2018-12-25 15:58:04 -08:00
|
|
|
|
sd_image_new_kernel = forMatchingSystems [ "aarch64-linux" ] (system: makeSdImage {
|
|
|
|
|
module = {
|
2021-02-02 13:14:06 -08:00
|
|
|
|
aarch64-linux = ./modules/installer/sd-card/sd-image-aarch64-new-kernel-installer.nix;
|
2018-12-25 15:58:04 -08:00
|
|
|
|
}.${system};
|
|
|
|
|
type = "minimal-new-kernel";
|
|
|
|
|
inherit system;
|
|
|
|
|
});
|
|
|
|
|
|
2013-10-08 06:40:48 -07:00
|
|
|
|
# A bootable VirtualBox virtual appliance as an OVA file (i.e. packaged OVF).
|
2018-03-19 18:29:48 -07:00
|
|
|
|
ova = forMatchingSystems [ "x86_64-linux" ] (system:
|
2013-08-26 05:06:00 -07:00
|
|
|
|
|
2020-02-12 13:43:35 -08:00
|
|
|
|
with import ./.. { inherit system; };
|
2013-07-01 15:23:48 -07:00
|
|
|
|
|
2016-03-15 05:34:41 -07:00
|
|
|
|
hydraJob ((import lib/eval-config.nix {
|
|
|
|
|
inherit system;
|
|
|
|
|
modules =
|
|
|
|
|
[ versionModule
|
|
|
|
|
./modules/installer/virtualbox-demo.nix
|
|
|
|
|
];
|
|
|
|
|
}).config.system.build.virtualBoxOVA)
|
2013-08-26 05:06:00 -07:00
|
|
|
|
|
|
|
|
|
);
|
2013-07-01 15:23:48 -07:00
|
|
|
|
|
|
|
|
|
|
2019-05-31 10:23:30 -07:00
|
|
|
|
# A disk image that can be imported to Amazon EC2 and registered as an AMI
|
|
|
|
|
amazonImage = forMatchingSystems [ "x86_64-linux" "aarch64-linux" ] (system:
|
|
|
|
|
|
2020-02-12 13:43:35 -08:00
|
|
|
|
with import ./.. { inherit system; };
|
2019-05-31 10:23:30 -07:00
|
|
|
|
|
|
|
|
|
hydraJob ((import lib/eval-config.nix {
|
|
|
|
|
inherit system;
|
|
|
|
|
modules =
|
2020-01-03 14:07:59 -08:00
|
|
|
|
[ configuration
|
|
|
|
|
versionModule
|
2019-05-31 10:23:30 -07:00
|
|
|
|
./maintainers/scripts/ec2/amazon-image.nix
|
|
|
|
|
];
|
|
|
|
|
}).config.system.build.amazonImage)
|
|
|
|
|
|
|
|
|
|
);
|
2021-08-25 06:38:46 -07:00
|
|
|
|
amazonImageZfs = forMatchingSystems [ "x86_64-linux" "aarch64-linux" ] (system:
|
|
|
|
|
|
|
|
|
|
with import ./.. { inherit system; };
|
|
|
|
|
|
|
|
|
|
hydraJob ((import lib/eval-config.nix {
|
|
|
|
|
inherit system;
|
|
|
|
|
modules =
|
|
|
|
|
[ configuration
|
|
|
|
|
versionModule
|
|
|
|
|
./maintainers/scripts/ec2/amazon-image-zfs.nix
|
|
|
|
|
];
|
|
|
|
|
}).config.system.build.amazonImage)
|
|
|
|
|
|
|
|
|
|
);
|
2019-05-31 10:23:30 -07:00
|
|
|
|
|
|
|
|
|
|
2021-04-30 19:28:31 -07:00
|
|
|
|
# Test job for https://github.com/NixOS/nixpkgs/issues/121354 to test
|
|
|
|
|
# automatic sizing without blocking the channel.
|
|
|
|
|
amazonImageAutomaticSize = forMatchingSystems [ "x86_64-linux" "aarch64-linux" ] (system:
|
|
|
|
|
|
|
|
|
|
with import ./.. { inherit system; };
|
|
|
|
|
|
|
|
|
|
hydraJob ((import lib/eval-config.nix {
|
|
|
|
|
inherit system;
|
|
|
|
|
modules =
|
|
|
|
|
[ configuration
|
|
|
|
|
versionModule
|
|
|
|
|
./maintainers/scripts/ec2/amazon-image.nix
|
|
|
|
|
({ ... }: { amazonImage.sizeMB = "auto"; })
|
|
|
|
|
];
|
|
|
|
|
}).config.system.build.amazonImage)
|
|
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
2014-09-24 15:20:53 -07:00
|
|
|
|
# Ensure that all packages used by the minimal NixOS config end up in the channel.
|
|
|
|
|
dummy = forAllSystems (system: pkgs.runCommand "dummy"
|
2014-09-25 08:51:09 -07:00
|
|
|
|
{ toplevel = (import lib/eval-config.nix {
|
2014-09-24 15:20:53 -07:00
|
|
|
|
inherit system;
|
2018-07-20 13:56:59 -07:00
|
|
|
|
modules = singleton ({ ... }:
|
2015-03-20 11:23:55 -07:00
|
|
|
|
{ fileSystems."/".device = mkDefault "/dev/sda1";
|
|
|
|
|
boot.loader.grub.device = mkDefault "/dev/sda";
|
2018-07-25 13:22:54 -07:00
|
|
|
|
system.stateVersion = mkDefault "18.03";
|
2014-09-25 08:51:09 -07:00
|
|
|
|
});
|
|
|
|
|
}).config.system.build.toplevel;
|
2015-12-29 08:21:49 -08:00
|
|
|
|
preferLocalBuild = true;
|
2014-09-24 15:20:53 -07:00
|
|
|
|
}
|
2014-09-25 08:51:09 -07:00
|
|
|
|
"mkdir $out; ln -s $toplevel $out/dummy");
|
2014-09-24 15:20:53 -07:00
|
|
|
|
|
|
|
|
|
|
2013-03-26 06:00:31 -07:00
|
|
|
|
# Provide a tarball that can be unpacked into an SD card, and easily
|
|
|
|
|
# boot that system from uboot (like for the sheevaplug).
|
|
|
|
|
# The pc variant helps preparing the expression for the system tarball
|
|
|
|
|
# in a machine faster than the sheevpalug
|
2015-06-15 05:18:27 -07:00
|
|
|
|
/*
|
2013-10-31 00:48:57 -07:00
|
|
|
|
system_tarball_pc = forAllSystems (system: makeSystemTarball {
|
2013-03-26 06:00:31 -07:00
|
|
|
|
module = ./modules/installer/cd-dvd/system-tarball-pc.nix;
|
|
|
|
|
inherit system;
|
|
|
|
|
});
|
2015-06-15 05:18:27 -07:00
|
|
|
|
*/
|
2013-03-26 06:00:31 -07:00
|
|
|
|
|
2014-12-11 13:58:17 -08:00
|
|
|
|
# Provide container tarball for lxc, libvirt-lxc, docker-lxc, ...
|
2014-12-12 11:28:01 -08:00
|
|
|
|
containerTarball = forAllSystems (system: makeSystemTarball {
|
2014-12-11 13:58:17 -08:00
|
|
|
|
module = ./modules/virtualisation/lxc-container.nix;
|
|
|
|
|
inherit system;
|
|
|
|
|
});
|
|
|
|
|
|
2013-03-26 06:00:31 -07:00
|
|
|
|
/*
|
|
|
|
|
system_tarball_fuloong2f =
|
|
|
|
|
assert builtins.currentSystem == "mips64-linux";
|
|
|
|
|
makeSystemTarball {
|
|
|
|
|
module = ./modules/installer/cd-dvd/system-tarball-fuloong2f.nix;
|
|
|
|
|
system = "mips64-linux";
|
2011-11-08 11:51:39 -08:00
|
|
|
|
};
|
|
|
|
|
|
2013-03-26 06:00:31 -07:00
|
|
|
|
system_tarball_sheevaplug =
|
|
|
|
|
assert builtins.currentSystem == "armv5tel-linux";
|
|
|
|
|
makeSystemTarball {
|
|
|
|
|
module = ./modules/installer/cd-dvd/system-tarball-sheevaplug.nix;
|
|
|
|
|
system = "armv5tel-linux";
|
2012-03-16 05:24:29 -07:00
|
|
|
|
};
|
2013-03-26 06:00:31 -07:00
|
|
|
|
*/
|
2012-02-23 04:00:05 -08:00
|
|
|
|
|
2018-11-11 03:30:07 -08:00
|
|
|
|
tests = allTests;
|
2014-08-22 02:37:31 -07:00
|
|
|
|
|
|
|
|
|
/* Build a bunch of typical closures so that Hydra can keep track of
|
|
|
|
|
the evolution of closure sizes. */
|
|
|
|
|
|
|
|
|
|
closures = {
|
|
|
|
|
|
2018-07-20 13:56:59 -07:00
|
|
|
|
smallContainer = makeClosure ({ ... }:
|
2014-08-22 02:37:31 -07:00
|
|
|
|
{ boot.isContainer = true;
|
|
|
|
|
services.openssh.enable = true;
|
|
|
|
|
});
|
|
|
|
|
|
2018-07-20 13:56:59 -07:00
|
|
|
|
tinyContainer = makeClosure ({ ... }:
|
2014-08-22 02:37:31 -07:00
|
|
|
|
{ boot.isContainer = true;
|
|
|
|
|
imports = [ modules/profiles/minimal.nix ];
|
|
|
|
|
});
|
|
|
|
|
|
2018-07-20 13:56:59 -07:00
|
|
|
|
ec2 = makeClosure ({ ... }:
|
2014-08-22 02:37:31 -07:00
|
|
|
|
{ imports = [ modules/virtualisation/amazon-image.nix ];
|
|
|
|
|
});
|
|
|
|
|
|
2018-07-20 13:56:59 -07:00
|
|
|
|
kde = makeClosure ({ ... }:
|
2014-08-22 02:37:31 -07:00
|
|
|
|
{ services.xserver.enable = true;
|
2017-02-09 18:25:03 -08:00
|
|
|
|
services.xserver.displayManager.sddm.enable = true;
|
2017-03-03 05:24:58 -08:00
|
|
|
|
services.xserver.desktopManager.plasma5.enable = true;
|
2014-08-22 02:37:31 -07:00
|
|
|
|
});
|
|
|
|
|
|
2018-07-20 13:56:59 -07:00
|
|
|
|
xfce = makeClosure ({ ... }:
|
2014-08-22 02:37:31 -07:00
|
|
|
|
{ services.xserver.enable = true;
|
|
|
|
|
services.xserver.desktopManager.xfce.enable = true;
|
|
|
|
|
});
|
|
|
|
|
|
2021-05-07 14:18:14 -07:00
|
|
|
|
gnome = makeClosure ({ ... }:
|
2019-09-17 14:48:40 -07:00
|
|
|
|
{ services.xserver.enable = true;
|
|
|
|
|
services.xserver.displayManager.gdm.enable = true;
|
2021-05-07 14:18:14 -07:00
|
|
|
|
services.xserver.desktopManager.gnome.enable = true;
|
2019-09-17 14:48:40 -07:00
|
|
|
|
});
|
|
|
|
|
|
2020-07-26 12:30:08 -07:00
|
|
|
|
pantheon = makeClosure ({ ... }:
|
|
|
|
|
{ services.xserver.enable = true;
|
|
|
|
|
services.xserver.desktopManager.pantheon.enable = true;
|
|
|
|
|
});
|
|
|
|
|
|
2014-08-22 02:37:31 -07:00
|
|
|
|
# Linux/Apache/PostgreSQL/PHP stack.
|
|
|
|
|
lapp = makeClosure ({ pkgs, ... }:
|
|
|
|
|
{ services.httpd.enable = true;
|
|
|
|
|
services.httpd.adminAddr = "foo@example.org";
|
2020-05-01 01:05:25 -07:00
|
|
|
|
services.httpd.enablePHP = true;
|
2014-08-22 02:37:31 -07:00
|
|
|
|
services.postgresql.enable = true;
|
2018-12-19 00:59:32 -08:00
|
|
|
|
services.postgresql.package = pkgs.postgresql;
|
2014-08-22 02:37:31 -07:00
|
|
|
|
});
|
|
|
|
|
};
|
2013-03-26 06:00:31 -07:00
|
|
|
|
}
|