mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 10:10:45 -06:00
move pkgs out
This commit is contained in:
parent
05196cc93b
commit
eba2e31042
4 changed files with 17 additions and 21 deletions
|
@ -1,12 +1,5 @@
|
||||||
|
{ enabled, ... }:
|
||||||
{
|
{
|
||||||
self,
|
|
||||||
pkgs,
|
|
||||||
enabled,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
imports = with self.nixosModules; [ restic ];
|
|
||||||
|
|
||||||
oizys = {
|
oizys = {
|
||||||
languages = [
|
languages = [
|
||||||
"nim"
|
"nim"
|
||||||
|
@ -20,12 +13,6 @@
|
||||||
nix-ld = enabled;
|
nix-ld = enabled;
|
||||||
};
|
};
|
||||||
|
|
||||||
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
|
||||||
user = "root";
|
user = "root";
|
||||||
|
|
8
hosts/algiz/pkgs.nix
Normal file
8
hosts/algiz/pkgs.nix
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{ 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 $@"
|
||||||
|
'')
|
||||||
|
];
|
||||||
|
}
|
|
@ -1,8 +1,4 @@
|
||||||
{
|
{ config, enabled, ... }:
|
||||||
config,
|
|
||||||
enabled,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
{
|
||||||
# Use the systemd-boot EFI boot loader.
|
# Use the systemd-boot EFI boot loader.
|
||||||
boot.loader = {
|
boot.loader = {
|
||||||
|
|
|
@ -8,7 +8,6 @@ let
|
||||||
inherit (builtins) filter;
|
inherit (builtins) filter;
|
||||||
inherit (lib)
|
inherit (lib)
|
||||||
nixosSystem
|
nixosSystem
|
||||||
isNixFile
|
|
||||||
mkDefaultOizysModule
|
mkDefaultOizysModule
|
||||||
mkOizysModule
|
mkOizysModule
|
||||||
enabled
|
enabled
|
||||||
|
@ -16,12 +15,17 @@ let
|
||||||
pkgsFromSystem
|
pkgsFromSystem
|
||||||
pkgFromSystem
|
pkgFromSystem
|
||||||
overlayFrom
|
overlayFrom
|
||||||
|
isNixFile
|
||||||
;
|
;
|
||||||
inherit (lib.filesystem) listFilesRecursive;
|
inherit (lib.filesystem) listFilesRecursive;
|
||||||
|
|
||||||
pkgFrom = pkgFromSystem "x86_64-linux";
|
pkgFrom = pkgFromSystem "x86_64-linux";
|
||||||
pkgsFrom = pkgsFromSystem "x86_64-linux";
|
pkgsFrom = pkgsFromSystem "x86_64-linux";
|
||||||
|
|
||||||
|
hostPath = host: ../. + "/hosts/${host}";
|
||||||
|
# all nix files not including pkgs.nix
|
||||||
|
hostFiles = host: filter isNixFile (listFilesRecursive (hostPath host));
|
||||||
|
|
||||||
mkIso = nixosSystem {
|
mkIso = nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
|
@ -54,7 +58,8 @@ let
|
||||||
../overlays
|
../overlays
|
||||||
inputs.lix-module.nixosModules.default
|
inputs.lix-module.nixosModules.default
|
||||||
inputs.hyprland.nixosModules.default
|
inputs.hyprland.nixosModules.default
|
||||||
] ++ filter isNixFile (listFilesRecursive (../. + "/hosts/${hostName}"));
|
] ++ (hostFiles hostName);
|
||||||
|
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit
|
inherit
|
||||||
inputs
|
inputs
|
||||||
|
|
Loading…
Reference in a new issue