Skip to content

Commit

Permalink
format with nixpkgs-fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerpogo authored and zardus committed Jul 24, 2024
1 parent 60f9906 commit 89dbada
Showing 1 changed file with 54 additions and 52 deletions.
106 changes: 54 additions & 52 deletions workspace/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,22 @@

outputs = { self, nixpkgs }: {
packages = {
x86_64-linux = let
pkgs = import nixpkgs {
system = "x86_64-linux";
config = {
allowUnfree = true;
x86_64-linux =
let
pkgs = import nixpkgs {
system = "x86_64-linux";
config = {
allowUnfree = true;
};
};
};

init = import ./init.nix { inherit pkgs; };
ssh-entrypoint = import ./ssh-entrypoint.nix { inherit pkgs; };
service = import ./services/service.nix { inherit pkgs; };
code-service = import ./services/code.nix { inherit pkgs; };
desktop-service = import ./services/desktop.nix { inherit pkgs; };
init = import ./init.nix { inherit pkgs; };
ssh-entrypoint = import ./ssh-entrypoint.nix { inherit pkgs; };
service = import ./services/service.nix { inherit pkgs; };
code-service = import ./services/code.nix { inherit pkgs; };
desktop-service = import ./services/desktop.nix { inherit pkgs; };

ldd-wrapper = (pkgs.writeShellScriptBin "ldd" ''
ldd-wrapper = (pkgs.writeShellScriptBin "ldd" ''
ldd=/usr/bin/ldd
for arg in "$@"; do
case "$arg" in
Expand All @@ -34,53 +35,54 @@
esac
done
exec "$ldd" "$@"
'');
'');

additional = import ./additional/additional.nix { inherit pkgs; };
additional = import ./additional/additional.nix { inherit pkgs; };

corePackages = with pkgs; [
bashInteractive
cacert
coreutils
curl
findutils
glibc
glibcLocales
gawk
gnugrep
gnused
hostname
iproute2
(lib.hiPrio ldd-wrapper)
less
man
ncurses
procps
util-linux
wget
which
corePackages = with pkgs; [
bashInteractive
cacert
coreutils
curl
findutils
glibc
glibcLocales
gawk
gnugrep
gnused
hostname
iproute2
(lib.hiPrio ldd-wrapper)
less
man
ncurses
procps
util-linux
wget
which

init
ssh-entrypoint
service
code-service
desktop-service
init
ssh-entrypoint
service
code-service
desktop-service

gdb
];
gdb
];

fullPackages = corePackages ++ additional.packages;
fullPackages = corePackages ++ additional.packages;

buildDojoEnv = name: paths: pkgs.buildEnv {
name = "dojo-workspace-${name}";
inherit paths;
};
buildDojoEnv = name: paths: pkgs.buildEnv {
name = "dojo-workspace-${name}";
inherit paths;
};

in {
default = buildDojoEnv "core" corePackages;
core = buildDojoEnv "core" corePackages;
full = buildDojoEnv "full" fullPackages;
};
in
{
default = buildDojoEnv "core" corePackages;
core = buildDojoEnv "core" corePackages;
full = buildDojoEnv "full" fullPackages;
};
};

defaultPackage.x86_64-linux = self.packages.x86_64-linux;
Expand Down

0 comments on commit 89dbada

Please sign in to comment.