commit 72cc2766375cf025c719592386ca7e1e0344c525 parent 5a3e0a932d9c35f9489fb52a2c8dc0c470a31fa5 Author: MTRNord <mtrnord1@gmail.com> Date: Wed, 9 Aug 2023 19:05:14 +0200 Simplify home config Diffstat:
| A | README.md | | | 3 | +++ |
| M | flake.nix | | | 4 | ++-- |
| M | home-manager/home.nix | | | 42 | ++++++++++++++++++++++++------------------ |
3 files changed, 29 insertions(+), 20 deletions(-)
diff --git a/README.md b/README.md @@ -0,0 +1,3 @@ +# Updating + +`nix flake update --commit-lock-file` and then on each system `update` diff --git a/flake.nix b/flake.nix @@ -74,9 +74,9 @@ }; # Standalone home-manager configuration entrypoint - # Available through 'home-manager --flake .#your-username@your-hostname' + # Available through 'home-manager --flake .#your-username' homeConfigurations = { - "marcel@worker-1" = home-manager.lib.homeManagerConfiguration { + "marcel" = home-manager.lib.homeManagerConfiguration { pkgs = nixpkgs.legacyPackages.aarch64-linux; # Home-manager requires 'pkgs' instance extraSpecialArgs = { inherit inputs outputs; }; modules = [ diff --git a/home-manager/home.nix b/home-manager/home.nix @@ -51,31 +51,37 @@ # home.packages = with pkgs; [ steam ]; # Enable home-manager and git - programs.home-manager.enable = true; - programs.git = { - enable = true; - userName = "MTRNord"; - userEmail = "support@nordgedanken.dev"; - }; + programs = { + home-manager.enable = true; + k9s.enable = true; + less.enable = true; - programs.zsh = { - enable = true; - shellAliases = { - # TODO: Make this specific to the current running host instead - update = "cd /etc/nixos/nixos && git pull && sudo nixos-rebuild switch --flake .#worker-1 && home-manager switch --flake .#marcel@worker-1"; - }; - history = { - size = 10000; - path = "${config.xdg.dataHome}/zsh/history"; + git = { + enable = true; + userName = "MTRNord"; + userEmail = "support@nordgedanken.dev"; }; - oh-my-zsh = { + + zsh = { enable = true; - plugins = [ "git" "thefuck" ]; - theme = "robbyrussell"; + shellAliases = { + # TODO: Make this specific to the current running host instead + update = "cd /etc/nixos/nixos && git pull && sudo nixos-rebuild switch --flake .#worker-1 && home-manager switch --flake .#marcel"; + }; + history = { + size = 10000; + path = "${config.xdg.dataHome}/zsh/history"; + }; + oh-my-zsh = { + enable = true; + plugins = [ "git" "thefuck" ]; + theme = "robbyrussell"; + }; }; }; + # Nicely reload system units when changing configs systemd.user.startServices = "sd-switch";