nix-on-droid/nix-on-droid.nix

56 lines
1.1 KiB
Nix
Raw Normal View History

2024-09-04 06:24:46 +02:00
{ config, lib, pkgs, ... }:
{
# Simply install just the packages
environment.packages = with pkgs; [
vim # or some other editor, e.g. nano or neovim
procps
killall
diffutils
findutils
utillinux
tzdata
hostname
man
gnugrep
gnupg
gnused
gnutar
bzip2
gzip
xz
zip
unzip
zsh
ncurses5
];
# Backup etc files instead of failing to activate generation if a file already exists in /etc
environment.etcBackupExtension = ".bak";
# Read the changelog before changing this value
system.stateVersion = "24.05";
user.shell = "${pkgs.zsh}/bin/zsh";
# Set up nix for flakes
#nix.extraOptions = ''
# experimental-features = nix-command flakes
#'';
# Set your time zone
time.timeZone = "Asia/Shanghai";
# After installing home-manager channel like
# nix-channel --add https://github.com/nix-community/home-manager/archive/release-24.05.tar.gz home-manager
# nix-channel --update
# you can configure home-manager in here like
home-manager = {
useGlobalPkgs = true;
config = ./home.nix;
};
}
# vim: ft=nix