From e719a6320df0dc345815984c3362107bb04fb9d8 Mon Sep 17 00:00:00 2001 From: larstvei Date: Sat, 23 Aug 2025 15:18:08 +0200 Subject: [PATCH] Can remove hacky way of enabling fish --- modules/macos.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/macos.nix b/modules/macos.nix index 205a3b0..f622ceb 100644 --- a/modules/macos.nix +++ b/modules/macos.nix @@ -1,17 +1,17 @@ -{ pkgs, lib, ... }: +{ pkgs, ... }: { fonts.packages = import ../home/fonts { inherit pkgs; }; - users.users."larstvei".home = "/Users/larstvei"; + users.users = { + larstvei = { + home = "/Users/larstvei"; + shell = pkgs.fish; + }; + }; programs.fish.enable = true; - system.activationScripts.postActivation.text = '' - # Set the default shell as fish for the user. MacOS doesn't do this like nixOS does - sudo chsh -s ${lib.getBin pkgs.fish}/bin/fish larstvei - ''; - networking.hostName = "larstvei-macbookpro"; system = {