mirror of
https://github.com/Superredstone/nixos.git
synced 2026-03-07 20:28:08 +01:00
Modularizing the system
This commit is contained in:
@@ -98,6 +98,8 @@
|
||||
gnumake
|
||||
cmake
|
||||
zoxide
|
||||
xdg-desktop-portal-gtk
|
||||
xdg-desktop-portal-kde
|
||||
];
|
||||
|
||||
system.stateVersion = "24.05"; # Did you read the comment?
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
32
home.nix
32
home.nix
@@ -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
16
home/default.nix
Normal 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
10
home/fish.nix
Normal 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
8
home/git.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "Superredstone";
|
||||
userEmail = "patrickcanal3@gmail.com";
|
||||
};
|
||||
}
|
||||
14
home/kitty.nix
Normal file
14
home/kitty.nix
Normal 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
14
home/tmux.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user