Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

Commit

Permalink
Add fily_pad_f12_1
Browse files Browse the repository at this point in the history
  • Loading branch information
DataEraserC committed Feb 22, 2024
1 parent 196b2b7 commit ce5e7ad
Show file tree
Hide file tree
Showing 16 changed files with 456 additions and 2 deletions.
14 changes: 12 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,23 @@
];
home-manager_module = import home/nix-on-droid/aarch64/pstar_1/home.nix;
};

fily_pad_f12_1_modules = {
nix-on-droid_modules = [
./hosts/nix-on-droid/aarch64/fily_pad_f12_1/nix-on-droid.nix
];
home-manager_module = import home/nix-on-droid/aarch64/fily_pad_f12_1/home.nix;
};
in {
formatter = forAllSystems (
system: nixpkgs.legacyPackages.${system}.alejandra
);

nixOnDroidConfigurations.mondrian_1 = make_nix-on-droid (aarch64-nix-on-droid_base_args // mondrian_1_modules);
nixOnDroidConfigurations.pstar_1 = make_nix-on-droid (aarch64-nix-on-droid_base_args // pstar_1_modules);
nixOnDroidConfigurations = {
mondrian_1 = make_nix-on-droid (aarch64-nix-on-droid_base_args // mondrian_1_modules);
pstar_1 = make_nix-on-droid (aarch64-nix-on-droid_base_args // pstar_1_modules);
fily_pad_f11_1 = make_nix-on-droid (aarch64-nix-on-droid_base_args // fily_pad_f11_1_modules);
};
};

nixConfig = {
Expand Down
14 changes: 14 additions & 0 deletions home/nix-on-droid/aarch64/fily_pad_f12_1/home.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
config,
lib,
pkgs,
...
}: {
imports = [
./modules
];
# Read the changelog before changing this value
home.stateVersion = "23.05";

# insert home-manager config
}
Empty file.
13 changes: 13 additions & 0 deletions home/nix-on-droid/aarch64/fily_pad_f12_1/modules/ENV_VAR.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
pkgs,
config,
...
}: {
home.sessionPath = [
"$HOME/.local/bin"
"$HOME/go/bin"
];
home.sessionVariables = {
home_sessionVariables_enable = 1;
};
}
7 changes: 7 additions & 0 deletions home/nix-on-droid/aarch64/fily_pad_f12_1/modules/browers.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{pkgs, ...}: {
programs = {
firefox = {
enable = true;
};
};
}
38 changes: 38 additions & 0 deletions home/nix-on-droid/aarch64/fily_pad_f12_1/modules/creative.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{pkgs, ...}: {
home.packages = with pkgs; [
# creative
blender # 3d modeling
# gimp # image editing, I prefer using figma in browser instead of this one
(gimp-with-plugins.override {
plugins = with gimpPlugins; [
fourier
# resynthesizer # broken since 2023-03-20
gmic
];
})
shotcut
mdp
inkscape # vector graphics
krita # digital painting
musescore # music notation
reaper # audio production
sonic-pi # music programming

# this app consumes a lot of storage, so do not install it currently
kicad-unstable # 3d printing, eletrical engineering
ngspice
#digital # A digital logic designer and circuit simulator.
logisim-evolution # Digital logic designer and simulator

freecad
];

programs = {
# live streaming
obs-studio = {
enable = true;
plugins = with pkgs; [
];
};
};
}
25 changes: 25 additions & 0 deletions home/nix-on-droid/aarch64/fily_pad_f12_1/modules/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
config,
catppuccin-urxvt,
...
} @ args: {
imports = [
./font.nix
./development.nix
./creative.nix
./menu.nix
./dewm.nix
./browers.nix
./system-tools.nix
./ENV_VAR.nix
./others.nix
# nix-on-droid common
#../../../common/modules/virtualisation.nix
../../../common/modules/x11_catppuccin.nix
../../../common/modules/nix.nix
# common
../../../../common/modules/neovim
../../../../common/modules/others.nix
../../../../common/modules/fhs.nix
];
}
105 changes: 105 additions & 0 deletions home/nix-on-droid/aarch64/fily_pad_f12_1/modules/development.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
{
pkgs,
pkgs-unstable,
...
}: let
my_python = pkgs-unstable.python311.withPackages (ps:
with ps; [
ipykernel
#jupyterlab
matplotlib
numpy
seaborn
networkx
beautifulsoup4
selenium
urllib3
pyclip
pybluez
pymysql
jieba
wordcloud
pandas-datareader
pip # use in venv "python -m venv .venv" "source .venv/bin/activate"

ipython
pandas
requests
pyquery
pyyaml

#docx2pdf
]);
in {
home.packages = with pkgs-unstable; [
#-- python
# my_python

#-- golang
go
gomodifytags
iferr # generate error handling code for go
impl # generate function implementation for go
gotools # contains tools like: godoc, goimports, etc.
gopls # go language server
delve # go debugger

#-- jdk
jdk17 # used to run some java based tools(.jar)

rsync # File Copy/Snyc
ranger # Terminal FileManager
proxychains
tmux # Background Shell process

# User-facing stuff that you really really want to have
vim # or some other editor, e.g. nano or neovim
helix # An editor with lots of functions out of box
git # Version Manager
direnv

neofetch
openssh
curl
gnumake

# Some common stuff that people expect to have
fzf
diffutils
findutils
utillinux
tzdata
hostname
gnupg
gnused
gnutar
bzip2
gzip
xz
zip
unzip
ncurses # command clear
which
htop
tree
netcat # nc
procps # command ps/pgrep and ...
lsof
time
];
programs = {
zsh = {
enable = true;
};
nushell = {
enable = true;
};
bash = {
enable = true;
enableCompletion = true;
};
fish = {
enable = true;
};
};
}
9 changes: 9 additions & 0 deletions home/nix-on-droid/aarch64/fily_pad_f12_1/modules/dewm.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
pkgs,
pkgs-unstable,
...
}: {
home.packages = with pkgs-unstable; [
xdg-utils
];
}
42 changes: 42 additions & 0 deletions home/nix-on-droid/aarch64/fily_pad_f12_1/modules/font.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
pkgs,
pkgs-unstable,
config,
...
}: {
home.packages = with pkgs-unstable; [
# ...various
# dejavu_fonts
# powerline-fonts

# icon fonts
#material-design-icons
#font-awesome

# Noto 系列字体是 Google 主导的,名字的含义是「没有豆腐」(no tofu),因为缺字时显示的方框或者方框被叫作 tofu
# Noto 系列字族名只支持英文,命名规则是 Noto + Sans 或 Serif + 文字名称。
# 其中汉字部分叫 Noto Sans/Serif CJK SC/TC/HK/JP/KR,最后一个词是地区变种。
noto-fonts # 大部分文字的常见样式,不包含汉字
noto-fonts-cjk # 汉字部分
noto-fonts-emoji # 彩色的表情符号字体
noto-fonts-extra # 提供额外的字重和宽度变种

# 思源系列字体是 Adobe 主导的。其中汉字部分被称为「思源黑体」和「思源宋体」,是由 Adobe + Google 共同开发的
source-sans # 无衬线字体,不含汉字。字族名叫 Source Sans 3 和 Source Sans Pro,以及带字重的变体,加上 Source Sans 3 VF
source-serif # 衬线字体,不含汉字。字族名叫 Source Code Pro,以及带字重的变体
source-han-sans # 思源黑体
source-han-serif # 思源宋体

sarasa-gothic
# nerdfonts
(nerdfonts.override {
fonts = [
"FiraCode"
"JetBrainsMono"
"Iosevka"
];
})
];

fonts.fontconfig.enable = true;
}
16 changes: 16 additions & 0 deletions home/nix-on-droid/aarch64/fily_pad_f12_1/modules/menu.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
pkgs,
pkgs-unstable,
...
}: {
home.packages = with pkgs-unstable; [
dmenu
#rofi
];

programs = {
rofi = {
enable = true;
};
};
}
8 changes: 8 additions & 0 deletions home/nix-on-droid/aarch64/fily_pad_f12_1/modules/others.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
pkgs,
pkgs-unstable,
...
}: {
home.packages = with pkgs-unstable; [
];
}
Loading

0 comments on commit ce5e7ad

Please sign in to comment.