NixOS + home-manager configs, mirrored from GitLab SaaS. gitlab.com/andreijiroh-dev/nixops-config
nix-flake nixos home-manager nixpkgs nix-flakes
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: package coolify-compose as part of flake for third-party users

also add docs on how to install them on Nix and friends, among other
things.

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.dev>

+79 -7
+25 -1
README.md
··· 1 - # `@andreijiroh-dev/nixops-config` 1 + # `@andreijiroh-dev/nixops-config` - ~ajhalili2006's NixOS + home-manager configs in a flake 2 2 3 3 This is @ajhalili2006's NixOS + Home Manager configuration for his laptop and homelabs, 4 4 alongside in tildes with Nix installed and in sync with the [nixpkgs-specific branch][nix-dots] ··· 132 132 }; 133 133 }; 134 134 } 135 + ``` 136 + 137 + If you also want to use the custom packages I built through the nixpkgs' system, just add it 138 + to your `nixpkgs.overlays` config. 139 + 140 + ```nix 141 + # make sure to pass `andreijiroh-dev` as `extraSpecialArgs` to your NixOS/home-manager config 142 + # on the flake.nix to avoid issues 143 + { pkgs, andreijiroh-dev, lib, ... }: 144 + 145 + { 146 + nixpkgs.overlays = [ 147 + andreijiroh-dev.overlays.default 148 + # other overlays 149 + ]; 150 + } 151 + ``` 152 + 153 + ### Installing utility packages 154 + 155 + Replace `<package-name>` with the package you want to use. [See the `pkgs` README for details.](./pkgs/README.md) 156 + 157 + ```shell 158 + nix profile install github:andreijiroh-dev/nixops-config#<package-name> 135 159 ``` 136 160 137 161 ### Building a minimial ISO for recovery
+19 -5
flake.nix
··· 99 99 }: 100 100 let 101 101 dev-pkgs = import ./pkgs; 102 - in 103 - { 104 - # For CI and other builds 105 - packages = flake-utils.lib.eachDefaultSystem (system: 102 + # resolve the current system at evaluation time and compute the per-system packages 103 + current = builtins.currentSystem; 104 + systemPackages = flake-utils.lib.eachDefaultSystem (system: 106 105 let 107 106 pkgs = nixpkgs.legacyPackages.${system}; 108 107 in 109 108 { 109 + coolify-compose = pkgs.callPackage ./pkgs/coolify-compose.nix { }; 110 110 detect-vscode-for-git = pkgs.callPackage ./pkgs/detect-vscode-for-git.nix { }; 111 111 ssh-agent-loader = pkgs.callPackage ./pkgs/ssh-agent-loader.nix { }; 112 112 } 113 113 ); 114 - 114 + in 115 + { 115 116 overlays.default = final: prev: { 117 + coolify-compose = prev.callPackage ./pkgs/coolify-compose.nix { }; 116 118 detect-vscode-for-git = prev.callPackage ./pkgs/detect-vscode-for-git.nix { }; 117 119 ssh-agent-loader = prev.callPackage ./pkgs/ssh-agent-loader.nix { }; 118 120 }; 121 + 122 + # For CI and other builds, alongside flake-based package installs via 123 + # packages.${arch}-${platform}.${package-name} output. 124 + packages = systemPackages; 125 + 126 + # Convenient aliases resolved to the current system so consumers can do: 127 + # nix profile add .#<package-name> 128 + # instead of: 129 + # nix profile add .#packages.x86_64-linux.<package-name> 130 + coolify-compose = systemPackages.${current}.coolify-compose; 131 + detect-vscode-for-git = systemPackages.${current}.detect-vscode-for-git; 132 + ssh-agent-loader = systemPackages.${current}.ssh-agent-loader; 119 133 120 134 nixosConfigurations = { 121 135 recoverykit-amd64 = nixpkgs.lib.nixosSystem {
+4
hosts/lairland/configuration.nix
··· 79 79 environment.variables = { 80 80 COOLIFY_DIR = "/opt/docker-data/coolify"; 81 81 }; 82 + 83 + environment.systemPackages = with pkgs; [ 84 + coolify-compose 85 + ]; 82 86 }
+6 -1
pkgs/README.md
··· 1 - # Nix flakes-packages utilities 1 + # Nix flakes-packaged utilities 2 2 3 3 ## What's included 4 4 5 5 To install them, run `nix profile add github:andreijiroh-dev/nixops-config#<package-name>` or 6 6 add them into your NixOS/home-manager package lists after importing the flake. 7 7 8 + * [`coolify-compose`](./coolify-compose.nix) 8 9 * [`detect-vscode-for-git`](./detect-vscode-for-git.nix) 9 10 * [`ssh-agent-loader`](./ssh-agent-loader.nix) 11 + 12 + ## Other distros/non-nixpkgs format? 13 + 14 + I am working on setting up a PPA soon, so keep your eyes peeled.
+25
pkgs/coolify-compose.nix
··· 1 + { stdenv, lib, ... }: 2 + 3 + stdenv.mkDerivation { 4 + pname = "coolify-compose"; 5 + version = "0.1.0"; 6 + 7 + src = ../scripts/coolify-compose; 8 + 9 + dontUnpack = true; 10 + 11 + installPhase = '' 12 + runHook preInstall 13 + 14 + install -D -m755 $src $out/bin/coolify-compose 15 + 16 + runHook postInstall 17 + ''; 18 + 19 + meta = with lib; { 20 + description = "A wrapper script for docker-compose tailored for Coolify deployments."; 21 + license = licenses.mpl20; 22 + platforms = platforms.all; 23 + maintainers = with maintainers; [ ajhalili2006 ]; 24 + }; 25 + }