Skip to content

Commit

Permalink
WIP #14: get rid of homeage.
Browse files Browse the repository at this point in the history
  • Loading branch information
yipengsun committed Sep 20, 2024
1 parent 629d771 commit 36ad9e0
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 35 deletions.
21 changes: 0 additions & 21 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
homeModules = (loadAsList ./modules/home)
++
[
inputs.homeage.homeManagerModules.homeage
inputs.agenix.homeManagerModules.default
];
};

Expand Down Expand Up @@ -181,9 +181,6 @@
agenix.url = "github:ryantm/agenix";
agenix.inputs.nixpkgs.follows = "nixpkgs";

homeage.url = "github:jordanisaacs/homeage";
homeage.inputs.nixpkgs.follows = "nixpkgs";

# additional packages/modules
nur.url = "github:nix-community/NUR";
nixos-hardware.url = "github:nixos/nixos-hardware";
Expand Down
10 changes: 5 additions & 5 deletions profiles/home/dev-secrets/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ config, ... }: {
homeage.file."netrc" = {
source = ../../../secrets/netrc_syp.age;
symlinks = [ "${config.home.homeDirectory}/.netrc" ];
mode = "600";
{ config, ... }: rec {
age.secrets.netrc_syp.file = ../../../secrets/netrc_syp.age;
home.file.".netrc" = {
source = age.secrets.netrc_syp.path;
onChange = "chmod 600 ~/.netrc";
};
}
10 changes: 6 additions & 4 deletions profiles/home/wm/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,14 @@ with lib; let
}
];
in
{
rec {
# decrypt openweather API key
homeage.file."weather_api_key" = {
source = ../../../secrets/weather_api_key.age;
symlinks = [ weatherApiKeyLoc ];
age.secrets.weather_api_key_syp.file = ../../../secrets/weather_api_key.age;
home.file."weather_api_key" = {
source = age.secrets.weather_api_key_syp.path;
target = weatherApiKeyLoc;
};

xinit.requiredFiles = [ weatherApiKeyLoc ];

# sadly you need to put this line in your host setting manually:
Expand Down
2 changes: 1 addition & 1 deletion users/syp.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
};

# for decrypting files on user login
home-manager.users.syp.homeage.identityPaths = [ "~/.ssh/id_rsa" ];
home-manager.users.syp.age.identityPaths = [ "~/.ssh/id_rsa" ];
}

0 comments on commit 36ad9e0

Please sign in to comment.