This commit is contained in:
John Lancaster
2026-03-11 01:00:52 -05:00
parent 69b0388dbd
commit a26814ea6a

View File

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