Replace hardcoded dir with hm paths
This commit is contained in:
parent
ef2b09fd48
commit
87550230d8
4 changed files with 28 additions and 23 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
{
|
||||
# Create userChrome.css to hide Firefox View button
|
||||
home.file.".mozilla/firefox/yanlin/chrome/userChrome.css".text = ''
|
||||
home.file."${config.home.homeDirectory}/.mozilla/firefox/yanlin/chrome/userChrome.css".text = ''
|
||||
/* Hide Firefox View button */
|
||||
#firefox-view-button {
|
||||
display: none !important;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
home.file."Library/Application Support/termscp/config.toml".text = ''
|
||||
|
|
@ -6,7 +6,7 @@
|
|||
# Generated by Nix - see modules/termscp.nix for customization
|
||||
|
||||
[user_interface]
|
||||
text_editor = "/Users/yanlin/.nix-profile/bin/nvim"
|
||||
text_editor = "${config.home.homeDirectory}/.nix-profile/bin/nvim"
|
||||
default_protocol = "SFTP"
|
||||
show_hidden_files = true
|
||||
check_for_updates = true
|
||||
|
|
@ -15,7 +15,7 @@
|
|||
notification_threshold = 536870912
|
||||
|
||||
[remote]
|
||||
ssh_config = "/Users/yanlin/.ssh/config"
|
||||
ssh_config = "${config.home.homeDirectory}/.ssh/config"
|
||||
|
||||
[remote.ssh_keys]
|
||||
'';
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
{ pkgs, ... }:
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
let
|
||||
projectsConfig = import ../config/projects.nix;
|
||||
projectLauncher = "/Users/yanlin/.config/nix/scripts/project-launcher.sh";
|
||||
projectsConfig = import ../config/projects.nix { homeDirectory = config.home.homeDirectory; };
|
||||
projectLauncher = "${config.home.homeDirectory}/.config/nix/scripts/project-launcher.sh";
|
||||
in
|
||||
{
|
||||
programs.zsh = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue