mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 19:46:07 +01:00
Set writable bit for default config
This commit is contained in:
parent
2caabff900
commit
8df2d1d55c
5 changed files with 5 additions and 4 deletions
|
|
@ -39,7 +39,8 @@ writeText "login-inner" ''
|
|||
|
||||
echo "Copy default nix-on-droid config..."
|
||||
${coreutils}/bin/mkdir --parents $HOME/.config/nixpkgs
|
||||
${coreutils}/bin/cp /etc/nix-on-droid.nix.default $HOME/.config/nixpkgs/nix-on-droid.nix
|
||||
${coreutils}/bin/cp ${./nix-on-droid.nix.default} $HOME/.config/nixpkgs/nix-on-droid.nix
|
||||
${coreutils}/bin/chmod u+w $HOME/.config/nixpkgs/nix-on-droid.nix
|
||||
|
||||
echo "Installing first nix-on-droid generation..."
|
||||
${nix}/bin/nix build --no-link --file "<nix-on-droid>" nix-on-droid
|
||||
|
|
|
|||
44
modules/environment/login/nix-on-droid.nix.default
Normal file
44
modules/environment/login/nix-on-droid.nix.default
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{ 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
|
||||
#diffutils
|
||||
#findutils
|
||||
#utillinux
|
||||
#tzdata
|
||||
#hostname
|
||||
#man
|
||||
#gnugrep
|
||||
#gnupg
|
||||
#gnused
|
||||
#gnutar
|
||||
#bzip2
|
||||
#gzip
|
||||
#xz
|
||||
#zip
|
||||
#unzip
|
||||
];
|
||||
|
||||
# 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 = "19.09";
|
||||
|
||||
# After installing home-manager channel like
|
||||
# nix-channel --add https://github.com/rycee/home-manager/archive/master.tar.gz home-manager
|
||||
# nix-channel --update
|
||||
# you can configure home-manager in here like
|
||||
#home-manager.config =
|
||||
# { pkgs, ... }:
|
||||
# {
|
||||
# # insert home-manager config
|
||||
# };
|
||||
}
|
||||
|
||||
# vim: ft=nix
|
||||
Loading…
Add table
Add a link
Reference in a new issue