Skip to content

Commit

Permalink
Testing the modules and packages
Browse files Browse the repository at this point in the history
Signed-off-by: Brian McGillion <[email protected]>
  • Loading branch information
brianmcgillion committed Oct 11, 2023
1 parent c7cc8d8 commit d216f71
Show file tree
Hide file tree
Showing 15 changed files with 88 additions and 43 deletions.
16 changes: 9 additions & 7 deletions templates/targets/aarch64/nvidia/orin-agx/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,15 @@

{
nixosConfigurations.PROJ_NAME-ghaf-debug = ghaf.nixosConfigurations.nvidia-jetson-orin-agx-debug.extendModules {
modules = [
{
#insert your additional modules here e.g.
# virtualisation.docker.enable = true;
# users.users."ghaf".extraGroups = ["docker"];
}
];
modules =
[
{
#insert your additional modules here e.g.
# virtualisation.docker.enable = true;
# users.users."ghaf".extraGroups = ["docker"];
}
]
++ (import ./modules/modules-list.nix);
};
packages.aarch64-linux.PROJ_NAME-ghaf-debug = self.nixosConfigurations.PROJ_NAME-ghaf-debug.config.system.build.${self.nixosConfigurations.PROJ_NAME-ghaf-debug.config.formatAttr};

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copyright 2022-2023 TII (SSRC) and the Ghaf contributors
# SPDX-License-Identifier: Apache-2.0
#
#
[
# Your modules.nx files go here
]
Empty file.
16 changes: 9 additions & 7 deletions templates/targets/aarch64/nvidia/orin-nx/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,15 @@

{
nixosConfigurations.PROJ_NAME-ghaf-debug = ghaf.nixosConfigurations.nvidia-jetson-orin-nx-debug.extendModules {
modules = [
{
#insert your additional modules here e.g.
# virtualisation.docker.enable = true;
# users.users."ghaf".extraGroups = ["docker"];
}
];
modules =
[
{
#insert your additional modules here e.g.
# virtualisation.docker.enable = true;
# users.users."ghaf".extraGroups = ["docker"];
}
]
++ (import ./modules/modules-list.nix);
};
packages.aarch64-linux.PROJ_NAME-ghaf-debug = self.nixosConfigurations.PROJ_NAME-ghaf-debug.config.system.build.${self.nixosConfigurations.PROJ_NAME-ghaf-debug.config.formatAttr};

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copyright 2022-2023 TII (SSRC) and the Ghaf contributors
# SPDX-License-Identifier: Apache-2.0
#
#
[
# Your modules.nx files go here
]
Empty file.
16 changes: 9 additions & 7 deletions templates/targets/aarch64/nxp/imx8/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,15 @@

{
nixosConfigurations.PROJ_NAME-ghaf-debug = ghaf.nixosConfigurations.imx8qm-mek-debug.extendModules {
modules = [
{
#insert your additional modules here e.g.
# virtualisation.docker.enable = true;
# users.users."ghaf".extraGroups = ["docker"];
}
];
modules =
[
{
#insert your additional modules here e.g.
# virtualisation.docker.enable = true;
# users.users."ghaf".extraGroups = ["docker"];
}
]
++ (import ./modules/modules-list.nix);
};
packages.aarch64-linux.PROJ_NAME-ghaf-debug = self.nixosConfigurations.PROJ_NAME-ghaf-debug.config.system.build.${self.nixosConfigurations.PROJ_NAME-ghaf-debug.config.formatAttr};
}
Expand Down
7 changes: 7 additions & 0 deletions templates/targets/aarch64/nxp/imx8/modules/modules-list.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copyright 2022-2023 TII (SSRC) and the Ghaf contributors
# SPDX-License-Identifier: Apache-2.0
#
#
[
# Your modules.nx files go here
]
Empty file.
26 changes: 14 additions & 12 deletions templates/targets/riscv64/microchip/polarfire/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,20 @@

{
nixosConfigurations.PROJ_NAME-ghaf-debug = ghaf.nixosConfigurations.microchip-icicle-kit-debug.extendModules {
modules = [
{
#insert your additional modules here e.g.
# virtualisation.docker.enable = true;
# users.users."ghaf".extraGroups = ["docker"];
}
({pkgs, ...}: {
environment.systemPackages = with pkgs; [
#Add additional system packages here
];
})
];
modules =
[
{
#insert your additional modules here e.g.
# virtualisation.docker.enable = true;
# users.users."ghaf".extraGroups = ["docker"];
}
({pkgs, ...}: {
environment.systemPackages = with pkgs; [
#Add additional system packages here
];
})
]
++ (import ./modules/modules-list.nix);
};
packages.riscv64-linux.PROJ_NAME-ghaf-debug = self.nixosConfigurations.PROJ_NAME-ghaf-debug.config.system.build.sdImage;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copyright 2022-2023 TII (SSRC) and the Ghaf contributors
# SPDX-License-Identifier: Apache-2.0
#
#
[
# Your modules.nx files go here
]
Empty file.
22 changes: 12 additions & 10 deletions templates/targets/x86_64/generic/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,19 @@

{
nixosConfigurations.PROJ_NAME-ghaf-debug = ghaf.nixosConfigurations.generic-x86_64-debug.extendModules {
modules = [
{
#insert your additional modules here e.g.
# virtualisation.docker.enable = true;
# users.users."ghaf".extraGroups = ["docker"];
modules =
[
{
#insert your additional modules here e.g.
# virtualisation.docker.enable = true;
# users.users."ghaf".extraGroups = ["docker"];

# To handle the majority of laptops we need a little something extra
# TODO:: SEE: https://github.com/NixOS/nixos-hardware/blob/master/flake.nix
# nixos-hardware.nixosModules.lenovo-thinkpad-x1-10th-gen
}
];
# To handle the majority of laptops we need a little something extra
# TODO:: SEE: https://github.com/NixOS/nixos-hardware/blob/master/flake.nix
# nixos-hardware.nixosModules.lenovo-thinkpad-x1-10th-gen
}
]
++ (import ./modules/modules-list.nix);
};
packages.x86_64-linux.PROJ_NAME-ghaf-debug = self.nixosConfigurations.PROJ_NAME-ghaf-debug.config.system.build.${self.nixosConfigurations.PROJ_NAME-ghaf-debug.config.formatAttr};
}
Expand Down
7 changes: 7 additions & 0 deletions templates/targets/x86_64/generic/modules/modules-list.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copyright 2022-2023 TII (SSRC) and the Ghaf contributors
# SPDX-License-Identifier: Apache-2.0
#
#
[
# Your modules.nx files go here
]
Empty file.

0 comments on commit d216f71

Please sign in to comment.