move haze home-manager config to shared modules

This commit is contained in:
2025-02-14 19:34:14 +01:00
parent 011bd84e6b
commit 62987add4b
8 changed files with 149 additions and 37 deletions

37
home/cli.nix Normal file
View File

@@ -0,0 +1,37 @@
{ config, pkgs, ... }:
{
home.packages = with pkgs; [
difftastic
doggo
duf
eza
fd
ripgrep
tealdeer
tree
vivid
zoxide
];
programs.zoxide.enable = true;
programs.starship.enable = true;
programs.atuin.enable = true;
programs.bat.enable = true;
programs.zsh = {
enable = true;
syntaxHighlighting.enable = true;
shellAliases = {
ls = "eza";
ll = "ls -lh";
lsa = "ls -A";
h = "hx";
g = "git";
cd = "z";
".." = "cd ..";
"..." = "cd ../..";
};
};
xdg.configFile."git".source = "${config.dotfiles.path}/.config/git";
}

16
home/common.nix Normal file
View File

@@ -0,0 +1,16 @@
{
home.username = "rpqt";
home.homeDirectory = "/home/rpqt";
# 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";
# Let Home Manager install and manage itself
programs.home-manager.enable = true;
}

36
home/desktop/default.nix Normal file
View File

@@ -0,0 +1,36 @@
{ config, pkgs, ... }:
{
imports = [
./pass.nix
];
home.packages = [
pkgs.nerd-fonts.jetbrains-mono
pkgs.alacritty
pkgs.tofi
pkgs.i3status-rust
pkgs.wlsunset
pkgs.discord
pkgs.seahorse
];
fonts.fontconfig.enable = true;
programs.alacritty.enable = true;
xdg.configFile."alacritty".source = "${config.dotfiles.path}/.config/alacritty";
xdg.configFile = {
"sway".source = "${config.dotfiles.path}/.config/sway";
"i3status-rust".source = "${config.dotfiles.path}/.config/i3status-rust";
"tofi/config".source = "${config.dotfiles.path}/.config/tofi/config";
};
home.pointerCursor = {
gtk.enable = true;
package = pkgs.capitaine-cursors;
name = "capitaine-cursors-4";
};
}

14
home/desktop/pass.nix Normal file
View File

@@ -0,0 +1,14 @@
{ pkgs, ... }:
{
home.packages = [
pkgs.pass
pkgs.gnupg
pkgs.pinentry-gnome3
];
programs.gpg.enable = true;
services.gpg-agent = {
enable = true;
pinentryPackage = pkgs.pinentry-gnome3;
};
}

13
home/dev.nix Normal file
View File

@@ -0,0 +1,13 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
devenv
direnv
radicle-node
typescript-language-server
nil # Nix language server
nixfmt-rfc-style
];
programs.direnv.enable = true;
}

14
home/dotfiles.nix Normal file
View File

@@ -0,0 +1,14 @@
{ config, lib, ... }:
{
options = {
dotfiles = {
path = lib.mkOption {
type = lib.types.path;
apply = toString;
default = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/rep/dotfiles";
example = "${config.home.homeDirectory}/.dotfiles";
description = "Location of the dotfiles working copy";
};
};
};
}

12
home/helix.nix Normal file
View File

@@ -0,0 +1,12 @@
{ config, pkgs, ... }:
{
home.packages = [ pkgs.helix ];
programs.helix = {
enable = true;
defaultEditor = true;
};
xdg.configFile."helix".source = "${config.dotfiles.path}/.config/helix";
}