-
Notifications
You must be signed in to change notification settings - Fork 0
/
nix-on-droid.nix
34 lines (27 loc) · 962 Bytes
/
nix-on-droid.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ config, lib, pkgs, ... }:
{
# Packages
environment.packages = import ./nix-on-droid/packages.nix pkgs;
# 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";
# Set up nix for flakes
nix.extraOptions = ''
experimental-features = nix-command flakes
'';
# Set your time zone
time.timeZone = "Asia/Shanghai";
# Set shell
user.shell = if builtins.elem pkgs.fish config.environment.packages
then "${pkgs.fish}/bin/fish"
else "${pkgs.bashInteractive}/bin/bash";
# Font
terminal.font = "${pkgs.nerdfonts}/share/fonts/opentype/NerdFonts/DroidSansMNerdFont-Regular.otf";
# Home manager
home-manager = {
backupFileExtension = "home-manager.bak";
useGlobalPkgs = true;
config = ./nix-on-droid/home-manager.nix;
};
}