refactor: lib, flake.nix

This commit is contained in:
Leon Schwarzäugl 2024-12-28 23:59:43 +01:00
parent a0f4384034
commit b71bb5794a
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
27 changed files with 540 additions and 706 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ lib, pkgs, ... }:
let
packageNames = [
"pass-fuzzel"
@ -16,7 +16,7 @@ let
"update-checker"
"github-notifications"
"screenshare"
"bootstrap"
"swarsel-bootstrap"
"swarsel-rebuild"
"swarsel-install"
"swarsel-postinstall"
@ -25,11 +25,5 @@ let
"vershell"
"eontimer"
];
mkPackages = names: builtins.listToAttrs (map
(name: {
inherit name;
value = pkgs.callPackage ./${name} { };
})
names);
in
mkPackages packageNames
lib.swarselsystems.mkPackages packageNames pkgs

View file

@ -1,7 +1,7 @@
{ writeShellApplication, openssh }:
writeShellApplication {
name = "bootstrap";
name = "swarsel-bootstrap";
runtimeInputs = [ openssh ];
text = builtins.readFile ../../scripts/bootstrap.sh;
text = builtins.readFile ../../scripts/swarsel-bootstrap.sh;
}