mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
69 lines
2.4 KiB
Nix
69 lines
2.4 KiB
Nix
{
|
|
inputs.nixpkgs.url = "nixpkgs/nixos-21.05";
|
|
inputs.unstable.url = "nixpkgs/nixos-unstable";
|
|
inputs.impermanence.url = "github:nix-community/impermanence";
|
|
|
|
outputs = { self, nixpkgs, impermanence, ... }@inputs:
|
|
{
|
|
nixosModules = {
|
|
inherit (impermanence.nixosModules) impermanence;
|
|
|
|
baseline = import ./modules/baseline.nix;
|
|
cli = import ./modules/cli.nix;
|
|
gnome = import ./modules/gnome.nix;
|
|
gnome-monitor-settings-tweak = import ./modules/gnome-monitor-settings-tweak;
|
|
mouse-dpi = import ./modules/mouse-dpi.nix;
|
|
phpipam = import ./modules/phpipam.nix;
|
|
pipewire = import ./modules/pipewire.nix;
|
|
plasma = import ./modules/plasma.nix;
|
|
profiles = import ./modules/profiles.nix;
|
|
scansnap_s1300 = import ./modules/scansnap_s1300.nix;
|
|
scroll-boost = import ./modules/scroll-boost;
|
|
security-tools = import ./modules/security-tools.nix;
|
|
status-on-console = import ./modules/status-on-console.nix;
|
|
sway = import ./modules/sway.nix;
|
|
};
|
|
|
|
nixosModule = { ... }: { imports = builtins.attrValues self.nixosModules; };
|
|
|
|
nixosConfigurations = self.lib.getHosts inputs ./hosts;
|
|
|
|
lib = {
|
|
getHosts = import lib/hosts.nix;
|
|
forAllSystems = f: builtins.listToAttrs (map
|
|
(name: { inherit name; value = f name; })
|
|
[ "aarch64-linux" "i686-linux" "x86_64-linux" ]
|
|
);
|
|
};
|
|
|
|
packages = self.lib.forAllSystems (system:
|
|
with nixpkgs.legacyPackages.${system};
|
|
{
|
|
commander-x16 = callPackage ./pkgs/commander-x16 { };
|
|
gef = callPackage ./pkgs/gef { };
|
|
weevely = callPackage ./pkgs/weevely { };
|
|
}
|
|
// (if system != "x86_64-linux" then { } else
|
|
{
|
|
binaryninja = callPackage ./pkgs/binary-ninja-personal { };
|
|
packettracer = callPackage ./pkgs/packettracer { };
|
|
})
|
|
);
|
|
|
|
apps = self.lib.forAllSystems (system:
|
|
with nixpkgs.legacyPackages.${system};
|
|
let
|
|
binScript = x: writeShellScriptBin "script" "exec ${x}";
|
|
jupy = python3.withPackages (p: with p; [ jupyterlab ipython ]);
|
|
in
|
|
{
|
|
luks-mirror = binScript ./misc/luks-mirror.sh;
|
|
luks-single = binScript ./misc/luks-single.sh;
|
|
|
|
jupyterlab = writeShellScriptBin "jupyterlab" ''
|
|
exec ${jupy}/bin/python -m jupyterlab "$@"
|
|
'';
|
|
}
|
|
);
|
|
};
|
|
}
|