OpenSSH from nixpkgs-small

This commit is contained in:
Casper V. Kristensen 2024-07-01 21:52:05 +02:00
parent 4d40c5edb1
commit 63f29587c7
3 changed files with 30 additions and 1 deletions

View file

@ -181,6 +181,22 @@
"type": "indirect"
}
},
"nixpkgs-small": {
"locked": {
"lastModified": 1719825363,
"narHash": "sha256-2ASBatUTQWNIiTeBZRuxROu27MyOavVnzeCv7h40QNw=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "10c832d0548e9e3a6df7eb51e68c2783212a303e",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-24.05-small",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1719690277,
@ -206,6 +222,7 @@
"nix-index-database": "nix-index-database",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs",
"nixpkgs-small": "nixpkgs-small",
"nixpkgs-unstable": "nixpkgs-unstable",
"secrets": "secrets",
"simple-nixos-mailserver": "simple-nixos-mailserver"

View file

@ -8,6 +8,9 @@
nixpkgs = {
url = "github:NixOS/nixpkgs/nixos-24.05";
};
nixpkgs-small = {
url = "github:NixOS/nixpkgs/nixos-24.05-small";
};
nixpkgs-unstable = {
url = "github:NixOS/nixpkgs/nixos-unstable";
};

View file

@ -1,4 +1,13 @@
{...}: {
{
nixpkgs-small,
pkgs,
...
}: {
# Use OpenSSH from nixpkgs-small while waiting for
# https://nixpk.gs/pr-tracker.html?pr=323761.
# See https://github.com/NixOS/nixpkgs/pull/323761.
programs.ssh.package = nixpkgs-small.legacyPackages."${pkgs.system}".openssh;
services.openssh = {
enable = true;
settings = {