This commit is contained in:
joy 2024-10-04 22:32:42 +02:00
parent ea5e967a10
commit d559ce2f1c
17 changed files with 24 additions and 94 deletions

View file

@ -44,7 +44,7 @@
home.stateVersion = "24.05"; home.stateVersion = "24.05";
imports = [ imports = [
./home ../../modules/apps/home
]; ];
}; };

View file

@ -1,7 +0,0 @@
{
imports = [
./zsh
./git
./helix
];
}

View file

@ -1,7 +0,0 @@
{
programs.git = {
enable = true;
userEmail = "mail@joygnu.org";
userName = "joy";
};
}

View file

@ -1,14 +0,0 @@
{
programs.helix = {
enable = true;
defaultEditor = true;
settings = {
theme = "gruvbox";
keys.normal = {
space.space = "file_picker";
Z.Z = ":wq";
Z.Q = ":q!";
};
};
};
}

View file

@ -1,20 +0,0 @@
{
programs.zsh = {
enable = true;
enableCompletion = true;
syntaxHighlighting.enable = true;
historySubstringSearch.enable = true;
dotDir = ".config/zsh";
initExtra = "PROMPT='%F{green}%~%f '";
shellAliases = {
v = "hx";
ser = "ssh root@joygnu.org";
rb = "nix-on-droid switch --flake ~/nix";
ep = "hx ~/.config/nix-on-droid/nix-on-droid.nix";
};
history.size = 1000000;
history.path = ".config/zsh/history";
};
}

View file

@ -1,25 +0,0 @@
#!/bin/bash
# Function to push to all remotes
push_to_all_remotes() {
# Get a list of all remotes
remotes=$(git remote)
# Check if there are no remotes
if [ -z "$remotes" ]; then
echo "No remotes found."
exit 1
fi
# Loop through each remote and push
for remote in $remotes; do
echo "Pushing to remote '$remote'..."
git push "$remote" --all
git push "$remote" --tags
echo "Push to remote '$remote' completed."
done
}
# Execute the function
push_to_all_remotes

View file

@ -1,6 +1,12 @@
{ {inputs, ...}: {
home-manager = {
extraSpecialArgs = {inherit inputs;};
users = {
"joy" = import ./home;
};
};
imports = [ imports = [
./home
./norm ./norm
]; ];
} }

View file

@ -1,5 +1,5 @@
{lib, ...}: { {lib, ...}: {
home-manager.users.joy.programs.alacritty = { programs.alacritty = {
enable = true; enable = true;
settings = { settings = {
window = { window = {

View file

@ -1,5 +1,5 @@
{pkgs, ...}: { {pkgs, ...}: {
home-manager.users.joy.programs.vscode = { programs.vscode = {
enable = true; enable = true;
package = pkgs.vscodium; package = pkgs.vscodium;
extensions = with pkgs.vscode-extensions; [ extensions = with pkgs.vscode-extensions; [

View file

@ -1,9 +1,6 @@
{inputs,...}: {inputs, ...}: let
let
userChrome = builtins.readFile (./. + "/userChrome"); userChrome = builtins.readFile (./. + "/userChrome");
in in {
{
home-manager.users.joy = {
programs.firefox = { programs.firefox = {
enable = true; enable = true;
profiles.joy = { profiles.joy = {
@ -158,5 +155,4 @@ in
}; };
}; };
}; };
};
} }

View file

@ -1,5 +1,5 @@
{ {
home-manager.users.joy.programs.git = { programs.git = {
enable = true; enable = true;
userEmail = "mail@joygnu.org"; userEmail = "mail@joygnu.org";
userName = "joygnu"; userName = "joygnu";

View file

@ -3,7 +3,7 @@
lib, lib,
... ...
}: { }: {
home-manager.users.joy.programs.helix = { programs.helix = {
enable = true; enable = true;
defaultEditor = true; defaultEditor = true;
settings = { settings = {
@ -21,7 +21,7 @@
}; };
}; };
home-manager.users.joy.home.packages = with pkgs; [ home.packages = with pkgs; [
texlab texlab
nil nil
clang-tools clang-tools

View file

@ -1,5 +1,5 @@
{ {
home-manager.users.joy.programs.mpv = { programs.mpv = {
enable = true; enable = true;
bindings = { bindings = {
x = "add speed 0.1"; x = "add speed 0.1";

View file

@ -1,5 +1,5 @@
{ {
home-manager.users.joy.programs.newsboat = { programs.newsboat = {
enable = true; enable = true;
browser = "firefox"; browser = "firefox";
urls = [ urls = [

View file

@ -3,7 +3,7 @@
lib, lib,
... ...
}: { }: {
home-manager.users.joy.programs.rofi = { programs.rofi = {
enable = true; enable = true;
package = pkgs.rofi-wayland; package = pkgs.rofi-wayland;
theme = lib.mkForce "~/nix/modules/apps/gui/rofi/gruvbox-material.rasi"; theme = lib.mkForce "~/nix/modules/apps/gui/rofi/gruvbox-material.rasi";

View file

@ -1,5 +1,5 @@
{pkgs, ...}: { {pkgs, ...}: {
home-manager.users.joy.programs.zsh = { programs.zsh = {
enable = true; enable = true;
syntaxHighlighting.enable = true; syntaxHighlighting.enable = true;
enableCompletion = true; enableCompletion = true;
@ -27,6 +27,4 @@
history.size = 1000000; history.size = 1000000;
history.path = ".config/zsh/history"; history.path = ".config/zsh/history";
}; };
programs.zsh.enable = true;
users.defaultUserShell = pkgs.zsh;
} }

View file

@ -1,5 +1,8 @@
{pkgs,...}:
{ {
nix.settings.experimental-features = ["nix-command" "flakes"]; nix.settings.experimental-features = ["nix-command" "flakes"];
time.timeZone = "Europe/Zurich"; time.timeZone = "Europe/Zurich";
system.stateVersion = "23.11"; system.stateVersion = "23.11";
programs.zsh.enable = true;
users.defaultUserShell = pkgs.zsh;
} }