Skip to content

Commit 609376e

Browse files
committed
feat: starting Termux Project based on Kaku Repository
1 parent f0d75e3 commit 609376e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1793
-256
lines changed

flake.lock

+370-20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

+36-11
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,53 @@
11
{
2-
3-
description = "Basic example of Nix-on-Droid system config.";
2+
description = "LinuDev Mobile Config Flakes";
43

54
inputs = {
6-
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
5+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
76

8-
home-manager = {
9-
url = "github:nix-community/home-manager/release-23.11";
7+
agenix = {
8+
url = "github:ryantm/agenix";
109
inputs.nixpkgs.follows = "nixpkgs";
10+
inputs.home-manager.follows = "hm";
1111
};
12-
12+
13+
fenix.url = "github:nix-community/fenix/monthly";
14+
15+
hm = {
16+
url = "github:nix-community/home-manager";
17+
inputs.nixpkgs.follows = "nixpkgs";
18+
};
19+
20+
nix-index-db = {
21+
url = "github:Mic92/nix-index-database";
22+
inputs.nixpkgs.follows = "nixpkgs";
23+
};
24+
1325
nix-on-droid = {
1426
url = "github:nix-community/nix-on-droid/release-23.11";
1527
inputs.nixpkgs.follows = "nixpkgs";
16-
inputs.home-manager.follows = "home-manager";
28+
inputs.home-manager.follows = "hm";
1729
};
1830

31+
sss = {
32+
url = "github:SergioRibera/sss/";
33+
inputs.nixpkgs.follows = "nixpkgs";
34+
};
1935
};
2036

21-
outputs = { self, nixpkgs, home-manager, nix-on-droid }: {
22-
37+
outputs = {
38+
agenix,
39+
fenix,
40+
hm,
41+
nix-index-db,
42+
nix-on-droid,
43+
nixpkgs,
44+
self,
45+
sss,
46+
}: {
2347
nixOnDroidConfigurations.default = nix-on-droid.lib.nixOnDroidConfiguration {
24-
modules = [ ./nix-on-droid.nix ];
48+
modules = [
49+
./hosts
50+
];
2551
};
26-
2752
};
2853
}

home/aesthetic/file.nix

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
config: {
2+
storage = {
3+
enable = true;
4+
source = config.lib.file.mkOutOfStoreSymlink "/storage/emulated/0/";
5+
target = "storage";
6+
};
7+
}

home/aesthetic/language.nix

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
base = "es_AR.UTF-8";
3+
}

home/aesthetic/terminal/default.nix

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{config, ...}: let
2+
conf = config.xdg.configHome;
3+
cache = config.xdg.cacheHome;
4+
in {
5+
imports = [
6+
./editors/helix
7+
./programs
8+
./shell/starship.nix
9+
./shell/zsh.nix
10+
11+
./services/gpg-agent.nix
12+
];
13+
14+
home.sessionVariables = {
15+
# clean up ~
16+
LESSHISTFILE = "${cache}/less/history";
17+
LESSKEY = "${conf}/less/lesskey";
18+
19+
EDITOR = "hx";
20+
DIRENV_LOG_FORMAT = "";
21+
22+
# auto-run programs using nix-index-database
23+
NIX_AUTO_RUN = "1";
24+
};
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
{
2+
pkgs,
3+
...
4+
}: {
5+
imports = [./languages.nix];
6+
7+
programs.helix = {
8+
enable = true;
9+
package = pkgs.helix.overrideAttrs (self: {
10+
makeWrapperArgs = with pkgs;
11+
self.makeWrapperArgs
12+
or []
13+
++ [
14+
"--suffix"
15+
"PATH"
16+
":"
17+
(lib.makeBinPath [
18+
biome
19+
emmet-ls
20+
marksman
21+
nil
22+
nodePackages.volar
23+
nodePackages.vscode-css-languageserver-bin
24+
nodePackages.vscode-langservers-extracted
25+
nodePackages.typescript-language-server
26+
nodePackages."@astrojs/language-server"
27+
typescript
28+
])
29+
];
30+
});
31+
32+
themes = {
33+
everblush_transparent = {
34+
"inherits" = "everblush";
35+
"ui.popup" = {
36+
fg = "white";
37+
bg = "black";
38+
};
39+
"ui.statusline" = {fg = "green";};
40+
"ui.statusline.inactive" = {fg = "cursorline";};
41+
"ui.statusline.normal" = {fg = "green";};
42+
"ui.cursorline.primary" = {bg = "#1a1a1a";};
43+
"ui.virtual.inlay-hint" = {
44+
fg = "black";
45+
modifiers = ["italic"];
46+
};
47+
"ui.background" = "{}";
48+
palette = {
49+
green = "#A9B665";
50+
yellow = "#D8A657";
51+
red = "#EA6962";
52+
blue = "#7DAEA3";
53+
magenta = "#D3869B";
54+
cyan = "#89B482";
55+
white = "#D4BE98";
56+
};
57+
};
58+
};
59+
60+
settings = {
61+
theme = "everblush_transparent";
62+
editor = {
63+
color-modes = true;
64+
cursorline = true;
65+
cursor-shape = {
66+
insert = "bar";
67+
normal = "block";
68+
select = "underline";
69+
};
70+
bufferline = "always";
71+
true-color = true;
72+
soft-wrap.enable = true;
73+
indent-guides = {
74+
render = true;
75+
rainbow-option = "dim";
76+
};
77+
lsp = {
78+
display-messages = true;
79+
display-inlay-hints = true;
80+
};
81+
gutters = ["diagnostics" "line-numbers" "spacer" "diff"];
82+
statusline = {
83+
left = ["mode" "version-control"];
84+
center = ["spinner" "file-base-name"];
85+
right = ["diagnostics" "file-encoding" "position" "position-percentage" "total-line-numbers"];
86+
mode = {
87+
normal = "NORMAL";
88+
insert = "INSERT";
89+
select = "SELECT";
90+
};
91+
};
92+
whitespace.characters = {
93+
space = "·";
94+
nbsp = "⍽";
95+
tab = "→";
96+
newline = "⤶";
97+
};
98+
};
99+
100+
keys.insert = {
101+
C-h = "move_char_left";
102+
C-j = "move_line_down";
103+
C-k = "move_line_up";
104+
C-l = "move_char_right";
105+
C-e = "goto_line_end";
106+
C-b = "goto_line_start";
107+
};
108+
109+
keys.normal = {
110+
A-j = ["extend_to_line_bounds" "delete_selection" "paste_after"];
111+
A-k = ["extend_to_line_bounds" "delete_selection" "move_line_up" "paste_before"];
112+
A-h = ["delete_selection" "move_char_left" "paste_before"];
113+
A-l = ["delete_selection" "move_char_right" "paste_after"];
114+
115+
C-h = ["jump_view_left"];
116+
C-j = ["jump_view_down"];
117+
C-k = ["jump_view_up"];
118+
C-l = ["jump_view_right"];
119+
120+
tab = ["goto_next_buffer"];
121+
S-tab = ["goto_previous_buffer"];
122+
123+
space = {x = ":buffer-close";};
124+
125+
space.u = {
126+
f = ":format"; # format using LSP formatter
127+
w = ":set whitespace.render all";
128+
W = ":set whitespace.render none";
129+
};
130+
};
131+
};
132+
};
133+
}

0 commit comments

Comments
 (0)