mirror of
https://github.com/kmein/niveum
synced 2026-03-19 11:31:09 +01:00
feat(moto): set nix path
This commit is contained in:
50
systems/moto/configuration.nix
Normal file
50
systems/moto/configuration.nix
Normal file
@@ -0,0 +1,50 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
inputs,
|
||||
}: let
|
||||
sshPort = 8022;
|
||||
in {
|
||||
environment.packages = with pkgs; [
|
||||
vim
|
||||
openssh
|
||||
curl
|
||||
findutils
|
||||
coreutils
|
||||
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}
|
||||
''}
|
||||
'')
|
||||
];
|
||||
|
||||
nixPath = ["nixpkgs=${inputs.nixpkgs}"];
|
||||
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
backupFileExtension = "hm-bak";
|
||||
config = {pkgs, ...}: {
|
||||
home.stateVersion = "23.05";
|
||||
};
|
||||
};
|
||||
|
||||
user.shell = "${pkgs.fish}/bin/fish";
|
||||
|
||||
environment.etcBackupExtension = ".bak";
|
||||
|
||||
system.stateVersion = "23.05";
|
||||
|
||||
nix.extraOptions = ''
|
||||
experimental-features = nix-command flakes
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user