···19 # we don't limit this action to only NixOS repo since the checks are cheap and useful developer feedback
20 steps:
21 - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
22- - uses: cachix/install-nix-action@6004951b182f8860210c8d6f0d808ec5b1a33d28 # v25
23 - uses: cachix/cachix-action@18cf96c7c98e048e10a83abd92116114cd8504be # v14
24 with:
25 # This cache is for the nixpkgs repo checks and should not be trusted or used elsewhere.
···19 # we don't limit this action to only NixOS repo since the checks are cheap and useful developer feedback
20 steps:
21 - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
22+ - uses: cachix/install-nix-action@8887e596b4ee1134dae06b98d573bd674693f47c # v26
23 - uses: cachix/cachix-action@18cf96c7c98e048e10a83abd92116114cd8504be # v14
24 with:
25 # This cache is for the nixpkgs repo checks and should not be trusted or used elsewhere.
+1-1
.github/workflows/check-by-name.yml
···98 base=$(mktemp -d)
99 git worktree add "$base" "$(git rev-parse HEAD^1)"
100 echo "base=$base" >> "$GITHUB_ENV"
101- - uses: cachix/install-nix-action@6004951b182f8860210c8d6f0d808ec5b1a33d28 # v25
102 - name: Fetching the pinned tool
103 # Update the pinned version using pkgs/test/nixpkgs-check-by-name/scripts/update-pinned-tool.sh
104 run: |
···98 base=$(mktemp -d)
99 git worktree add "$base" "$(git rev-parse HEAD^1)"
100 echo "base=$base" >> "$GITHUB_ENV"
101+ - uses: cachix/install-nix-action@8887e596b4ee1134dae06b98d573bd674693f47c # v26
102 - name: Fetching the pinned tool
103 # Update the pinned version using pkgs/test/nixpkgs-check-by-name/scripts/update-pinned-tool.sh
104 run: |
+1-1
.github/workflows/check-maintainers-sorted.yaml
···16 with:
17 # pull_request_target checks out the base branch by default
18 ref: refs/pull/${{ github.event.pull_request.number }}/merge
19- - uses: cachix/install-nix-action@6004951b182f8860210c8d6f0d808ec5b1a33d28 # v25
20 with:
21 # explicitly enable sandbox
22 extra_nix_config: sandbox = true
···16 with:
17 # pull_request_target checks out the base branch by default
18 ref: refs/pull/${{ github.event.pull_request.number }}/merge
19+ - uses: cachix/install-nix-action@8887e596b4ee1134dae06b98d573bd674693f47c # v26
20 with:
21 # explicitly enable sandbox
22 extra_nix_config: sandbox = true
+1-1
.github/workflows/editorconfig.yml
···28 with:
29 # pull_request_target checks out the base branch by default
30 ref: refs/pull/${{ github.event.pull_request.number }}/merge
31- - uses: cachix/install-nix-action@6004951b182f8860210c8d6f0d808ec5b1a33d28 # v25
32 with:
33 # nixpkgs commit is pinned so that it doesn't break
34 # editorconfig-checker 2.4.0
···28 with:
29 # pull_request_target checks out the base branch by default
30 ref: refs/pull/${{ github.event.pull_request.number }}/merge
31+ - uses: cachix/install-nix-action@8887e596b4ee1134dae06b98d573bd674693f47c # v26
32 with:
33 # nixpkgs commit is pinned so that it doesn't break
34 # editorconfig-checker 2.4.0
+1-1
.github/workflows/manual-nixos.yml
···18 with:
19 # pull_request_target checks out the base branch by default
20 ref: refs/pull/${{ github.event.pull_request.number }}/merge
21- - uses: cachix/install-nix-action@6004951b182f8860210c8d6f0d808ec5b1a33d28 # v25
22 with:
23 # explicitly enable sandbox
24 extra_nix_config: sandbox = true
···18 with:
19 # pull_request_target checks out the base branch by default
20 ref: refs/pull/${{ github.event.pull_request.number }}/merge
21+ - uses: cachix/install-nix-action@8887e596b4ee1134dae06b98d573bd674693f47c # v26
22 with:
23 # explicitly enable sandbox
24 extra_nix_config: sandbox = true
+1-1
.github/workflows/manual-nixpkgs.yml
···19 with:
20 # pull_request_target checks out the base branch by default
21 ref: refs/pull/${{ github.event.pull_request.number }}/merge
22- - uses: cachix/install-nix-action@6004951b182f8860210c8d6f0d808ec5b1a33d28 # v25
23 with:
24 # explicitly enable sandbox
25 extra_nix_config: sandbox = true
···19 with:
20 # pull_request_target checks out the base branch by default
21 ref: refs/pull/${{ github.event.pull_request.number }}/merge
22+ - uses: cachix/install-nix-action@8887e596b4ee1134dae06b98d573bd674693f47c # v26
23 with:
24 # explicitly enable sandbox
25 extra_nix_config: sandbox = true
+1-1
.github/workflows/nix-parse.yml
···29 # pull_request_target checks out the base branch by default
30 ref: refs/pull/${{ github.event.pull_request.number }}/merge
31 if: ${{ env.CHANGED_FILES && env.CHANGED_FILES != '' }}
32- - uses: cachix/install-nix-action@6004951b182f8860210c8d6f0d808ec5b1a33d28 # v25
33 with:
34 nix_path: nixpkgs=channel:nixpkgs-unstable
35 - name: Parse all changed or added nix files
···29 # pull_request_target checks out the base branch by default
30 ref: refs/pull/${{ github.event.pull_request.number }}/merge
31 if: ${{ env.CHANGED_FILES && env.CHANGED_FILES != '' }}
32+ - uses: cachix/install-nix-action@8887e596b4ee1134dae06b98d573bd674693f47c # v26
33 with:
34 nix_path: nixpkgs=channel:nixpkgs-unstable
35 - name: Parse all changed or added nix files
···67{ config, lib, ... }:
89-with lib;
00000001011{
12 options = {
13 # A simple boolean option that can be enabled or disabled.
14- enable = lib.mkOption {
15 type = types.nullOr types.bool;
16 default = null;
17 example = true;
···41 # should override the next import.
42 ( { config, lib, ... }:
43 {
44- enableAlias = lib.mkForce false;
45 }
46 )
47
···67{ config, lib, ... }:
89+let
10+ inherit (lib)
11+ mkAliasOptionModule
12+ mkForce
13+ mkOption
14+ types
15+ ;
16+in
1718{
19 options = {
20 # A simple boolean option that can be enabled or disabled.
21+ enable = mkOption {
22 type = types.nullOr types.bool;
23 default = null;
24 example = true;
···48 # should override the next import.
49 ( { config, lib, ... }:
50 {
51+ enableAlias = mkForce false;
52 }
53 )
54
+10-3
lib/tests/modules/alias-with-priority.nix
···67{ config, lib, ... }:
89-with lib;
00000001011{
12 options = {
13 # A simple boolean option that can be enabled or disabled.
14- enable = lib.mkOption {
15 type = types.nullOr types.bool;
16 default = null;
17 example = true;
···41 # should be able to be overridden by the next import.
42 ( { config, lib, ... }:
43 {
44- enableAlias = lib.mkDefault false;
45 }
46 )
47
···67{ config, lib, ... }:
89+let
10+ inherit (lib)
11+ mkAliasOptionModule
12+ mkDefault
13+ mkOption
14+ types
15+ ;
16+in
1718{
19 options = {
20 # A simple boolean option that can be enabled or disabled.
21+ enable = mkOption {
22 type = types.nullOr types.bool;
23 default = null;
24 example = true;
···48 # should be able to be overridden by the next import.
49 ( { config, lib, ... }:
50 {
51+ enableAlias = mkDefault false;
52 }
53 )
54
···100 # Test Wayland
101 # We let Miriway start the first terminal, as we might get stuck if it's not ready to process the first keybind
102 # machine.send_key("ctrl-alt-t")
103- machine.wait_for_text("alice@machine")
104 machine.send_chars("test-wayland\n")
105 machine.wait_for_file("/tmp/test-wayland-exit-ok")
106 machine.copy_from_vm("/tmp/test-wayland.out")
···112113 # Test XWayland
114 machine.send_key("ctrl-alt-a")
115- machine.wait_for_text("alice@machine")
116 machine.send_chars("test-x11\n")
117 machine.wait_for_file("/tmp/test-x11-exit-ok")
118 machine.copy_from_vm("/tmp/test-x11.out")
···100 # Test Wayland
101 # We let Miriway start the first terminal, as we might get stuck if it's not ready to process the first keybind
102 # machine.send_key("ctrl-alt-t")
103+ machine.wait_for_text(r"(alice|machine)")
104 machine.send_chars("test-wayland\n")
105 machine.wait_for_file("/tmp/test-wayland-exit-ok")
106 machine.copy_from_vm("/tmp/test-wayland.out")
···112113 # Test XWayland
114 machine.send_key("ctrl-alt-a")
115+ machine.wait_for_text(r"(alice|machine)")
116 machine.send_chars("test-x11\n")
117 machine.wait_for_file("/tmp/test-x11-exit-ok")
118 machine.copy_from_vm("/tmp/test-x11.out")
+1-1
pkgs/README.md
···176177 - **If it’s a _language server_:**
178179- - `development/tools/language-servers` (e.g. `ccls` or `rnix-lsp`)
180181 - **Else:**
182
···176177 - **If it’s a _language server_:**
178179+ - `development/tools/language-servers` (e.g. `ccls` or `nil`)
180181 - **Else:**
182
···94 strace
95 ]
96 );
97+ buildInputs = lib.optionals coreCompression (
98+ # Declare at the point of actual use in case the caller wants to override
99+ # buildInputs to sidestep this.
100+ assert lib.assertMsg (!purgeNixReferences) ''
101+ Cannot enable coreCompression when purging Nix references, because compression requires linking in zstd
102+ '';
103+ [ zstd ]
104+ );
105106 patches = lib.optionals (lib.versionOlder self.version "2.4.2") [
107 # Fixed in 2.4.2
···10, makeBinaryWrapper
11, nixosTests
12, enableLocalIcons ? false
013}:
14let
15 dashboardIcons = fetchFromGitHub {
···28in
29buildNpmPackage rec {
30 pname = "homepage-dashboard";
31- version = "0.8.8";
3233 src = fetchFromGitHub {
34 owner = "gethomepage";
35 repo = "homepage";
36 rev = "v${version}";
37- hash = "sha256-QPMjf+VpsjvIrjjhDuZqd8VLl2Uu5Wop286Yn8XeRWk=";
38 };
3940- npmDepsHash = "sha256-u15lDdXnV3xlXAC9WQQKLIeV/AgtRM1sFNsacw3j6kU=";
41-42- # This project is primarily designed to be consumed through Docker.
43- # By default it logs to stdout, and also to a directory. This makes
44- # little sense here where all the logs will be collated in the
45- # systemd journal anyway, so the patch removes the file logging.
46- # This patch has been suggested upstream, but the contribution won't
47- # be accepted until it gets at least 10 upvotes, per their policy:
48- # https://github.com/gethomepage/homepage/discussions/3067
49- patches = [
50- (fetchpatch {
51- url = "https://github.com/gethomepage/homepage/commit/3be28a2c8b68f2404e4083e7f32eebbccdc4d293.patch";
52- hash = "sha256-5fUOXiHBZ4gdPeOHe1NIaBLaHJTDImsRjSwtueQOEXY=";
53- })
54- ];
5556 preBuild = ''
57 mkdir -p config
···99100 doDist = false;
101102- passthru.tests = {
103- inherit (nixosTests) homepage-dashboard;
000104 };
105106 meta = {
107- description = "A highly customisable dashboard with Docker and service API integrations.";
0108 mainProgram = "homepage";
109 homepage = "https://gethomepage.dev";
110 license = lib.licenses.gpl3;