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";
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 = [
./home
./norm
];
}

View file

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

View file

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

View file

@ -1,13 +1,10 @@
{inputs,...}:
let
{inputs, ...}: let
userChrome = builtins.readFile (./. + "/userChrome");
in
{
home-manager.users.joy = {
in {
programs.firefox = {
enable = true;
profiles.joy = {
userChrome = userChrome;
userChrome = userChrome;
extensions = with inputs.firefox-addons.packages."x86_64-linux"; [
ublock-origin
darkreader
@ -158,5 +155,4 @@ in
};
};
};
};
}

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,5 +1,5 @@
{pkgs, ...}: {
home-manager.users.joy.programs.zsh = {
programs.zsh = {
enable = true;
syntaxHighlighting.enable = true;
enableCompletion = true;
@ -27,6 +27,4 @@
history.size = 1000000;
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"];
time.timeZone = "Europe/Zurich";
system.stateVersion = "23.11";
programs.zsh.enable = true;
users.defaultUserShell = pkgs.zsh;
}