mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-06 02:40:14 +00:00
fix build on linux
This commit is contained in:
@ -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;
|
||||
|
@ -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"; };
|
||||
};
|
||||
|
Reference in New Issue
Block a user