Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add robomongo, a GUI for exploring mongodb data and building queries. #1250

Closed
wants to merge 149 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
149 commits
Select commit Hold shift + click to select a range
774a0b4
sdlmame: update to latest version
lovek323 Nov 11, 2013
311a256
mpd: update to latest version
lovek323 Nov 11, 2013
d680003
awesome: add which to build inputs (for awesome-client)
lovek323 Nov 11, 2013
cc69da4
Put /efi and /loader on the main livecd partition for efi booting wit…
shlevy Nov 14, 2013
04ce624
lttv: update 1.5-beta1 -> 1.5
bjornfor Nov 14, 2013
fd7bc4e
kicad: update to latest stable
bjornfor Nov 14, 2013
3203c71
haskellPackages.webRoutesBoomerang: new expression
ocharles Nov 15, 2013
a8e3167
LuaJIT: New package
Zoomulator Nov 15, 2013
49bf246
Minifix: didn't use the name variable in the package.
Zoomulator Nov 15, 2013
8939210
Merge pull request #1219 from Zoomulator/add_luajit
7c6f434c Nov 15, 2013
fe547ab
python-robotframework: new package
bjornfor Nov 15, 2013
d4b3a7d
robotframework-ride: new package
bjornfor Nov 15, 2013
f13bcf6
HOL: update to k.8
tomjridge Nov 16, 2013
6c32416
Fix HOL documentation build
Nov 16, 2013
17fd8d5
haskell-system-posix-redirect: update to version 1.1.0.1
peti Nov 16, 2013
1888346
haskell-shake: update to version 0.10.9
peti Nov 16, 2013
9cfc81b
clang: Build with gcc 4.7 for better libstdc++.
mornfall Sep 7, 2013
52abed9
all-packages: Add a self-hosted variant of clang.
mornfall Sep 7, 2013
2c9f0e0
clang: Do not try to build clang-tblgen in LLVM's build path.
mornfall Sep 7, 2013
e3f2e2e
libcxx: Update to 190100 and build with libc++abi.
mornfall Sep 7, 2013
7c3f07f
clang-wrapper: Guard against LD_LIBRARY_PATH.
mornfall Sep 7, 2013
dde70f9
clang-wrapper: Optionally use libc++ instead of libstdc++.
mornfall Sep 7, 2013
e0171ef
systemd: Change services.logind.extraConfig type to types.lines
wizeman Nov 15, 2013
36a05c7
systemd: Add systemd.extraConfig option for /etc/systemd/system.conf
wizeman Nov 15, 2013
d8b0c94
xfce: enable tumbler the thumbnail manager (close #1206)
sergei-mironov Nov 12, 2013
db3abf1
nanomsg: new package
Zoomulator Nov 15, 2013
0eeb78d
nvidia: Update to version 331.20
wkennington Nov 13, 2013
ee5d461
Date::Manip: Update to 6.41
edolstra Nov 6, 2013
359e2e3
gnucash: Enable support for Finance::Quote
edolstra Nov 10, 2013
b5356f7
wine: (stable) bugfix update 1.6 -> 1.6.1
vcunat Nov 16, 2013
452b25b
qmmp: add meta.respositories
bjornfor Nov 17, 2013
f49f922
newsbeuter: add dev expression
lovek323 Nov 12, 2013
9f9f905
json-c: add meta.platforms and break overlong line
bjornfor Nov 17, 2013
8677a22
Fixes go 1.1.2 compilation on OSX Maverick
zimbatm Nov 17, 2013
98e8d9d
Adding BadVPN network (mostly BPN) tools
7c6f434c Nov 17, 2013
bb8406b
calibre: upgrade 1.8.0 -> 1.11.0
urv Nov 17, 2013
d33f1a2
Add myself to the maintainers. Hello NixOS !
zimbatm Nov 17, 2013
55639c3
Adds a new package: direnv
zimbatm Nov 17, 2013
21e86d4
newsbeuter: update 2.6 -> 2.7
bjornfor Nov 17, 2013
9c0e956
lighttpd: update 1.4.32 -> 1.4.33
bjornfor Nov 17, 2013
99c09ea
asciidoc: update 8.6.8 -> 8.6.9
bjornfor Nov 17, 2013
8786aa1
Merge pull request #1218 from ocharles/web-routes
peti Nov 18, 2013
1eb47b1
haskellPackages.tastyAntXml: New expression
ocharles Nov 15, 2013
2e8c5b6
haskellPackages.tastyHspec: New expression
ocharles Nov 15, 2013
17b7383
haskellPackages.tastyQuickcheck: New expression
ocharles Nov 15, 2013
6e89adc
haskellPackages.tastyGolden: New expression
ocharles Nov 15, 2013
41a0cb7
haskellPackages.tastyTh: New expression
ocharles Nov 15, 2013
db8c22c
haskellPackages.tasty*: Add ocharles to the list of maintainers
ocharles Nov 15, 2013
9d51b03
haskellPackages.smallcheck: Update to 1.1
ocharles Nov 15, 2013
1fa1dd2
yandex-disk: add the Yandex.Disk cloud storage client
sergei-mironov Nov 18, 2013
2df5e81
haskell-language-ecmascript: fix build
peti Nov 18, 2013
f73185d
nginx: adding rtmp module
garbas Nov 18, 2013
174f581
nginx: rtmp module - commited to fast. now it works.
garbas Nov 18, 2013
08a85c2
Allow building/testing individual systemd units
edolstra Nov 18, 2013
f8a0341
Fix broken Conflicts options
edolstra Nov 18, 2013
5620e69
Apply better type checking to unitConfig/serviceConfig/...
edolstra Nov 18, 2013
33cb0bb
Use types.lines for script/preStart/postStart/postStop
edolstra Nov 18, 2013
8951be2
Allow overrides to work for unit options
edolstra Nov 18, 2013
dc87f8e
Check whether fileSystems defines the root FS
edolstra Nov 18, 2013
2b0aea1
Allow running NixOS services outside of systemd
edolstra Nov 18, 2013
886b9e2
httpd.nix: Support non-root operation
edolstra Nov 18, 2013
678bcc6
firefox: Update to 25.0.1
edolstra Nov 18, 2013
1ce709e
polkit: The rule file needs to end in .rules
edolstra Nov 18, 2013
7ea47df
polkit: Fix authenticating as a wheel user
edolstra Nov 18, 2013
bc56bb7
polkit: Add some examples
edolstra Nov 18, 2013
3343716
teamviewer8: wrap daemon so teamviewer actually works
domenkozar Nov 18, 2013
368ce9b
Add Fuze for Linux 1.0.5
rbvermaa Nov 18, 2013
c2ea1f5
Add assertion for x86_64-linux for Fuze package.
rbvermaa Nov 18, 2013
522275f
qmmp: update 0.7.0 -> 0.7.3
bjornfor Nov 18, 2013
c41cf22
xmlrpc-c: update 1.25.25 -> 1.25.26
bjornfor Nov 18, 2013
b09f811
nspr: Bump to 4.10.2
shlevy Nov 18, 2013
2909634
nss: Bump
shlevy Nov 18, 2013
9fc5753
prey: specify sha256 for fetchgit
domenkozar Nov 19, 2013
544475c
mkDerivation: Set meta.position to the source file of the derivation
edolstra Nov 19, 2013
06fe4d9
Partial revert of b09f8110dbcb8bc8a1fcdb3e9a5dddb0956aba96
shlevy Nov 19, 2013
934c461
xfce4-xkb-plugin: Add package
wizeman Nov 12, 2013
bc05abe
xfce4-datetime-plugin: Add package
wizeman Nov 12, 2013
fa52e46
xfce4-session: Don't set $PATH in xflock4 script
wizeman Nov 12, 2013
4df8a04
Don't include the code name in the EBS AMI name
edolstra Nov 19, 2013
e511edf
Update s3http
rbvermaa Nov 19, 2013
a0a0680
npm2nix/patchSrc minor fix
shlevy Nov 19, 2013
76ab391
awesome-3-5: add expression and nixos module
lovek323 Nov 13, 2013
2bf530a
openbox: Update to 3.5.2
nathanielbaxter Nov 19, 2013
1bf33cf
haskellPackages.digits: New expression
ocharles Nov 19, 2013
6c8054c
Merge pull request #1212 from lovek323/awesome
viric Nov 20, 2013
fa9284b
Merge pull request #1231 from zimbatm/golang-darwin-fix
viric Nov 20, 2013
f48af13
Add a nix module for AMD Hybrid Graphics
wkennington Nov 8, 2013
c987f5c
ttmkfdir: update URL (close #1244)
lovek323 Nov 20, 2013
a65ecb6
linux: Update to 3.11.8 (close #1243)
wizeman Nov 19, 2013
fa5fd77
Merge pull request #1251 from wkennington/amd
bluescreen303 Nov 21, 2013
635ce5d
texlive: update to latest version
lovek323 Nov 21, 2013
821cd16
Upgrade Django Versions
wkennington Nov 21, 2013
cd99505
Merge pull request #1258 from wkennington/django
domenkozar Nov 21, 2013
41fee6c
Merge pull request #1254 from lovek323/texlive
7c6f434c Nov 21, 2013
935e586
Merge pull request #1245 from nathanielbaxter/dev/openbox
7c6f434c Nov 21, 2013
3f9b50a
Merge pull request #1239 from grwlf/yandex-disk
7c6f434c Nov 21, 2013
5b97997
Merge pull request #1234 from lovek323/mpd
7c6f434c Nov 21, 2013
794afb0
Update xonotic to 0.7.
Nov 18, 2013
fe32533
haskellPackages.socketActivation: New expression
ocharles Nov 21, 2013
d93d7c6
haskellPackages.quickcheckInstances: New expression
ocharles Nov 21, 2013
2d1304e
Merge pull request #1247 from ocharles/digits
peti Nov 21, 2013
144a833
Merge pull request #1259 from ocharles/haskell
peti Nov 21, 2013
7a18f11
haskellPackages.ariadne: New expression and related dependencies
ocharles Nov 18, 2013
d14831c
zc_buildout_nix: update to 2.2.1
garbas Nov 21, 2013
52d1973
adding zc_buildout 2.2.1
garbas Nov 21, 2013
b6a7201
Pillow: update to 2.2.1
garbas Nov 21, 2013
241738b
teamviewer: pass script argument to underlying command
domenkozar Nov 20, 2013
f770739
curl: 7.30.0 -> 7.33.0 (CVE-2013-4545)
domenkozar Nov 20, 2013
bd67a1a
basex: bump 7.7 -> 7.7.2
bjornfor Nov 21, 2013
fed248c
sdcc: bump 3.2.0 -> 3.3.0
bjornfor Nov 21, 2013
3a4281a
Update ccid to 1.4.13
wkennington Nov 20, 2013
61b8ebc
swig: bump 2.0.4 -> 2.0.11
Nov 22, 2013
50ee1b2
Updating Visual Understanding Environment
7c6f434c Nov 22, 2013
a383fe8
Make dd-agent services restart when killed.
rbvermaa Nov 22, 2013
c853841
log4cxx: Fix build by adding missing includes.
aszlig Nov 22, 2013
440af2e
log4cxx: Clean up package expression.
aszlig Nov 22, 2013
c6d548f
spyder: update 2.1.13.1 -> 2.2.5
bjornfor Nov 22, 2013
325894e
smc: new package
bjornfor Nov 22, 2013
06e9a8f
Merge pull request #1249 from wkennington/ccid
7c6f434c Nov 23, 2013
87eac03
Merge pull request #1236 from lovek323/sdlmame
7c6f434c Nov 23, 2013
161ac7c
Merge pull request #1205 from wizeman/xfce
7c6f434c Nov 23, 2013
a7675b2
Merge pull request #1265 from iyzsong/swig
7c6f434c Nov 23, 2013
b97e4a1
fish: Update to 2.1.0 (close #1261)
ocharles Oct 30, 2013
5fd97b7
wireshark: bugfix+CVE update to current old-stable
vcunat Nov 23, 2013
b4aa481
notmuch: update to 0.16
garbas Nov 23, 2013
830bcd1
jmeter: update to 2.10
garbas Nov 23, 2013
6aff4d5
zathuraCollection: update to latest
garbas Nov 23, 2013
b06462f
vifm: update 0.7.6
garbas Nov 23, 2013
a8d5881
varnish: update to 3.0.4
garbas Nov 23, 2013
608bfa5
xmobar: add support for wireless
aristidb Nov 23, 2013
d0ce0f8
Merge pull request #1268 from cillianderoiste/tuxonice
cillianderoiste Nov 23, 2013
7f791a6
MyPaint: fix the mypaint script to use the correct python instead of …
cillianderoiste Nov 23, 2013
7ab7be0
Add automake 1.14
shlevy Nov 24, 2013
a071712
python-pyodbc: bump 3.0.6 -> 3.0.7
bjornfor Nov 24, 2013
36612c7
python-blockdiag: bump 1.2.4 -> 1.3.2
bjornfor Nov 24, 2013
6b2a7d0
python-actdiag: bump 0.4.3 -> 0.5.1
bjornfor Nov 24, 2013
be0a7c1
python-nwdiag: bump 0.9.4 -> 1.0.0
bjornfor Nov 24, 2013
3f21d7c
python-seqdiag: bump 0.8.2 -> 0.9.0
bjornfor Nov 24, 2013
2a78fad
solfege: update 3.22 -> 3.22.2 (latest stable)
bjornfor Nov 24, 2013
8347ff8
solfege: refactor meta attributes
bjornfor Nov 24, 2013
e996329
pythonPackages.goobook: add expression
lovek323 Nov 11, 2013
49b36a3
Fix nix-prefetch-git
wkennington Nov 18, 2013
6c7ca09
newsbeuter-dev: update to latest master
lovek323 Nov 18, 2013
bf48a6f
Adding freetype to ffmpeg. To use the drawtext filter.
viric Nov 24, 2013
370dec9
Updating amrnb to the latest version.
viric Nov 24, 2013
f2581d2
Add alienfx. Only tested with M11x Made some corrections. Added meta-…
tomberek Nov 21, 2013
4f199ef
alienfx: also build on i686
domenkozar Nov 24, 2013
18685b7
MyPaint, fix impurity: add hicolor_icon_theme wrapper to ensure MyPai…
cillianderoiste Nov 24, 2013
89c478d
Add robomongo, a GUI for exploring mongodb data and building queries.
Nov 20, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/maintainers.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
smironov = "Sergey Mironov <[email protected]>";
thammers = "Tobias Hammerschmidt <[email protected]>";
the-kenny = "Moritz Ulrich <[email protected]>";
tomberek = "Thomas Bereknyei <[email protected]>";
urkud = "Yury G. Kudryashov <[email protected]>";
vcunat = "Vladimír Čunát <[email protected]>";
viric = "Lluís Batlle i Rossell <[email protected]>";
Expand All @@ -63,5 +64,6 @@
winden = "Antonio Vargas Gonzalez <[email protected]>";
z77z = "Marco Maggesi <[email protected]>";
zef = "Zef Hemel <[email protected]>";
zimbatm = "zimbatm <[email protected]>";
zoomulator = "Kim Simmons <[email protected]>";
}
31 changes: 31 additions & 0 deletions nixos/doc/manual/development.xml
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,37 @@ $ qemu-system-x86_64 -kernel ./kernel/bzImage -initrd ./initrd/initrd -hda /dev/
</listitem>
</varlistentry>

<varlistentry>
<term><varname>systemd.units.<replaceable>unit-name</replaceable>.unit</varname></term>
<listitem>
<para>This builds the unit with the specified name. Note that
since unit names contain dots
(e.g. <literal>httpd.service</literal>), you need to put them
between quotes, like this:

<screen>
$ nix-build -A 'config.systemd.units."httpd.service".unit'
</screen>

You can also test individual units, without rebuilding the whole
system, by putting them in
<filename>/run/systemd/system</filename>:

<screen>
$ cp $(nix-build -A 'config.systemd.units."httpd.service".unit')/httpd.service \
/run/systemd/system/tmp-httpd.service
$ systemctl daemon-reload
$ systemctl start tmp-httpd.service
</screen>

Note that the unit must not have the same name as any unit in
<filename>/etc/systemd/system</filename> since those take
precedence over <filename>/run/systemd/system</filename>.
That’s why the unit is installed as
<filename>tmp-httpd.service</filename> here.</para>
</listitem>
</varlistentry>

</variablelist>

</para>
Expand Down
2 changes: 1 addition & 1 deletion nixos/maintainers/scripts/ec2/create-ebs-amis.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
m.run_command("nix-channel --add http://nixos.org/channels/nixos-unstable")
m.run_command("nix-channel --update")
m.run_command("nixos-rebuild switch")
version = m.run_command("nixos-version", capture_stdout=True).replace('"', '').rstrip()
version = m.run_command("nixos-version", capture_stdout=True).split(' ')[0]
print >> sys.stderr, "NixOS version is {0}".format(version)
m.upload_file("./amazon-base-config.nix", "/mnt/etc/nixos/configuration.nix")
m.run_command("nixos-install")
Expand Down
40 changes: 22 additions & 18 deletions nixos/modules/installer/cd-dvd/iso-image.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,31 +44,29 @@ let


# The efi boot image
efiDir = pkgs.runCommand "efi-directory" {} ''
mkdir -p $out/efi/boot
cp -v ${pkgs.gummiboot}/lib/gummiboot/gummiboot${targetArch}.efi $out/efi/boot/boot${targetArch}.efi
mkdir -p $out/loader/entries
echo "title NixOS LiveCD" > $out/loader/entries/nixos-livecd.conf
echo "linux /boot/bzImage" >> $out/loader/entries/nixos-livecd.conf
echo "initrd /boot/initrd" >> $out/loader/entries/nixos-livecd.conf
echo "options init=${config.system.build.toplevel}/init ${toString config.boot.kernelParams}" >> $out/loader/entries/nixos-livecd.conf
echo "default nixos-livecd" > $out/loader/loader.conf
echo "timeout 5" >> $out/loader/loader.conf
'';

efiImg = pkgs.runCommand "efi-image_eltorito" { buildInputs = [ pkgs.mtools ]; }
''
#Let's hope 10M is enough
dd bs=2048 count=5120 if=/dev/zero of="$out"
${pkgs.dosfstools}/sbin/mkfs.vfat "$out"
mmd -i "$out" efi
mmd -i "$out" efi/boot
mmd -i "$out" efi/nixos
mmd -i "$out" loader
mmd -i "$out" loader/entries
mcopy -v -i "$out" \
${pkgs.gummiboot}/lib/gummiboot/gummiboot${targetArch}.efi \
::efi/boot/boot${targetArch}.efi
mcopy -svi "$out" ${efiDir}/* ::
mmd -i "$out" boot
mcopy -v -i "$out" \
${config.boot.kernelPackages.kernel}/bzImage ::bzImage
${config.boot.kernelPackages.kernel}/bzImage ::boot/bzImage
mcopy -v -i "$out" \
${config.system.build.initialRamdisk}/initrd ::efi/nixos/initrd
echo "title NixOS LiveCD" > boot-params
echo "linux /bzImage" >> boot-params
echo "initrd /efi/nixos/initrd" >> boot-params
echo "options init=${config.system.build.toplevel}/init ${toString config.boot.kernelParams}" >> boot-params
mcopy -v -i "$out" boot-params ::loader/entries/nixos-livecd.conf
echo "default nixos-livecd" > boot-params
echo "timeout 5" >> boot-params
mcopy -v -i "$out" boot-params ::loader/loader.conf
${config.system.build.initialRamdisk}/initrd ::boot/initrd
'';

targetArch = if pkgs.stdenv.isi686 then
Expand Down Expand Up @@ -263,6 +261,12 @@ in
{ source = efiImg;
target = "/boot/efi.img";
}
{ source = "${efiDir}/efi";
target = "/efi";
}
{ source = "${efiDir}/loader";
target = "/loader";
}
] ++ mapAttrsToList (n: v: { source = v; target = "/boot/${n}"; }) config.boot.loader.grub.extraFiles;

# The Grub menu.
Expand Down
2 changes: 2 additions & 0 deletions nixos/modules/module-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
./services/databases/virtuoso.nix
./services/games/ghost-one.nix
./services/hardware/acpid.nix
./services/hardware/amd-hybrid-graphics.nix
./services/hardware/bluetooth.nix
./services/hardware/nvidia-optimus.nix
./services/hardware/pcscd.nix
Expand Down Expand Up @@ -274,6 +275,7 @@
./tasks/network-interfaces.nix
./tasks/scsi-link-power-management.nix
./tasks/swraid.nix
./testing/service-runner.nix
./virtualisation/libvirtd.nix
#./virtualisation/nova.nix
./virtualisation/virtualbox-guest.nix
Expand Down
35 changes: 20 additions & 15 deletions nixos/modules/security/polkit.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,15 @@ in
default = "";
example =
''
TODO
/* Log authorization checks. */
polkit.addRule(function(action, subject) {
polkit.log("user " + subject.user + " is attempting action " + action.id + " from PID " + subject.pid);
});

/* Allow any local user to do anything (dangerous!). */
polkit.addRule(function(action, subject) {
if (subject.local) return "yes";
});
'';
description =
''
Expand All @@ -33,9 +41,9 @@ in
};

security.polkit.adminIdentities = mkOption {
type = types.str;
default = "unix-user:0;unix-group:wheel";
example = "";
type = types.listOf types.str;
default = [ "unix-user:0" "unix-group:wheel" ];
example = [ "unix-user:alice" "unix-group:admin" ];
description =
''
Specifies which users are considered “administrators”, for those
Expand All @@ -58,18 +66,15 @@ in
# The polkit daemon reads action/rule files
environment.pathsToLink = [ "/share/polkit-1" ];

# PolKit rules for NixOS
environment.etc = [ {
source = pkgs.writeText "10-nixos.conf"
''
polkit.addAdminRule(function(action, subject) {
return ["${cfg.adminIdentities}"];
});
# PolKit rules for NixOS.
environment.etc."polkit-1/rules.d/10-nixos.rules".text =
''
polkit.addAdminRule(function(action, subject) {
return [${concatStringsSep ", " (map (i: "\"${i}\"") cfg.adminIdentities)}];
});

${cfg.extraConfig}
''; #TODO: validation on compilation (at least against typos)
target = "polkit-1/rules.d/10-nixos.conf";
} ];
${cfg.extraConfig}
''; #TODO: validation on compilation (at least against typos)

services.dbus.packages = [ pkgs.polkit ];

Expand Down
9 changes: 7 additions & 2 deletions nixos/modules/services/databases/postgresql.nix
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,13 @@ in
# Initialise the database.
if ! test -e ${cfg.dataDir}; then
mkdir -m 0700 -p ${cfg.dataDir}
chown -R postgres ${cfg.dataDir}
su -s ${pkgs.stdenv.shell} postgres -c 'initdb -U root'
if [ "$(id -u)" = 0 ]; then
chown -R postgres ${cfg.dataDir}
su -s ${pkgs.stdenv.shell} postgres -c 'initdb -U root'
else
# For non-root operation.
initdb
fi
rm -f ${cfg.dataDir}/*.conf
touch "${cfg.dataDir}/.first_startup"
fi
Expand Down
39 changes: 39 additions & 0 deletions nixos/modules/services/hardware/amd-hybrid-graphics.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{ config, pkgs, ... }:

{

###### interface

options = {

hardware.amdHybridGraphics.disable = pkgs.lib.mkOption {
default = false;
type = pkgs.lib.types.bool;
description = ''
Completely disable the AMD graphics card and use the
integrated graphics processor instead.
'';
};

};


###### implementation

config = pkgs.lib.mkIf config.hardware.amdHybridGraphics.disable {
systemd.services."amd-hybrid-graphics" = {
path = [ pkgs.bash ];
description = "Disable AMD Card";
after = [ "sys-kernel-debug.mount" ];
requires = [ "sys-kernel-debug.mount" ];
wantedBy = [ "multi-user.target" ];
serviceConfig = {
Type = "oneshot";
RemainAfterExit = true;
ExecStart = "${pkgs.bash}/bin/sh -c 'echo -e \"IGD\\nOFF\" > /sys/kernel/debug/vgaswitcheroo/switch; exit 0'";
ExecStop = "${pkgs.bash}/bin/sh -c 'echo ON >/sys/kernel/debug/vgaswitcheroo/switch; exit 0'";
};
};
};

}
4 changes: 4 additions & 0 deletions nixos/modules/services/monitoring/dd-agent.nix
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ in {
ExecStart = "${pkgs.dd-agent}/bin/dd-agent foreground";
User = "dd-agent";
Group = "dd-agent";
Restart = "always";
RestartSec = 2;
};
restartTriggers = [ pkgs.dd-agent datadog_conf ];
};
Expand All @@ -76,6 +78,8 @@ in {
Group = "dd-agent";
Type = "forking";
PIDFile = "/tmp/dogstatsd.pid";
Restart = "always";
RestartSec = 2;
};
restartTriggers = [ pkgs.dd-agent datadog_conf ];
};
Expand Down
5 changes: 3 additions & 2 deletions nixos/modules/services/web-servers/apache-httpd/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -628,10 +628,10 @@ in
preStart =
''
mkdir -m 0750 -p ${mainCfg.stateDir}
chown root.${mainCfg.group} ${mainCfg.stateDir}
[ $(id -u) != 0 ] || chown root.${mainCfg.group} ${mainCfg.stateDir}
${optionalString version24 ''
mkdir -m 0750 -p "${mainCfg.stateDir}/runtime"
chown root.${mainCfg.group} "${mainCfg.stateDir}/runtime"
[ $(id -u) != 0 ] || chown root.${mainCfg.group} "${mainCfg.stateDir}/runtime"
''}
mkdir -m 0700 -p ${mainCfg.logDir}

Expand Down Expand Up @@ -659,6 +659,7 @@ in
serviceConfig.ExecStart = "@${httpd}/bin/httpd httpd -f ${httpdConf}";
serviceConfig.ExecStop = "${httpd}/bin/httpd -f ${httpdConf} -k graceful-stop";
serviceConfig.Type = "forking";
serviceConfig.PIDFile = "${mainCfg.stateDir}/httpd.pid";
serviceConfig.Restart = "always";
};

Expand Down
1 change: 1 addition & 0 deletions nixos/modules/services/x11/desktop-managers/xfce.nix
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ in
pkgs.xfce.thunar_volman
pkgs.xfce.gvfs
pkgs.xfce.xfce4_appfinder
pkgs.xfce.tumbler
]
++ optional config.powerManagement.enable pkgs.xfce.xfce4_power_manager;

Expand Down
6 changes: 2 additions & 4 deletions nixos/modules/system/boot/kernel.nix
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,8 @@ in
{ description = "Load Kernel Modules";
wantedBy = [ "sysinit.target" "multi-user.target" ];
before = [ "sysinit.target" "shutdown.target" ];
unitConfig =
{ DefaultDependencies = "no";
Conflicts = "shutdown.target";
};
conflicts = [ "shutdown.target" ];
unitConfig.DefaultDependencies = "no";
serviceConfig =
{ Type = "oneshot";
RemainAfterExit = true;
Expand Down
5 changes: 5 additions & 0 deletions nixos/modules/system/boot/stage-1.nix
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,11 @@ in

config = {

assertions = singleton
{ assertion = any (fs: fs.mountPoint == "/") (attrValues config.fileSystems);
message = "The ‘fileSystems’ option does not specify your root file system.";
};

system.build.bootStage1 = bootStage1;
system.build.initialRamdisk = initialRamdisk;
system.build.extraUtils = extraUtils;
Expand Down
Loading