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

72 lines
1.2 KiB
Nix
Raw Normal View History

2023-07-22 23:42:39 +02:00
{
pkgs,
2023-07-24 06:29:51 +00:00
niveumPackages,
2023-07-23 23:12:25 +02:00
inputs,
2023-07-24 06:29:51 +00:00
...
2023-07-22 23:42:39 +02:00
}: let
sshPort = 8022;
in {
environment.packages = with pkgs; [
2023-07-24 06:29:51 +00:00
nil
bzip2
coreutils
2023-07-22 23:42:39 +02:00
curl
2023-07-24 06:29:51 +00:00
diffutils
2023-07-22 23:42:39 +02:00
findutils
2023-07-24 06:29:51 +00:00
git
2023-07-22 23:42:39 +02:00
gnugrep
2023-07-24 06:29:51 +00:00
gnupg
2023-07-22 23:42:39 +02:00
gnused
gnutar
2023-07-24 06:29:51 +00:00
gzip
hostname
2023-07-22 23:42:39 +02:00
iproute2
2023-07-24 06:29:51 +00:00
man
openssh
2023-07-22 23:42:39 +02:00
procps
2023-07-24 06:29:51 +00:00
tzdata
unzip
utillinux
vim
which
xz
zip
hledger
hledger-ui
niveumPackages.vim
gitAndTools.gh
ripgrep
2023-07-22 23:42:39 +02:00
(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-24 06:29:51 +00:00
nix.nixPath = ["nixpkgs=${inputs.nixpkgs}"];
2023-07-23 23:12:25 +02:00
home-manager = {
useGlobalPkgs = true;
backupFileExtension = "hm-bak";
config = {pkgs, ...}: {
home.stateVersion = "23.05";
2023-07-24 06:29:51 +00:00
programs.tmux.enable = true;
};
};
2023-07-24 06:29:51 +00:00
environment.sessionVariables = {
LEDGER_FILE = "/data/data/com.termux.nix/files/home/src/ledger/privat.journal";
};
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
'';
}