From 2675e4077ee546df49d87edb80a7e97216bf8b4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20R=C3=B6ger?= Date: Sat, 28 Mar 2026 17:09:54 +0100 Subject: [PATCH] move harbor user --- flake.nix | 1 + home/jonas@harbor/configuration.nix | 41 +++++++++++++++++++++++++++++ home/jonas@harbor/default.nix | 21 +++++++++++++++ 3 files changed, 63 insertions(+) create mode 100644 home/jonas@harbor/configuration.nix create mode 100644 home/jonas@harbor/default.nix diff --git a/flake.nix b/flake.nix index 8d16a80..ddbe2ab 100644 --- a/flake.nix +++ b/flake.nix @@ -47,6 +47,7 @@ ./hosts/harbor (./home + "/jonas@comfy-station") (./home + "/jonas@monolith") + (./home + "/jonas@harbor") (import-tree ./modules) (import-tree ./templates) ]; diff --git a/home/jonas@harbor/configuration.nix b/home/jonas@harbor/configuration.nix new file mode 100644 index 0000000..fadf729 --- /dev/null +++ b/home/jonas@harbor/configuration.nix @@ -0,0 +1,41 @@ +{lib, ...}: { + # Home Manager needs a bit of information about you and the paths it should + # manage. + home.username = "jonas"; + home.homeDirectory = "/home/jonas"; + + # hive modules + hive.doom.enable = true; + hive.doom.asDefaultEditor = true; + hive.doom.withNixPkgs = true; + hive.doom.withShellPkgs = true; + + # This value determines the Home Manager release that your configuration is + # compatible with. This helps avoid breakage when a new Home Manager release + # introduces backwards incompatible changes. + # + # You should not change this value, even if you update Home Manager. If you do + # want to update the value, then make sure to first check the Home Manager + # release notes. + home.stateVersion = "24.11"; # Please read the comment before changing. + + home.sessionVariables = { + EDITOR = lib.mkDefault "vim"; + }; + + # Let Home Manager install and manage itself. + programs.home-manager.enable = true; + + # Git + programs.difftastic.enable = true; + programs.difftastic.git.enable = true; + programs.git = { + enable = true; + settings.user.name = "Jonas Röger"; + settings.user.email = "jonas.roeger@tu-dortmund.de"; + signing = { + signByDefault = true; + key = "4000EB35E1AE0F07"; + }; + }; +} diff --git a/home/jonas@harbor/default.nix b/home/jonas@harbor/default.nix new file mode 100644 index 0000000..891f0d3 --- /dev/null +++ b/home/jonas@harbor/default.nix @@ -0,0 +1,21 @@ +{ + self, + inputs, + ... +}: { + flake.homeConfigurations."jonas@harbor" = inputs.home-manager.lib.homeManagerConfiguration { + pkgs = import inputs.nixpkgs {system = "x86_64-linux";}; + modules = [ + ({...}: {nixpkgs.config.allowUnfree = true;}) + + ./configuration.nix + + inputs.sops-nix.homeManagerModules.sops + self.homeModules.ranger + self.homeModules.zsh + self.homeModules.nix-scripts + self.homeModules.doom + self.homeModules.jj + ]; + }; +}