Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into HEAD
- Loading branch information
Showing
134 changed files
with
2,620 additions
and
2,326 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ config, lib, pkgs, ... }: | ||
|
||
with lib; | ||
|
||
let | ||
cfg = config.programs.zsh.zsh-autoenv; | ||
in { | ||
options = { | ||
programs.zsh.zsh-autoenv = { | ||
enable = mkEnableOption "zsh-autoenv"; | ||
package = mkOption { | ||
default = pkgs.zsh-autoenv; | ||
defaultText = "pkgs.zsh-autoenv"; | ||
description = '' | ||
Package to install for `zsh-autoenv` usage. | ||
''; | ||
|
||
type = types.package; | ||
}; | ||
}; | ||
}; | ||
|
||
config = mkIf cfg.enable { | ||
programs.zsh.interactiveShellInit = '' | ||
source ${cfg.package}/share/zsh-autoenv/autoenv.zsh | ||
''; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# pipewire service. | ||
{ config, lib, pkgs, ... }: | ||
|
||
with lib; | ||
|
||
{ | ||
###### interface | ||
options = { | ||
services.pipewire = { | ||
enable = mkEnableOption "pipewire service"; | ||
}; | ||
}; | ||
|
||
|
||
###### implementation | ||
config = mkIf config.services.pipewire.enable { | ||
environment.systemPackages = [ pkgs.pipewire ]; | ||
|
||
systemd.packages = [ pkgs.pipewire ]; | ||
}; | ||
|
||
meta.maintainers = with lib.maintainers; [ jtojnar ]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# this test creates a simple GNU image with docker tools and sees if it executes | ||
|
||
import ./make-test.nix ({ pkgs, ... }: { | ||
name = "docker-tools"; | ||
meta = with pkgs.stdenv.lib.maintainers; { | ||
maintainers = [ ]; | ||
}; | ||
|
||
nodes = { | ||
docker = | ||
{ config, pkgs, ... }: { | ||
virtualisation.docker.enable = true; | ||
}; | ||
}; | ||
|
||
testScript = | ||
let | ||
dockerImage = pkgs.dockerTools.buildImage { | ||
name = "hello-docker"; | ||
contents = [ pkgs.hello ]; | ||
tag = "sometag"; | ||
|
||
# TODO: create another test checking whether runAsRoot works as intended. | ||
|
||
config = { | ||
Cmd = [ "hello" ]; | ||
}; | ||
}; | ||
|
||
in '' | ||
$docker->waitForUnit("sockets.target"); | ||
$docker->succeed("docker load --input='${dockerImage}'"); | ||
$docker->succeed("docker run hello-docker:sometag"); | ||
''; | ||
|
||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.