Skip to content

Commit

Permalink
fix(gtk): invalid path to project dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Wittano committed Aug 31, 2024
1 parent 3fe17b2 commit 4349b32
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion modules/desktop/submodules/gtk.nix
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ in
"file:///home/wittano/Pictures"
"file:///home/wittano/Videos"
"file:///home/wittano/Downloads"
"file:///home/wittano/projects/own Projects"
"file:///home/wittano/.config Config files"
"file://${config.environment.variables.NIX_DOTFILES} Nix configuration"
"file://${config.environment.variables.NIX_DOTFILES}/dotfiles Dotfiles"
Expand Down
7 changes: 5 additions & 2 deletions modules/dev/ide.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ with lib.my;
let
cfg = config.modules.dev.lang;

homeDir = config.home-manager.users.wittano.home.homeDirectory;
addProjectDirField = attr: builtins.mapAttrs (n: v: v // { projectDir = "${homeDir}/projects/${n}"; }) attr;
projectDir = "${config.home-manager.users.wittano.home.homeDirectory}/projects";
addProjectDirField = attr: builtins.mapAttrs (n: v: v // { projectDir = "${projectDir}/${n}"; }) attr;

avaiableIde =
let
Expand Down Expand Up @@ -121,6 +121,9 @@ in
modules.shell.fish.completions = cmdCompletions;

home-manager.users.wittano = {
gtk.gtk3.bookmarks = [
"file://${projectDir} Projects"
];
home = {
packages = installedIDEs;
activation.createProjectsDir =
Expand Down

0 comments on commit 4349b32

Please sign in to comment.