flake: move packages to packages
dir
This commit is contained in:
parent
b599f7e425
commit
a3edf577dc
14 changed files with 22 additions and 21 deletions
16
flake.nix
16
flake.nix
|
@ -12,10 +12,8 @@
|
||||||
formatter.x86_64-linux = pkgs.alejandra;
|
formatter.x86_64-linux = pkgs.alejandra;
|
||||||
|
|
||||||
packages = eachSystem (
|
packages = eachSystem (
|
||||||
system: let
|
system: {
|
||||||
user = import ./modules/user {pkgs = pkgsFor.${system};};
|
inherit (import ./packages pkgsFor.${system}) helix fish;
|
||||||
in {
|
|
||||||
inherit (user) packages;
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -31,11 +29,11 @@
|
||||||
program = "${user.packages.helix}/bin/hx";
|
program = "${user.packages.helix}/bin/hx";
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
nixosModules = eachSystem (system: let
|
# nixosModules = eachSystem (system: let
|
||||||
user = import ./modules/user {pkgs = pkgsFor.${system};};
|
# user = import ./modules/user {inherit inputs;};
|
||||||
in {
|
# in {
|
||||||
user = user.module;
|
# user = user.module;
|
||||||
});
|
# });
|
||||||
};
|
};
|
||||||
inputs = {
|
inputs = {
|
||||||
# Unstable nixpkgs baby!
|
# Unstable nixpkgs baby!
|
||||||
|
|
|
@ -27,7 +27,7 @@ inputs: let
|
||||||
# This is used to pre-emptively set the hostPlatform for nixpkgs.
|
# This is used to pre-emptively set the hostPlatform for nixpkgs.
|
||||||
# Also, we set the system hostname here.
|
# Also, we set the system hostname here.
|
||||||
[
|
[
|
||||||
self.nixosModules.user
|
# self.nixosModules.user
|
||||||
]
|
]
|
||||||
(singleton {
|
(singleton {
|
||||||
networking.hostName = hostname;
|
networking.hostName = hostname;
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
{pkgs, ...}: {
|
{
|
||||||
|
self,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
environment.systemPackages = builtins.attrValues {
|
environment.systemPackages = builtins.attrValues {
|
||||||
inherit
|
inherit
|
||||||
(pkgs)
|
(pkgs)
|
||||||
|
@ -87,5 +91,6 @@
|
||||||
zip
|
zip
|
||||||
zoxide
|
zoxide
|
||||||
;
|
;
|
||||||
|
inherit (self.packages.${pkgs.stdenv.system}) helix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,13 +1,4 @@
|
||||||
{pkgs, ...}: rec {
|
{, ...}: rec {
|
||||||
packages = {
|
|
||||||
fish = pkgs.callPackage ./shell {};
|
|
||||||
helix = pkgs.callPackage ./helix {};
|
|
||||||
kakoune = pkgs.callPackage ./kakoune {};
|
|
||||||
};
|
|
||||||
shell = pkgs.mkShell {
|
|
||||||
name = "bloxx-shell";
|
|
||||||
buildInputs = [packages.fish];
|
|
||||||
};
|
|
||||||
module = {
|
module = {
|
||||||
config = {
|
config = {
|
||||||
environment.sessionVariables.EDITOR = "hx";
|
environment.sessionVariables.EDITOR = "hx";
|
||||||
|
|
7
packages/default.nix
Normal file
7
packages/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
pkgs: let
|
||||||
|
helix = pkgs.callPackage ./helix.nix {};
|
||||||
|
kakoune = null;
|
||||||
|
fish = pkgs.callPackage ./shell {};
|
||||||
|
in {
|
||||||
|
inherit helix kakoune fish;
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue