feat: add nix-on-droid support and basic config.
This commit is contained in:
parent
24dac58b1b
commit
eb6bc02019
4 changed files with 419 additions and 5 deletions
54
hosts/andronix/configuration.nix
Normal file
54
hosts/andronix/configuration.nix
Normal file
|
@ -0,0 +1,54 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
# Simply install just the packages
|
||||
environment.packages = with pkgs; [
|
||||
ncurses
|
||||
busybox
|
||||
man
|
||||
openssh
|
||||
rsync
|
||||
];
|
||||
|
||||
# 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
|
||||
'';
|
||||
|
||||
# enable some android integrations.
|
||||
android-integration.termux-setup-storage.enable = true;
|
||||
|
||||
# Set your time zone
|
||||
time.timeZone = "Europe/Zagreb";
|
||||
|
||||
# change to zsh
|
||||
user.shell = "${pkgs.zsh}/bin/zsh";
|
||||
|
||||
# Setup font
|
||||
terminal.font = "${pkgs.nerd-fonts.commit-mono}/share/fonts/opentype/NerdFonts/CommitMono/CommitMonoNerdFont-Regular.otf";
|
||||
|
||||
# Configure home-manager
|
||||
home-manager = {
|
||||
config = ./home.nix;
|
||||
backupFileExtension = "hm-bak";
|
||||
useGlobalPkgs = true;
|
||||
extraSpecialArgs = {inherit inputs;};
|
||||
};
|
||||
|
||||
# Configure stylix
|
||||
stylix = {
|
||||
enable = true;
|
||||
autoEnable = true;
|
||||
base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-medium.yaml";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue