This commit is contained in:
2025-11-15 23:23:45 +08:00
parent 389e780660
commit e7da80bb0c
3 changed files with 6 additions and 7 deletions
+2 -2
View File
@@ -30,8 +30,8 @@
nix.package = pkgs.nix;
# TODO: Set your hostname
networking.hostName = "your-hostname";
networking.computerName = "your-hostname";
networking.hostName = "m2n1";
networking.computerName = "m2n1";
# Create /etc/zshrc that loads the nix-darwin environment
programs.zsh.enable = true;
+3 -4
View File
@@ -76,10 +76,10 @@
};
# nix-darwin configuration entrypoint
# Available through 'darwin-rebuild switch --flake .#your-hostname'
# Available through 'darwin-rebuild switch --flake .#m2n1'
darwinConfigurations = {
# FIXME replace with your hostname
your-hostname = darwin.lib.darwinSystem {
m2n1 = darwin.lib.darwinSystem {
specialArgs = {inherit inputs;};
modules = [
# > Our main darwin configuration file <
@@ -90,8 +90,7 @@
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = {inherit inputs;};
# FIXME: Replace with your username
home-manager.users.your-username = import ./home-manager/home.nix;
home-manager.users.df = import ./home-manager/home.nix;
}
];
};
+1 -1
View File
@@ -27,7 +27,7 @@
# TODO: Set your username
home = {
username = lib.mkDefault "your-username";
username = lib.mkDefault "df";
homeDirectory = lib.mkDefault (
if pkgs.stdenv.isDarwin
then "/Users/${config.home.username}"