refactor(flake)!: machines
-> hosts
This commit is contained in:
parent
703cd0264b
commit
a881c5d7e1
33 changed files with 52 additions and 45 deletions
38
hosts/nix-on-droid/aarch64-linux/cheetah/configuration.nix
Normal file
38
hosts/nix-on-droid/aarch64-linux/cheetah/configuration.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{ inputs, outputs, lib, pkgs, config, ... }:
|
||||
|
||||
{
|
||||
environment.packages = with pkgs; [ ];
|
||||
|
||||
# Backup etc files instead of failing to activate generation if a file already exists in /etc
|
||||
environment.etcBackupExtension = ".bak";
|
||||
|
||||
# Remove motd
|
||||
environment.motd = null;
|
||||
|
||||
# # Set $EDITOR
|
||||
# environment.variables.EDITOR = "nvim";
|
||||
|
||||
user.shell = "${pkgs.zsh}/bin/zsh";
|
||||
|
||||
# Read the changelog before changing this value
|
||||
system.stateVersion = "22.11";
|
||||
|
||||
nix.extraOptions = ''
|
||||
experimental-features = nix-command flakes recursive-nix
|
||||
keep-outputs = true
|
||||
keep-derivations = true
|
||||
'';
|
||||
|
||||
nix.package = pkgs.nixVersions.monitored.latest;
|
||||
|
||||
time.timeZone = "Europe/Sofia";
|
||||
|
||||
terminal.font =
|
||||
let
|
||||
firacode = pkgs.nerdfonts.override {
|
||||
fonts = [ "FiraCode" ];
|
||||
};
|
||||
fontPath = "share/fonts/truetype/NerdFonts/FiraCodeNerdFontMono-Regular.ttf";
|
||||
in
|
||||
"${firacode}/${fontPath}";
|
||||
}
|
131
hosts/nix-on-droid/aarch64-linux/cheetah/home.nix
Normal file
131
hosts/nix-on-droid/aarch64-linux/cheetah/home.nix
Normal file
|
@ -0,0 +1,131 @@
|
|||
{ inputs, outputs, lib, pkgs, config, ... }:
|
||||
|
||||
{
|
||||
# Home Manager needs a bit of information about you and the
|
||||
# paths it should manage.
|
||||
home = {
|
||||
username = "nix-on-droid";
|
||||
# username = "reo101";
|
||||
homeDirectory = "/data/data/com.termux.nix/files/home";
|
||||
stateVersion = "23.05";
|
||||
};
|
||||
|
||||
# Let Home Manager install and manage itself.
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
home.packages = with pkgs; [
|
||||
# neovim
|
||||
# clang
|
||||
gcc
|
||||
|
||||
openssh
|
||||
diffutils
|
||||
findutils
|
||||
utillinux
|
||||
tzdata
|
||||
hostname
|
||||
man
|
||||
ncurses
|
||||
gnugrep
|
||||
gnupg
|
||||
gnused
|
||||
gnutar
|
||||
bzip2
|
||||
gzip
|
||||
xz
|
||||
zip
|
||||
unzip
|
||||
|
||||
direnv
|
||||
nix-direnv
|
||||
|
||||
# Bling
|
||||
onefetch
|
||||
neofetch
|
||||
|
||||
# Utils
|
||||
ripgrep
|
||||
duf
|
||||
|
||||
# Passwords
|
||||
(pass.withExtensions (extensions: with extensions; [
|
||||
pass-otp
|
||||
]))
|
||||
|
||||
# Dhall
|
||||
# dhall
|
||||
# dhall-lsp-server
|
||||
|
||||
# Zig
|
||||
# zigpkgs.master
|
||||
# inputs.zls-overlay.packages.aarch64-linux.default
|
||||
|
||||
# Emacs
|
||||
# emacs
|
||||
|
||||
#
|
||||
# j
|
||||
];
|
||||
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
package = pkgs.neovim;
|
||||
# defaultEditor = true;
|
||||
|
||||
viAlias = true;
|
||||
vimAlias = true;
|
||||
vimdiffAlias = true;
|
||||
|
||||
withPython3 = false;
|
||||
withNodeJs = false;
|
||||
withRuby = false;
|
||||
|
||||
# neovimRcContent = "";
|
||||
|
||||
extraPackages = with pkgs; [
|
||||
tree-sitter
|
||||
luajitPackages.lua
|
||||
# rnix-lsp
|
||||
# sumneko-lua-language-server
|
||||
# stylua
|
||||
# texlab
|
||||
# rust-analyzer
|
||||
];
|
||||
};
|
||||
|
||||
reo101.shell = {
|
||||
enable = true;
|
||||
username = "reo101";
|
||||
hostname = "cheetah";
|
||||
atuin = true;
|
||||
direnv = true;
|
||||
zoxide = true;
|
||||
};
|
||||
|
||||
home.file = {
|
||||
".config/nvim" = {
|
||||
source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.local/src/reovim";
|
||||
};
|
||||
};
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "reo101";
|
||||
userEmail = "pavel.atanasov2001@gmail.com";
|
||||
signing = {
|
||||
signByDefault = true;
|
||||
key = "675AA7EF13964ACB";
|
||||
};
|
||||
};
|
||||
|
||||
services.gpg-agent = {
|
||||
enable = true;
|
||||
defaultCacheTtl = 86400;
|
||||
maxCacheTtl = 86400;
|
||||
pinentryPackage = pkgs.pinentry-tty;
|
||||
enableSshSupport = true;
|
||||
sshKeys = [ "CFDE97EDC2FDB2FD27020A084F1E3F40221BAFE7" ];
|
||||
};
|
||||
|
||||
home.sessionVariables."PASSWORD_STORE_DIR" = "${config.xdg.dataHome}/password-store";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue