Merge pull request 'Make device conf search relative to the current project' (#2) from fix-device-conf-paths into main

Reviewed-on: theotheroracle/saturnOS#2
This commit is contained in:
Bit Borealis 2023-03-29 19:16:07 -04:00
commit 7b7a320127
1 changed files with 2 additions and 1 deletions

View File

@ -1,12 +1,13 @@
# welcome to saturnOS config, run nixos-help if you need it .
{ config, pkgs, lib, ... }:
let
projectRoot = builtins.toString ./.;
unstableTarball = builtins.fetchTarball
"https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz";
homeManagerTarball = builtins.fetchTarball
"https://github.com/nix-community/home-manager/archive/master.tar.gz";
homeManager = import "${homeManagerTarball}/nixos";
deviceConf = import "/home/${sysConf.user}/.saturn/hosts/${sysConf.host}/";
deviceConf = import "${PROJECT_ROOT}/hosts/${sysConf.host}/";
unstable = import unstableTarball config.nixpkgs.config;
sysConf = import ./saturn/system.nix;
in {