settingsfy the other hosts

This commit is contained in:
Daylin Morgan 2025-01-07 09:51:10 -06:00
parent a5e0fea1ea
commit 92df39b915
Signed by: daylin
GPG key ID: 950D13E9719334AD
13 changed files with 25 additions and 37 deletions

View file

@ -2,8 +2,7 @@
inputs, inputs,
config, config,
enabled, enabled,
enableAttrs, pkgs,
listify,
... ...
}: }:
{ {
@ -13,8 +12,13 @@
oizys = { oizys = {
rune.motd = enabled; rune.motd = enabled;
languages = "nim|node|python|nushell" |> listify; };
} // ("docker|backups|nix-ld" |> listify |> enableAttrs);
environment.systemPackages = with pkgs; [
(writeShellScriptBin "gitea" ''
ssh -p 2222 -o StrictHostKeyChecking=no git@127.0.0.1 "SSH_ORIGINAL_COMMAND=\"$SSH_ORIGINAL_COMMAND\" $0 $@"
'')
];
services.restic.backups.gdrive = { services.restic.backups.gdrive = {
# directories created by gitea and soft-serve aren't world readable # directories created by gitea and soft-serve aren't world readable

View file

@ -1,8 +0,0 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
(writeShellScriptBin "gitea" ''
ssh -p 2222 -o StrictHostKeyChecking=no git@127.0.0.1 "SSH_ORIGINAL_COMMAND=\"$SSH_ORIGINAL_COMMAND\" $0 $@"
'')
];
}

View file

@ -0,0 +1,4 @@
nim
node
python
nushell

View file

@ -0,0 +1,3 @@
docker
backups
nix-ld

View file

@ -1,10 +1,7 @@
{ enabled, ... }: { enabled, ... }:
{ {
oizys = { oizys = {
desktop = enabled;
nix-ld = enabled;
rune.motd = enabled; rune.motd = enabled;
docker = enabled;
}; };
# Enable the X11 windowing system. # Enable the X11 windowing system.
@ -12,5 +9,4 @@
displayManager.startx = enabled; displayManager.startx = enabled;
windowManager.qtile = enabled; windowManager.qtile = enabled;
}; };
} }

View file

@ -1,10 +0,0 @@
{ pkgs, ... }:
{
environment.systemPackages = (
with pkgs;
[
nvitop
sops
]
);
}

View file

@ -0,0 +1,3 @@
desktop
docker
nix-ld

View file

@ -0,0 +1,2 @@
nvitop
sops

View file

@ -1,15 +1,6 @@
{ inputs, enabled, ... }: { inputs, enabled, ... }:
{ {
imports = [ inputs.nixos-wsl.nixosModules.default ]; imports = [ inputs.nixos-wsl.nixosModules.default ];
oizys = {
nix-ld = enabled;
languages = [
"python"
"node"
];
};
wsl = enabled // { wsl = enabled // {
defaultUser = "daylin"; defaultUser = "daylin";
}; };

View file

@ -0,0 +1,2 @@
python
node

View file

@ -0,0 +1 @@
nix-ld

View file

View file

@ -166,7 +166,7 @@ let
{ {
hostName, hostName,
pkgs, pkgs,
flake ? flakeFromSystem "x86_64-linux", flake ? flakeFromSystem pkgs.system
}: }:
hostName hostName
|> pathFromHostName |> pathFromHostName
@ -174,7 +174,7 @@ let
|> tryReadLinesNoComment |> tryReadLinesNoComment
|> map ( |> map (
line: line:
if hasPrefix "flake:" line then (line |> removePrefix "flake:" |> flake.pkgs) else pkgs.${line} if hasPrefix "flake:" line then (line |> removePrefix "flake:" |> flake.pkg) else pkgs.${line}
); );
in in