Compare commits

...

3 Commits

Author SHA1 Message Date
madmin 9c49269330 fix(map relativeToRoot): delete old lib function 2024-07-09 10:00:35 +02:00
madmin 9a18d36bf5 build(deps): bump nixpkgs to 24.05 2024-07-09 09:58:02 +02:00
madmin efed5f9fda fix(different mapping method) mapping as flake with method 2024-07-09 09:52:12 +02:00
4 changed files with 3 additions and 5 deletions

View File

@ -7,7 +7,7 @@
inputs = { inputs = {
# ============= Official NixOS and HM Package Sources ============= # # ============= Official NixOS and HM Package Sources ============= #
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11"; nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; # also see 'unstable-packages' overlay at 'overlays/default.nix" nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; # also see 'unstable-packages' overlay at 'overlays/default.nix"
hardware.url = "github:nixos/nixos-hardware"; hardware.url = "github:nixos/nixos-hardware";

View File

@ -1,7 +1,5 @@
{ lib, ... }: { lib, ... }:
{ {
# use path relative to the root of the project
relativeToRoot = lib.path.append ../.;
scanPaths = path: scanPaths = path:
builtins.map builtins.map
(f: (path + "/${f}")) (f: (path + "/${f}"))

View File

@ -14,7 +14,7 @@ let
}; };
# Import this user's personal/home configurations # Import this user's personal/home configurations
home-manager.users.${configVars.username} = import (configLib.relativeToRoot "home/${configVars.username}/${config.networking.hostName}.nix"); home-manager.users.${configVars.username} = import ("${self}/home/${configVars.username}/${config.networking.hostName}.nix");
}; };
in in
{ {

View File

@ -29,7 +29,7 @@
}; };
} }
] ]
++ (map configLib.relativeToRoot [ ++ (map (x: "${self}/" + x) [
# = Required Configs #################### # = Required Configs ####################
"systems/common/core" "systems/common/core"