aboutsummaryrefslogtreecommitdiffstats
path: root/modules/home
diff options
context:
space:
mode:
Diffstat (limited to 'modules/home')
-rw-r--r--modules/home/default.nix24
-rw-r--r--modules/home/ghostty.nix5
-rw-r--r--modules/home/git.nix50
-rw-r--r--modules/home/starship.nix5
-rw-r--r--modules/home/tmux.nix5
-rw-r--r--modules/home/zsh.nix12
6 files changed, 101 insertions, 0 deletions
diff --git a/modules/home/default.nix b/modules/home/default.nix
new file mode 100644
index 0000000..1c0ae0e
--- /dev/null
+++ b/modules/home/default.nix
@@ -0,0 +1,24 @@
+{ pkgs, ... }:
+
+{
+ imports = [
+ ./git.nix
+ ./ghostty.nix
+ ./starship.nix
+ ./tmux.nix
+ ./zsh.nix
+ ];
+
+ home = {
+ username = "simenandre";
+ homeDirectory = "/Users/simenandre";
+ # Do not change this after the first installation
+ stateVersion = "24.11";
+ };
+
+ # Let home-manager manage itself
+ programs.home-manager.enable = true;
+
+ # Link neovim config (managed as a git submodule)
+ home.file.".config/nvim".source = ../../nvim/.config/nvim;
+}
diff --git a/modules/home/ghostty.nix b/modules/home/ghostty.nix
new file mode 100644
index 0000000..e854c6e
--- /dev/null
+++ b/modules/home/ghostty.nix
@@ -0,0 +1,5 @@
+{ ... }:
+
+{
+ home.file.".config/ghostty/config".source = ../../ghostty/.config/ghostty/config;
+}
diff --git a/modules/home/git.nix b/modules/home/git.nix
new file mode 100644
index 0000000..b42161e
--- /dev/null
+++ b/modules/home/git.nix
@@ -0,0 +1,50 @@
+{ ... }:
+
+{
+ programs.git = {
+ enable = true;
+ userName = "Simen A. W. Olsen";
+ userEmail = "hello@simenandre.no";
+
+ signing = {
+ key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMCyUn5BfmAnd/6xi0X1mYF/+jPOmCS0bpNUePF55gCY";
+ signByDefault = true;
+ };
+
+ extraConfig = {
+ apply.whitespace = "fix";
+ core = {
+ trustctime = false;
+ editor = "nvim";
+ excludesfile = "~/.gitignore_global";
+ };
+ color.ui = "auto";
+ "color \"branch\"" = {
+ current = "yellow reverse";
+ local = "yellow";
+ remote = "green";
+ };
+ "color \"diff\"" = {
+ meta = "yellow bold";
+ frag = "magenta bold";
+ old = "red";
+ new = "green";
+ };
+ "color \"status\"" = {
+ added = "yellow";
+ changed = "green";
+ untracked = "cyan";
+ };
+ diff.renames = "copies";
+ help.autocorrect = 1;
+ merge.log = true;
+ push.autoSetupRemote = true;
+ gpg.format = "ssh";
+ "gpg \"ssh\"".program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign";
+ github.user = "simenandre";
+ pull.rebase = true;
+ "url \"ssh://git@github.com/\"".insteadOf = "https://github.com/";
+ commit.gpgsign = true;
+ };
+ };
+}
diff --git a/modules/home/starship.nix b/modules/home/starship.nix
new file mode 100644
index 0000000..05a70f3
--- /dev/null
+++ b/modules/home/starship.nix
@@ -0,0 +1,5 @@
+{ ... }:
+
+{
+ home.file.".config/starship.toml".source = ../../starship/.config/starship.toml;
+}
diff --git a/modules/home/tmux.nix b/modules/home/tmux.nix
new file mode 100644
index 0000000..473ce5e
--- /dev/null
+++ b/modules/home/tmux.nix
@@ -0,0 +1,5 @@
+{ ... }:
+
+{
+ home.file.".tmux.conf".source = ../../tmux/.tmux.conf;
+}
diff --git a/modules/home/zsh.nix b/modules/home/zsh.nix
new file mode 100644
index 0000000..b7dc9c1
--- /dev/null
+++ b/modules/home/zsh.nix
@@ -0,0 +1,12 @@
+{ ... }:
+
+{
+ home.file = {
+ ".zshenv".source = ../../zsh/.zshenv;
+ ".hushlogin".source = ../../zsh/.hushlogin;
+ ".config/zsh/.zshrc".source = ../../zsh/.config/zsh/.zshrc;
+ ".config/zsh/aliases".source = ../../zsh/.config/zsh/aliases;
+ ".config/zsh/path".source = ../../zsh/.config/zsh/path;
+ ".config/zsh/extras".source = ../../zsh/.config/zsh/extras;
+ };
+}