Skip to content

Commit

Permalink
fix ssh on flake-enabled system
Browse files Browse the repository at this point in the history
this is work-around for nix bug.
Same as in NixOS/nixpkgs#132818
  • Loading branch information
Mic92 committed Aug 30, 2021
1 parent 97186fc commit ff6ea50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base.nix
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ with lib;
nixbld:x:30000:nixbld1,nixbld10,nixbld2,nixbld3,nixbld4,nixbld5,nixbld6,nixbld7,nixbld8,nixbld9
'';
"ssh/ssh_host_rsa_key.pub".source = ./ssh/ssh_host_rsa_key.pub;
"ssh/ssh_host_rsa_key" = { mode = "0600"; source = ./ssh/ssh_host_rsa_key; };
"ssh/ssh_host_rsa_key" = { source = pkgs.writeText "ssh_host_rsa" (builtins.readFile ./ssh/ssh_host_rsa_key); mode = "0600"; };
"ssh/ssh_host_ed25519_key.pub".source = ./ssh/ssh_host_ed25519_key.pub;
"ssh/ssh_host_ed25519_key" = { mode = "0600"; source = ./ssh/ssh_host_ed25519_key; };
"ssh/ssh_host_ed25519_key" = { source = pkgs.writeText "ssh_host_ed25519" (builtins.readFile ./ssh/ssh_host_ed25519_key); mode = "0600";};
};
boot.kernelParams = [ "systemConfig=${config.system.build.toplevel}" ];
boot.kernelPackages = if pkgs.system == "armv7l-linux" then pkgs.linuxPackages_rpi1 else pkgs.linuxPackages;
Expand Down

0 comments on commit ff6ea50

Please sign in to comment.