This commit is contained in:
2026-04-23 13:29:08 -05:00
parent ae0732d2a2
commit 62c6498568
3 changed files with 27 additions and 17 deletions

View File

@@ -3,7 +3,7 @@
flake.nixosModules.user-nathan = { config, lib, pkgs, ... }: let
laptop = [ "laptop" ];
homebox = [ "homebox" ];
#both = laptop ++ homebox;
iso = [ "iso" ];
useWith = x: y: (lib.mkIf (builtins.any (z: z == config.networking.hostName) x) y);
in {
@@ -18,7 +18,7 @@
#hashedPasswordFile = lib.mkIf (cfg.hashedPasswordFile != null) cfg.hashedPasswordFile;
extraGroups = [ "networkmanager" "docker" "libvirtd" "wheel" ];
openssh.authorizedKeys.keys = lib.mkMerge [
(useWith homebox [
(useWith (homebox ++ iso) [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAsU69CxfQk58CvItPN426h5Alnpb60SH37wet97Vb57 nathan@laptop"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEnUhN2uHwAJF/SLRX3wlGRmfhV3zpP88JQAYB+gh8jW nathan@localhost"
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCM7ZgIu4+ntHZbzo9iQPq5pUt7AhpOnfvvI0lWDgO4CgtkPGvyFrDnW87wjAKGKYkgKeHWHIkwq2hkEDqlPD+7xxtPpwzfyo7ZS23xlP31rL14HcG21jGHgx9SO7RmGDHHylu4PwJzz/KX59hcVmpSSV4hgB/mYA9UKe6VHv39X4y3HsjmiHwNBOKXltG4V+VkxOZD6HcZ62sgkyDTaqDpE7p+q8vHPbm6dVTKC9cMjtJmjB5EesMGKcEAy3VN2tA9M0EndtaLcBKM39vDXGpBsjURYZTu7NbQnncnO7L8kVL0nT4vA/d4mCjB51dPoXIcxn1ise0TOb9G7TxMbBQQO5YMOpiB2iuZRRvB3sYoKwbO8YfSxZi0EhvLcxkF9GBFw+pWPl0p0D2fPBbW88YQfEpoAt2EWvEu/pgaMJsTHpgaIuDwPLVQmDciX4MRoi324oElGSK8yN0P8IaCHhFchuehLBWvTi34Qot0GpnxeTzmlLzImICO9Yq0I7dk2rk= nathan@rpi-3dp"
@@ -37,14 +37,14 @@
home-manager.users.nathan = with self.homeModules; lib.mkMerge [
self.homeModules.nathan
(useWith laptop nathan-aurora)
(useWith laptop nathan-firefox)
(useWith laptop nathan-rofi)
(useWith laptop nathan-hypridle)
(useWith laptop nathan-hyprland)
(useWith laptop nathan-kitty)
(useWith laptop nathan-scripts)
(useWith laptop nathan-pywal)
(useWith (laptop ++ iso) nathan-aurora)
(useWith (laptop ++ iso) nathan-firefox)
(useWith (laptop ++ iso) nathan-rofi)
(useWith (laptop ++ iso) nathan-hypridle)
(useWith (laptop ++ iso) nathan-hyprland)
(useWith (laptop ++ iso) nathan-kitty)
(useWith (laptop ++ iso) nathan-scripts)
(useWith (laptop ++ iso) nathan-pywal)
(useWith laptop {
wayland.windowManager.hyprland.extraConfig = ''