This commit is contained in:
EdenQwQ 2025-03-01 22:35:08 +08:00
commit 96895ec3aa
100 changed files with 6349 additions and 0 deletions

24
os/programs/basic.nix Normal file
View file

@ -0,0 +1,24 @@
{
programs = {
fish.enable = true;
adb.enable = true;
light.enable = true;
wshowkeys.enable = true;
nix-ld.enable = true;
virt-manager.enable = true;
git = {
enable = true;
config = {
http = {
proxy = "http://127.0.0.1:7890";
};
https = {
proxy = "http://127.0.0.1:7890";
};
safe = {
directory = "*";
};
};
};
};
}

8
os/programs/default.nix Normal file
View file

@ -0,0 +1,8 @@
{
imports = [
./basic.nix
./doas.nix
./niri.nix
./ollama.nix
];
}

16
os/programs/doas.nix Normal file
View file

@ -0,0 +1,16 @@
{ user, ... }:
{
security = {
doas = {
enable = true;
extraRules = [
{
users = [ user ];
noPass = true;
keepEnv = true;
}
];
};
sudo.enable = true;
};
}

7
os/programs/niri.nix Normal file
View file

@ -0,0 +1,7 @@
{ pkgs, ... }:
{
programs.niri = {
enable = true;
package = pkgs.niri-unstable;
};
}

8
os/programs/ollama.nix Normal file
View file

@ -0,0 +1,8 @@
{
services.ollama = {
enable = true;
};
services.nextjs-ollama-llm-ui = {
enable = true;
};
}