flakeDir
This commit is contained in:
@@ -3,7 +3,11 @@ let
|
||||
hostname = "john-pc-ubuntu";
|
||||
in
|
||||
{
|
||||
flake.modules.homeManager."${hostname}" = { pkgs, config, ... }: {
|
||||
flake.modules.homeManager."${hostname}" = { pkgs, config, ... }:
|
||||
let
|
||||
flakeDir = "${config.xdg.configHome}/home-manager/jsl-dendritic";
|
||||
in
|
||||
{
|
||||
imports = with inputs.self.modules.homeManager; [
|
||||
rebuild
|
||||
zsh
|
||||
@@ -18,8 +22,7 @@ in
|
||||
home.packages = with pkgs; [
|
||||
nixos-rebuild
|
||||
(writeShellScriptBin "test-push" ''
|
||||
FLAKE_DIR="${config.xdg.configHome}/home-manager/jsl-dendritic"
|
||||
nixos-rebuild switch --flake $FLAKE_DIR#janus --target-host root@fded:fb16:653e:25da:be24:11ff:fea0:753f
|
||||
nixos-rebuild switch --flake ${flakeDir}#janus --target-host root@fded:fb16:653e:25da:be24:11ff:fea0:753f
|
||||
'')
|
||||
];
|
||||
# TODO: Add host-specific settings here:
|
||||
@@ -31,7 +34,7 @@ in
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
nixpkgs.config.permittedInsecurePackages = [ "openssl-1.1.1w" ];
|
||||
|
||||
homeManagerFlakeDir = "${config.xdg.configHome}/home-manager/jsl-dendritic";
|
||||
homeManagerFlakeDir = flakeDir;
|
||||
docker.enable = true;
|
||||
ssh.matchSets = {
|
||||
certs = true;
|
||||
|
||||
Reference in New Issue
Block a user