mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 00:57:22 +01:00
refactor: lib, flake.nix
This commit is contained in:
parent
a0f4384034
commit
b71bb5794a
27 changed files with 540 additions and 706 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue