Modularizing the system

This commit is contained in:
2024-09-04 07:50:50 +02:00
parent f8c3653e49
commit fb35600660
8 changed files with 65 additions and 33 deletions

View File

@@ -98,6 +98,8 @@
gnumake
cmake
zoxide
xdg-desktop-portal-gtk
xdg-desktop-portal-kde
];
system.stateVersion = "24.05"; # Did you read the comment?

View File

@@ -20,7 +20,7 @@
home-manager.backupFileExtension = "backup";
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.r3ddy = import ./home.nix;
home-manager.users.r3ddy = import ./home/default.nix;
}
];
};

View File

@@ -1,32 +0,0 @@
{ config, pkgs, ... }:
{
home.username = "r3ddy";
programs.home-manager.enable = true;
programs.git = {
enable = true;
userName = "Superredstone";
userEmail = "patrickcanal3@gmail.com";
};
programs.fish = {
enable = true;
interactiveShellInit = ''
set fish_greeting # Disable greeting
alias cd z # Zoxide instead of cd
'';
};
programs.kitty = {
enable = true;
font = {
name = "JetBrainsMono Nerd Font";
size = 16;
};
theme = "Catppuccin-Mocha";
settings = {
enable_audio_bell = false;
};
};
programs.zoxide.enable = true;
programs.tmux.enable = true;
home.stateVersion = "24.11";
}

16
home/default.nix Normal file
View File

@@ -0,0 +1,16 @@
{ config, pkgs, ... }:
{
imports = [
./tmux.nix
./fish.nix
./git.nix
./kitty.nix
];
home.username = "r3ddy";
programs.home-manager.enable = true;
programs.zoxide.enable = true;
home.stateVersion = "24.11";
}

10
home/fish.nix Normal file
View File

@@ -0,0 +1,10 @@
{ config, pkgs, ... }:
{
programs.fish = {
enable = true;
interactiveShellInit = ''
set fish_greeting # Disable greeting
alias cd z # Zoxide instead of cd
'';
};
}

8
home/git.nix Normal file
View File

@@ -0,0 +1,8 @@
{ config, pkgs, ... }:
{
programs.git = {
enable = true;
userName = "Superredstone";
userEmail = "patrickcanal3@gmail.com";
};
}

14
home/kitty.nix Normal file
View File

@@ -0,0 +1,14 @@
{ pkgs, config, ... }:
{
programs.kitty = {
enable = true;
font = {
name = "JetBrainsMono Nerd Font";
size = 16;
};
theme = "Catppuccin-Mocha";
settings = {
enable_audio_bell = false;
};
};
}

14
home/tmux.nix Normal file
View File

@@ -0,0 +1,14 @@
{ pkgs, config, ... }:
{
programs.tmux = {
enable = true;
escapeTime = 0;
extraConfig = ''
set-option -g mouse on
set -g @catppuccin_flavor 'mocha'
'';
plugins = with pkgs; [
tmuxPlugins.catppuccin
];
};
}