mirror of
https://github.com/foo-dogsquared/nix-module-wrapper-manager-fds.git
synced 2025-01-31 04:58:17 +00:00
wrapper-manager-fds/docs: update project overview
This commit is contained in:
parent
e7b3d35209
commit
af90ee1db2
@ -4,6 +4,7 @@ title: Project overview
|
|||||||
= nix-wrapper-manager-fds
|
= nix-wrapper-manager-fds
|
||||||
:toc:
|
:toc:
|
||||||
|
|
||||||
|
:current-version: 0.1.0
|
||||||
:github-repo: nix-module-wrapper-manager-fds
|
:github-repo: nix-module-wrapper-manager-fds
|
||||||
:github-full: foo-dogsquared/{github-repo}
|
:github-full: foo-dogsquared/{github-repo}
|
||||||
:remote-git-repo: https://github.com/{github-full}
|
:remote-git-repo: https://github.com/{github-full}
|
||||||
@ -50,7 +51,7 @@ Assuming you have already initialized npins, you can simply add wrapper-manager-
|
|||||||
|
|
||||||
[source, shell, subs="attributes+"]
|
[source, shell, subs="attributes+"]
|
||||||
----
|
----
|
||||||
npins add --name wrapper-manager github foo-dogsquared {github-repo} --branch main
|
npins add --name wrapper-manager github foo-dogsquared {github-repo} --at {current-version}
|
||||||
----
|
----
|
||||||
|
|
||||||
Similar to channels installation, you'll have to import the <<user-entrypoint>> object.
|
Similar to channels installation, you'll have to import the <<user-entrypoint>> object.
|
||||||
@ -58,14 +59,14 @@ Similar to channels installation, you'll have to import the <<user-entrypoint>>
|
|||||||
[#installation-manual-pinning]
|
[#installation-manual-pinning]
|
||||||
=== Manual pinning
|
=== Manual pinning
|
||||||
|
|
||||||
Though not recommended, you could manually pin the Nix library yourself like in the following code.
|
Though not recommended, you could manually pin the Nix library yourself and then import the <<user-entrypoint, user entrypoint>> like in the following code.
|
||||||
|
|
||||||
[source, nix, subs="attributes+"]
|
[source, nix, subs="attributes+"]
|
||||||
----
|
----
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
wrapper-manager-fds-src = builtins.fetchTarball "{remote-git-repo}/archive/master.tar.gz";
|
wrapper-manager-fds-src = builtins.fetchTarball "{remote-git-repo}/archive/{current-version}.tar.gz";
|
||||||
wrapper-manager = import wrapper-manager-fds-src { };
|
wrapper-manager = import wrapper-manager-fds-src { };
|
||||||
wrapperManagerLib = import wrapper-manager.wrapperManagerLib { inherit pkgs; }
|
wrapperManagerLib = import wrapper-manager.wrapperManagerLib { inherit pkgs; }
|
||||||
in
|
in
|
||||||
@ -82,7 +83,7 @@ Unlike the other methods, the flake output is the user entrypoint so no need to
|
|||||||
[source, nix, subs="attributes+"]
|
[source, nix, subs="attributes+"]
|
||||||
----
|
----
|
||||||
{
|
{
|
||||||
inputs.wrapper-manager-fds.url = "github:{github-full}";
|
inputs.wrapper-manager-fds.url = "github:{github-full}/{current-version}";
|
||||||
|
|
||||||
outputs = { nixpkgs, ... }@inputs: {
|
outputs = { nixpkgs, ... }@inputs: {
|
||||||
nixosConfigurations.desktop = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.desktop = nixpkgs.lib.nixosSystem {
|
||||||
@ -174,7 +175,7 @@ Or if you want fastfetch...
|
|||||||
wrappers.fastfetch = {
|
wrappers.fastfetch = {
|
||||||
arg0 = lib.getExe' pkgs.fastfetch "fastfetch";
|
arg0 = lib.getExe' pkgs.fastfetch "fastfetch";
|
||||||
appendArgs = [ "--logo" "Guix" ];
|
appendArgs = [ "--logo" "Guix" ];
|
||||||
env.NO_COLOR = "1";
|
env.NO_COLOR.value = "1";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
|
Loading…
Reference in New Issue
Block a user