Set hostname in darwin-config, use hostname for darwin home manager config

This commit is contained in:
xenia 2024-03-19 13:10:37 +01:00
parent 02ff8573ea
commit bf8d138fca
2 changed files with 3 additions and 1 deletions

View File

@ -49,6 +49,8 @@
security.pam.enableSudoTouchIdAuth = true; security.pam.enableSudoTouchIdAuth = true;
networking.hostName = "Joe-Bidens-MacBook-Pro";
system.defaults = { system.defaults = {
NSGlobalDomain.AppleShowAllFiles = true; NSGlobalDomain.AppleShowAllFiles = true;
finder.AppleShowAllFiles = true; finder.AppleShowAllFiles = true;

View File

@ -68,7 +68,7 @@
mkNixOsGraphical = opts: import ./nixos/graphical.nix (opts // { fox-layout = rachel.keyboardLayouts.fox; }); mkNixOsGraphical = opts: import ./nixos/graphical.nix (opts // { fox-layout = rachel.keyboardLayouts.fox; });
mkNixOsNetworking = opts: import ./nixos/networking.nix opts; mkNixOsNetworking = opts: import ./nixos/networking.nix opts;
in { in {
homeConfigurations."xenia@Joe-Bidens-MacBook-Pro.local" = homeConfigurations."xenia@Joe-Bidens-MacBook-Pro" =
let let
system = "aarch64-darwin"; system = "aarch64-darwin";
pkgs = mkPkgs system; pkgs = mkPkgs system;