File tree Expand file tree Collapse file tree 6 files changed +13
-111
lines changed
Expand file tree Collapse file tree 6 files changed +13
-111
lines changed Original file line number Diff line number Diff line change 201201 inputs @{ flake-parts , ... } :
202202 let
203203 # Create the extended lib
204- ghafLib = import ./lib.nix { inherit inputs ; } ;
204+ ghafLib = import ./lib { inherit inputs ; } ;
205205 extendedLib = inputs . nixpkgs . lib . extend ghafLib ;
206206 in
207207 flake-parts . lib . mkFlake
Original file line number Diff line number Diff line change 44# SPDX-License-Identifier: MIT
55# FlattenTree and rakeLeaves originate from
66# https://github.com/divnix/digga
7- _ : lib : prev : {
7+ _ : lib : prev :
8+ let
9+ # Import launcher utilities
10+ launcherLib = import ./launcher.nix { } ;
11+ in
12+ {
813 /*
914 *
1015 Filters Nix packages based on the target system platform.
@@ -97,4 +102,7 @@ _: lib: prev: {
97102 } ;
98103
99104 } ;
105+
106+ # Launcher utilities
107+ inherit ( launcherLib ) rmDesktopEntries ;
100108}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1414 sysbench-fileio-test-script = pkgs . callPackage ./scripts/sysbench_fileio_test.nix { } ;
1515 nvpmodel-check = pkgs . callPackage ./scripts/nvpmodel_check.nix { } ;
1616
17- inherit ( lib ) mkEnableOption mkIf ;
18- #TODO; make sure that the lib is exported correctly and remove this cross file import
19- inherit ( import ../../lib/launcher.nix { inherit pkgs lib ; } ) rmDesktopEntries ;
17+ inherit ( lib ) mkEnableOption mkIf rmDesktopEntries ;
2018in
2119{
2220 options . ghaf . development . debug . tools = {
Original file line number Diff line number Diff line change 88} :
99let
1010 cfg = config . ghaf . development . debug . tools . gui ;
11- #TODO; make sure that the lib is exported correctly and remove this cross file import
12- inherit ( import ../../lib/launcher.nix { inherit pkgs lib ; } ) rmDesktopEntries ;
11+ inherit ( lib ) rmDesktopEntries ;
1312in
1413{
1514 options . ghaf . development . debug . tools . gui = {
Original file line number Diff line number Diff line change 44{
55 config ,
66 lib ,
7- pkgs ,
87 ...
98} :
109let
1110 configHost = config ;
1211 vmName = "gui-vm" ;
1312
14- #TODO do not import from a path like this
15- inherit ( import ../../../lib/launcher.nix { inherit pkgs lib ; } ) rmDesktopEntries ;
13+ inherit ( lib ) rmDesktopEntries ;
1614 guivmBaseConfiguration = {
1715 imports = [
1816 inputs . self . nixosModules . profiles
You can’t perform that action at this time.
0 commit comments