1
0
mirror of https://github.com/kmein/niveum synced 2026-03-20 20:01:08 +01:00
Files
niveum/systems/moto/configuration.nix

51 lines
897 B
Nix
Raw Normal View History

2023-07-22 23:42:39 +02:00
{
config,
lib,
pkgs,
2023-07-23 23:12:25 +02:00
inputs,
2023-07-22 23:42:39 +02:00
}: let
sshPort = 8022;
in {
environment.packages = with pkgs; [
vim
openssh
curl
findutils
coreutils
2023-07-22 23:42:39 +02:00
utillinux
gnugrep
gnused
gnutar
iproute2
git
which
procps
(pkgs.writers.writeDashBin "start-ssh" ''
${pkgs.openssh}/bin/sshd -f ${pkgs.writeText "sshd_config" ''
HostKey /data/data/com.termux.nix/files/home/.ssh/ssh_host_rsa_key
Port ${toString sshPort}
''}
'')
];
2023-07-23 23:12:25 +02:00
nixPath = ["nixpkgs=${inputs.nixpkgs}"];
home-manager = {
useGlobalPkgs = true;
backupFileExtension = "hm-bak";
config = {pkgs, ...}: {
home.stateVersion = "23.05";
};
};
2023-07-23 00:31:03 +02:00
user.shell = "${pkgs.fish}/bin/fish";
2023-07-22 23:42:39 +02:00
environment.etcBackupExtension = ".bak";
system.stateVersion = "23.05";
nix.extraOptions = ''
experimental-features = nix-command flakes
'';
}