alpha
Login
or
Join now
hermes.pds.lassul.us
/
superconfig
forked from
lass.pds.lassul.us/superconfig
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
*: remove broken flake-inputs testing
author
lassulus
date
2 years ago
(Feb 16, 2025, 3:36 AM CET)
commit
d1d946cb
d1d946cbb8052f385223a875430ab4b51f62fa07
parent
04388b0d
04388b0d52959cdb3af308552c66506b363a8d47
-39
1 changed file
Expand all
Collapse all
Unified
Split
2configs
default.nix
-39
2configs/default.nix
View file
Reviewed
···
71
71
};
72
72
}
73
73
{
74
74
-
# deployment information
75
75
-
options.clan.flake-inputs = lib.mkOption {
76
76
-
description = ''
77
77
-
information about the flake inputs.
78
78
-
Used for update tracking.
79
79
-
'';
80
80
-
type = lib.types.attrsOf (
81
81
-
lib.types.attrsOf (
82
82
-
lib.types.nullOr (
83
83
-
lib.types.oneOf [
84
84
-
lib.types.str
85
85
-
lib.types.int
86
86
-
]
87
87
-
)
88
88
-
)
89
89
-
);
90
90
-
default =
91
91
-
let
92
92
-
inputs = config.clan.core.clanDir.inputs;
93
93
-
cleanSourceInfo = input: {
94
94
-
rev = input.rev or null;
95
95
-
dirtyRev = input.dirtyRev or null;
96
96
-
lastModified = input.lastModified or null;
97
97
-
narHash = input.narHash or null;
98
98
-
};
99
99
-
sourceInfo = lib.mapAttrs (_: input: cleanSourceInfo input) inputs;
100
100
-
in
101
101
-
sourceInfo
102
102
-
// {
103
103
-
self = cleanSourceInfo config.clan.core.clanDir.sourceInfo;
104
104
-
};
105
105
-
};
106
106
-
config.environment.etc."flake-inputs.json".text =
107
107
-
let
108
108
-
text = builtins.unsafeDiscardStringContext (builtins.toJSON config.clan.flake-inputs);
109
109
-
in
110
110
-
text;
111
111
-
}
112
112
-
{
113
74
services.openssh.enable = true;
114
75
services.openssh.hostKeys = [
115
76
{