mirror of
https://github.com/daylinmorgan/oizys.git
synced 2025-01-22 03:07:31 -06:00
settingsfy the other hosts
This commit is contained in:
parent
a5e0fea1ea
commit
92df39b915
13 changed files with 25 additions and 37 deletions
|
@ -2,8 +2,7 @@
|
|||
inputs,
|
||||
config,
|
||||
enabled,
|
||||
enableAttrs,
|
||||
listify,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
|
@ -13,8 +12,13 @@
|
|||
|
||||
oizys = {
|
||||
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 = {
|
||||
# directories created by gitea and soft-serve aren't world readable
|
||||
|
|
|
@ -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 $@"
|
||||
'')
|
||||
];
|
||||
}
|
4
hosts/algiz/settings/languages
Normal file
4
hosts/algiz/settings/languages
Normal file
|
@ -0,0 +1,4 @@
|
|||
nim
|
||||
node
|
||||
python
|
||||
nushell
|
3
hosts/algiz/settings/modules
Normal file
3
hosts/algiz/settings/modules
Normal file
|
@ -0,0 +1,3 @@
|
|||
docker
|
||||
backups
|
||||
nix-ld
|
|
@ -1,10 +1,7 @@
|
|||
{ enabled, ... }:
|
||||
{
|
||||
oizys = {
|
||||
desktop = enabled;
|
||||
nix-ld = enabled;
|
||||
rune.motd = enabled;
|
||||
docker = enabled;
|
||||
};
|
||||
|
||||
# Enable the X11 windowing system.
|
||||
|
@ -12,5 +9,4 @@
|
|||
displayManager.startx = enabled;
|
||||
windowManager.qtile = enabled;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = (
|
||||
with pkgs;
|
||||
[
|
||||
nvitop
|
||||
sops
|
||||
]
|
||||
);
|
||||
}
|
3
hosts/mannaz/settings/modules
Normal file
3
hosts/mannaz/settings/modules
Normal file
|
@ -0,0 +1,3 @@
|
|||
desktop
|
||||
docker
|
||||
nix-ld
|
2
hosts/mannaz/settings/pkgs
Normal file
2
hosts/mannaz/settings/pkgs
Normal file
|
@ -0,0 +1,2 @@
|
|||
nvitop
|
||||
sops
|
|
@ -1,15 +1,6 @@
|
|||
{ inputs, enabled, ... }:
|
||||
|
||||
{
|
||||
imports = [ inputs.nixos-wsl.nixosModules.default ];
|
||||
oizys = {
|
||||
nix-ld = enabled;
|
||||
languages = [
|
||||
|
||||
"python"
|
||||
"node"
|
||||
];
|
||||
};
|
||||
wsl = enabled // {
|
||||
defaultUser = "daylin";
|
||||
};
|
||||
|
|
2
hosts/naudiz/settings/languages
Normal file
2
hosts/naudiz/settings/languages
Normal file
|
@ -0,0 +1,2 @@
|
|||
python
|
||||
node
|
1
hosts/naudiz/settings/modules
Normal file
1
hosts/naudiz/settings/modules
Normal file
|
@ -0,0 +1 @@
|
|||
nix-ld
|
0
hosts/naudiz/settings/pkgs
Normal file
0
hosts/naudiz/settings/pkgs
Normal file
|
@ -166,7 +166,7 @@ let
|
|||
{
|
||||
hostName,
|
||||
pkgs,
|
||||
flake ? flakeFromSystem "x86_64-linux",
|
||||
flake ? flakeFromSystem pkgs.system
|
||||
}:
|
||||
hostName
|
||||
|> pathFromHostName
|
||||
|
@ -174,7 +174,7 @@ let
|
|||
|> tryReadLinesNoComment
|
||||
|> map (
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue