Split constants into separate lib file
This commit is contained in:
@@ -47,7 +47,7 @@ in
|
||||
#"https://nix-cache.nul.ie"
|
||||
"https://cache.nixos.org"
|
||||
];
|
||||
trusted-public-keys = lib.my.nix.cacheKeys;
|
||||
trusted-public-keys = lib.my.c.nix.cacheKeys;
|
||||
};
|
||||
registry = {
|
||||
pkgs = {
|
||||
|
@@ -86,7 +86,7 @@ in
|
||||
options.my.deploy = with lib.types; {
|
||||
authorizedKeys = {
|
||||
keys = mkOpt' (listOf singleLineStr) [ ] "SSH public keys to add to the default deployment user.";
|
||||
keyFiles = mkOpt' (listOf path) [ lib.my.sshKeyFiles.deploy ] "SSH public key files to add to the default deployment user.";
|
||||
keyFiles = mkOpt' (listOf path) [ lib.my.c.sshKeyFiles.deploy ] "SSH public key files to add to the default deployment user.";
|
||||
};
|
||||
|
||||
enable = mkBoolOpt' true "Whether to expose deploy-rs configuration for this system.";
|
||||
|
@@ -6,7 +6,7 @@ in
|
||||
config = mkMerge [
|
||||
{
|
||||
networking = {
|
||||
domain = mkDefault "int.${lib.my.pubDomain}";
|
||||
domain = mkDefault "int.${lib.my.c.pubDomain}";
|
||||
useDHCP = false;
|
||||
enableIPv6 = mkDefault true;
|
||||
useNetworkd = mkDefault true;
|
||||
|
@@ -41,7 +41,7 @@ in
|
||||
shell =
|
||||
let shell = cfg.homeConfig.my.shell;
|
||||
in mkIf (shell != null) (mkDefault' shell);
|
||||
openssh.authorizedKeys.keyFiles = [ lib.my.sshKeyFiles.me ];
|
||||
openssh.authorizedKeys.keyFiles = [ lib.my.c.sshKeyFiles.me ];
|
||||
};
|
||||
homeConfig = {
|
||||
# In order for this option to evaluate on its own, home-manager expects the `name` (which is derived from the
|
||||
|
Reference in New Issue
Block a user