Make device conf search relative to the current project
This commit is contained in:
parent
d1dc7fcc41
commit
0351d2098d
|
@ -1,12 +1,13 @@
|
||||||
# welcome to saturnOS config, run nixos-help if you need it .
|
# welcome to saturnOS config, run nixos-help if you need it .
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
let
|
let
|
||||||
|
PROJECT_ROOT = builtins.toString ./.;
|
||||||
unstableTarball = builtins.fetchTarball
|
unstableTarball = builtins.fetchTarball
|
||||||
"https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz";
|
"https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz";
|
||||||
homeManagerTarball = builtins.fetchTarball
|
homeManagerTarball = builtins.fetchTarball
|
||||||
"https://github.com/nix-community/home-manager/archive/master.tar.gz";
|
"https://github.com/nix-community/home-manager/archive/master.tar.gz";
|
||||||
homeManager = import "${homeManagerTarball}/nixos";
|
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;
|
unstable = import unstableTarball config.nixpkgs.config;
|
||||||
sysConf = import ./saturn/system.nix;
|
sysConf = import ./saturn/system.nix;
|
||||||
in {
|
in {
|
||||||
|
|
Loading…
Reference in New Issue