Apply nixfmt on many files
This commit is contained in:
parent
9799d3de2d
commit
45abf3d38a
177 changed files with 2850 additions and 3565 deletions
|
|
@ -4,15 +4,10 @@ with lib;
|
|||
|
||||
{
|
||||
config = {
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
};
|
||||
programs.ssh = { enable = true; };
|
||||
|
||||
home.file.assertions.text =
|
||||
builtins.toJSON
|
||||
(map (a: a.message)
|
||||
(filter (a: !a.assertion)
|
||||
config.assertions));
|
||||
home.file.assertions.text = builtins.toJSON
|
||||
(map (a: a.message) (filter (a: !a.assertion) config.assertions));
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.ssh/config
|
||||
|
|
|
|||
|
|
@ -8,25 +8,22 @@ with lib;
|
|||
enable = true;
|
||||
matchBlocks = {
|
||||
dynamicBindPathWithPort = {
|
||||
dynamicForwards = [
|
||||
{
|
||||
# Error:
|
||||
address = "/run/user/1000/gnupg/S.gpg-agent.extra";
|
||||
port = 3000;
|
||||
}
|
||||
];
|
||||
dynamicForwards = [{
|
||||
# Error:
|
||||
address = "/run/user/1000/gnupg/S.gpg-agent.extra";
|
||||
port = 3000;
|
||||
}];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
home.file.result.text =
|
||||
builtins.toJSON
|
||||
(map (a: a.message)
|
||||
(filter (a: !a.assertion)
|
||||
config.assertions));
|
||||
home.file.result.text = builtins.toJSON
|
||||
(map (a: a.message) (filter (a: !a.assertion) config.assertions));
|
||||
|
||||
nmt.script = ''
|
||||
assertFileContent home-files/result ${./forwards-paths-with-ports-error.json}
|
||||
assertFileContent home-files/result ${
|
||||
./forwards-paths-with-ports-error.json
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,31 +8,24 @@ with lib;
|
|||
enable = true;
|
||||
matchBlocks = {
|
||||
dynamicBindPathNoPort = {
|
||||
dynamicForwards = [
|
||||
{
|
||||
# OK:
|
||||
address = "/run/user/1000/gnupg/S.gpg-agent.extra";
|
||||
}
|
||||
];
|
||||
dynamicForwards = [{
|
||||
# OK:
|
||||
address = "/run/user/1000/gnupg/S.gpg-agent.extra";
|
||||
}];
|
||||
};
|
||||
|
||||
dynamicBindAddressWithPort = {
|
||||
dynamicForwards = [
|
||||
{
|
||||
# OK:
|
||||
address = "127.0.0.1";
|
||||
port = 3000;
|
||||
}
|
||||
];
|
||||
dynamicForwards = [{
|
||||
# OK:
|
||||
address = "127.0.0.1";
|
||||
port = 3000;
|
||||
}];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
home.file.result.text =
|
||||
builtins.toJSON
|
||||
(map (a: a.message)
|
||||
(filter (a: !a.assertion)
|
||||
config.assertions));
|
||||
home.file.result.text = builtins.toJSON
|
||||
(map (a: a.message) (filter (a: !a.assertion) config.assertions));
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.ssh/config
|
||||
|
|
|
|||
|
|
@ -8,29 +8,26 @@ with lib;
|
|||
enable = true;
|
||||
matchBlocks = {
|
||||
localBindPathWithPort = {
|
||||
localForwards = [
|
||||
{
|
||||
# OK:
|
||||
host.address = "127.0.0.1";
|
||||
host.port = 3000;
|
||||
localForwards = [{
|
||||
# OK:
|
||||
host.address = "127.0.0.1";
|
||||
host.port = 3000;
|
||||
|
||||
# Error:
|
||||
bind.address = "/run/user/1000/gnupg/S.gpg-agent.extra";
|
||||
bind.port = 3000;
|
||||
}
|
||||
];
|
||||
# Error:
|
||||
bind.address = "/run/user/1000/gnupg/S.gpg-agent.extra";
|
||||
bind.port = 3000;
|
||||
}];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
home.file.result.text =
|
||||
builtins.toJSON
|
||||
(map (a: a.message)
|
||||
(filter (a: !a.assertion)
|
||||
config.assertions));
|
||||
home.file.result.text = builtins.toJSON
|
||||
(map (a: a.message) (filter (a: !a.assertion) config.assertions));
|
||||
|
||||
nmt.script = ''
|
||||
assertFileContent home-files/result ${./forwards-paths-with-ports-error.json}
|
||||
assertFileContent home-files/result ${
|
||||
./forwards-paths-with-ports-error.json
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,29 +8,26 @@ with lib;
|
|||
enable = true;
|
||||
matchBlocks = {
|
||||
localHostPathWithPort = {
|
||||
localForwards = [
|
||||
{
|
||||
# OK:
|
||||
bind.address = "127.0.0.1";
|
||||
bind.port = 3000;
|
||||
localForwards = [{
|
||||
# OK:
|
||||
bind.address = "127.0.0.1";
|
||||
bind.port = 3000;
|
||||
|
||||
# Error:
|
||||
host.address = "/run/user/1000/gnupg/S.gpg-agent.extra";
|
||||
host.port = 3000;
|
||||
}
|
||||
];
|
||||
# Error:
|
||||
host.address = "/run/user/1000/gnupg/S.gpg-agent.extra";
|
||||
host.port = 3000;
|
||||
}];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
home.file.result.text =
|
||||
builtins.toJSON
|
||||
(map (a: a.message)
|
||||
(filter (a: !a.assertion)
|
||||
config.assertions));
|
||||
home.file.result.text = builtins.toJSON
|
||||
(map (a: a.message) (filter (a: !a.assertion) config.assertions));
|
||||
|
||||
nmt.script = ''
|
||||
assertFileContent home-files/result ${./forwards-paths-with-ports-error.json}
|
||||
assertFileContent home-files/result ${
|
||||
./forwards-paths-with-ports-error.json
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,29 +8,26 @@ with lib;
|
|||
enable = true;
|
||||
matchBlocks = {
|
||||
remoteBindPathWithPort = {
|
||||
remoteForwards = [
|
||||
{
|
||||
# OK:
|
||||
host.address = "127.0.0.1";
|
||||
host.port = 3000;
|
||||
remoteForwards = [{
|
||||
# OK:
|
||||
host.address = "127.0.0.1";
|
||||
host.port = 3000;
|
||||
|
||||
# Error:
|
||||
bind.address = "/run/user/1000/gnupg/S.gpg-agent.extra";
|
||||
bind.port = 3000;
|
||||
}
|
||||
];
|
||||
# Error:
|
||||
bind.address = "/run/user/1000/gnupg/S.gpg-agent.extra";
|
||||
bind.port = 3000;
|
||||
}];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
home.file.result.text =
|
||||
builtins.toJSON
|
||||
(map (a: a.message)
|
||||
(filter (a: !a.assertion)
|
||||
config.assertions));
|
||||
home.file.result.text = builtins.toJSON
|
||||
(map (a: a.message) (filter (a: !a.assertion) config.assertions));
|
||||
|
||||
nmt.script = ''
|
||||
assertFileContent home-files/result ${./forwards-paths-with-ports-error.json}
|
||||
assertFileContent home-files/result ${
|
||||
./forwards-paths-with-ports-error.json
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,29 +8,26 @@ with lib;
|
|||
enable = true;
|
||||
matchBlocks = {
|
||||
remoteHostPathWithPort = {
|
||||
remoteForwards = [
|
||||
{
|
||||
# OK:
|
||||
bind.address = "127.0.0.1";
|
||||
bind.port = 3000;
|
||||
remoteForwards = [{
|
||||
# OK:
|
||||
bind.address = "127.0.0.1";
|
||||
bind.port = 3000;
|
||||
|
||||
# Error:
|
||||
host.address = "/run/user/1000/gnupg/S.gpg-agent.extra";
|
||||
host.port = 3000;
|
||||
}
|
||||
];
|
||||
# Error:
|
||||
host.address = "/run/user/1000/gnupg/S.gpg-agent.extra";
|
||||
host.port = 3000;
|
||||
}];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
home.file.result.text =
|
||||
builtins.toJSON
|
||||
(map (a: a.message)
|
||||
(filter (a: !a.assertion)
|
||||
config.assertions));
|
||||
home.file.result.text = builtins.toJSON
|
||||
(map (a: a.message) (filter (a: !a.assertion) config.assertions));
|
||||
|
||||
nmt.script = ''
|
||||
assertFileContent home-files/result ${./forwards-paths-with-ports-error.json}
|
||||
assertFileContent home-files/result ${
|
||||
./forwards-paths-with-ports-error.json
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,13 +15,11 @@ with lib;
|
|||
xyz = {
|
||||
identityFile = "file";
|
||||
serverAliveInterval = 60;
|
||||
localForwards = [
|
||||
{
|
||||
bind.port = 8080;
|
||||
host.address = "10.0.0.1";
|
||||
host.port = 80;
|
||||
}
|
||||
];
|
||||
localForwards = [{
|
||||
bind.port = 8080;
|
||||
host.address = "10.0.0.1";
|
||||
host.port = 80;
|
||||
}];
|
||||
remoteForwards = [
|
||||
{
|
||||
bind.port = 8081;
|
||||
|
|
@ -33,25 +31,18 @@ with lib;
|
|||
host.address = "/run/user/1000/gnupg/S.gpg-agent";
|
||||
}
|
||||
];
|
||||
dynamicForwards = [
|
||||
{
|
||||
port = 2839;
|
||||
}
|
||||
];
|
||||
dynamicForwards = [{ port = 2839; }];
|
||||
};
|
||||
|
||||
"* !github.com" = {
|
||||
identityFile = ["file1" "file2"];
|
||||
identityFile = [ "file1" "file2" ];
|
||||
port = 516;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
home.file.assertions.text =
|
||||
builtins.toJSON
|
||||
(map (a: a.message)
|
||||
(filter (a: !a.assertion)
|
||||
config.assertions));
|
||||
home.file.assertions.text = builtins.toJSON
|
||||
(map (a: a.message) (filter (a: !a.assertion) config.assertions));
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.ssh/config
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue