Compare commits
1 commit
7679664811
...
fffcb7f9bb
Author | SHA1 | Date | |
---|---|---|---|
![]() |
fffcb7f9bb |
1 changed files with 4 additions and 21 deletions
25
default.nix
25
default.nix
|
@ -39,10 +39,7 @@ let
|
|||
source = mkOption {
|
||||
type = nullOr (either path str);
|
||||
default = null;
|
||||
description = ''
|
||||
Path of the source file or directory.
|
||||
Be sure to quote paths you don't want nix to copy to the store.
|
||||
'';
|
||||
description = "Path of the source file or directory - be sure to quote paths you don't want nix to copy to the store.";
|
||||
};
|
||||
|
||||
executable = mkOption {
|
||||
|
@ -95,20 +92,6 @@ in
|
|||
'';
|
||||
};
|
||||
enable = mkEnableOption "Arbitrary Symlink Manager";
|
||||
impure = mkOption {
|
||||
type = bool;
|
||||
default = false;
|
||||
description = ''
|
||||
Expand ~ and environment variables in paths, similar to if you were in a shell.
|
||||
'';
|
||||
};
|
||||
variables = mkOption {
|
||||
type = attrsOf str;
|
||||
default = { };
|
||||
description = ''
|
||||
A set of environment variables to use in the deployment.
|
||||
'';
|
||||
};
|
||||
};
|
||||
files = mkOption {
|
||||
description = "Files to link";
|
||||
|
@ -163,7 +146,6 @@ in
|
|||
text = (
|
||||
builtins.toJSON {
|
||||
inherit files;
|
||||
inherit (config.envionrment.arbys) impure;
|
||||
clobber_by_default = config.environment.arbys.clobber;
|
||||
version = 1;
|
||||
}
|
||||
|
@ -213,10 +195,11 @@ in
|
|||
"arbys-copy.service"
|
||||
];
|
||||
after = [ "arbys-prep.service" ];
|
||||
environment = config.environment.arbys.variables;
|
||||
script =
|
||||
let
|
||||
linker = lib.getExe (pkgs.smfh or (pkgs.callPackage ./smfh.nix { }));
|
||||
linker = lib.getExe (
|
||||
pkgs.smfh or (pkgs.callPackage (pkgs.rustPlatform.buildRustPackage ./smfh.nix { }))
|
||||
);
|
||||
in
|
||||
''
|
||||
new_manifest=${manifest}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue