mirror of
https://github.com/librephoenix/nixos-config
synced 2025-07-06 06:52:13 +05:30
Untested nix-on-droid config
This commit is contained in:
parent
657762f491
commit
5439286f0d
3 changed files with 118 additions and 0 deletions
51
profiles/nix-on-droid/configuration.nix
Normal file
51
profiles/nix-on-droid/configuration.nix
Normal file
|
@ -0,0 +1,51 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Simply install just the packages
|
||||
environment.packages = with pkgs; [
|
||||
# User-facing stuff that you really really want to have
|
||||
vim # or some other editor, e.g. nano or neovim
|
||||
|
||||
# Some common stuff that people expect to have
|
||||
procps
|
||||
killall
|
||||
diffutils
|
||||
findutils
|
||||
utillinux
|
||||
tzdata
|
||||
hostname
|
||||
man
|
||||
gnugrep
|
||||
gnupg
|
||||
gnused
|
||||
gnutar
|
||||
bzip2
|
||||
gzip
|
||||
xz
|
||||
zip
|
||||
unzip
|
||||
git
|
||||
];
|
||||
|
||||
# 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 = "23.11";
|
||||
|
||||
# Set up nix for flakes
|
||||
nix.extraOptions = ''
|
||||
experimental-features = nix-command flakes
|
||||
'';
|
||||
|
||||
# Set your time zone
|
||||
#time.timeZone = "Europe/Berlin";
|
||||
|
||||
# Configure home-manager
|
||||
home-manager = {
|
||||
backupFileExtension = "hm-bak";
|
||||
useGlobalPkgs = true;
|
||||
|
||||
config = ./home.nix;
|
||||
};
|
||||
}
|
56
profiles/nix-on-droid/home.nix
Normal file
56
profiles/nix-on-droid/home.nix
Normal file
|
@ -0,0 +1,56 @@
|
|||
{ config, pkgs, userSettings, ... }:
|
||||
|
||||
{
|
||||
# Home Manager needs a bit of information about you and the paths it should
|
||||
# manage.
|
||||
home.username = userSettings.username;
|
||||
home.homeDirectory = "/data/data/com.termux.nix/files/home";
|
||||
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
imports = [
|
||||
../../user/shell/sh.nix # My zsh and bash config
|
||||
../../user/shell/cli-collection.nix # Useful CLI apps
|
||||
../../user/app/doom-emacs/doom.nix # My doom emacs config
|
||||
../../user/app/ranger/ranger.nix # My ranger file manager config
|
||||
../../user/app/git/git.nix # My git config
|
||||
../../user/style/stylix.nix # Styling and themes for my apps
|
||||
];
|
||||
|
||||
home.stateVersion = "22.11"; # Please read the comment before changing.
|
||||
|
||||
home.packages = with pkgs; [
|
||||
# Core
|
||||
zsh
|
||||
git
|
||||
];
|
||||
|
||||
xdg.enable = true;
|
||||
xdg.userDirs = {
|
||||
enable = true;
|
||||
createDirectories = true;
|
||||
music = "${config.home.homeDirectory}/Media/Music";
|
||||
videos = "${config.home.homeDirectory}/Media/Videos";
|
||||
pictures = "${config.home.homeDirectory}/Media/Pictures";
|
||||
templates = "${config.home.homeDirectory}/Templates";
|
||||
download = "${config.home.homeDirectory}/Downloads";
|
||||
documents = "${config.home.homeDirectory}/Documents";
|
||||
desktop = null;
|
||||
publicShare = null;
|
||||
extraConfig = {
|
||||
XDG_DOTFILES_DIR = "${config.home.homeDirectory}/.dotfiles";
|
||||
XDG_ARCHIVE_DIR = "${config.home.homeDirectory}/Archive";
|
||||
XDG_ORG_DIR = "${config.home.homeDirectory}/Org";
|
||||
XDG_BOOK_DIR = "${config.home.homeDirectory}/Media/Books";
|
||||
};
|
||||
};
|
||||
xdg.mime.enable = true;
|
||||
xdg.mimeApps.enable = true;
|
||||
|
||||
home.sessionVariables = {
|
||||
EDITOR = userSettings.editor;
|
||||
};
|
||||
|
||||
news.display = "silent";
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue