fix build on linux

This commit is contained in:
Noah Masur
2022-06-19 23:54:16 -04:00
parent e22a4f3df2
commit fdfc66c7ad
6 changed files with 27 additions and 11 deletions

View File

@ -26,10 +26,15 @@
description = "Base16 color scheme";
};
};
dotfilesPath = mkOption {
dotfilesPath = let
homePath = if pkgs.stdenv.isDarwin then
"/Users/${config.user}"
else
"/home/${config.user}";
in mkOption {
type = types.path;
description = "Path of dotfiles repository.";
default = builtins.toPath "$HOME/dev/personal/dotfiles";
default = builtins.toPath "${homePath}/dev/personal/dotfiles";
};
dotfilesRepo = mkOption {
type = types.str;

View File

@ -16,7 +16,7 @@ nixpkgs.lib.nixosSystem {
gui = {
enable = true;
compositor.enable = true;
colorscheme = (import ../modules/colorscheme/gruvbox);
colorscheme = (import ../../modules/colorscheme/gruvbox);
wallpaper = "${wallpapers}/gruvbox/road.jpg";
gtk.theme = { name = "Adwaita-dark"; };
};