Added nix darwin to repo
This commit is contained in:
55
home-manager/common.nix
Normal file
55
home-manager/common.nix
Normal file
@@ -0,0 +1,55 @@
|
||||
{ inputs, config, pkgs, ... }: {
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
fonts.fontconfig.enable = true;
|
||||
|
||||
home.packages = with pkgs; [
|
||||
feh
|
||||
clang
|
||||
cargo
|
||||
neofetch
|
||||
#microsoft-edge
|
||||
#nextcloud-client
|
||||
#bitwarden-cli
|
||||
#bitwarden
|
||||
#discord
|
||||
|
||||
# Emacs
|
||||
cmake
|
||||
isync
|
||||
ispell
|
||||
mu
|
||||
|
||||
# fonts
|
||||
fira-code
|
||||
fira-code-symbols
|
||||
meslo-lgs-nf
|
||||
];
|
||||
|
||||
programs = {
|
||||
home-manager.enable = true;
|
||||
zoxide.enable = true;
|
||||
eza.enable = true;
|
||||
fzf.enable = true;
|
||||
|
||||
git = {
|
||||
enable = true;
|
||||
userName = "Random936";
|
||||
userEmail = "randomdude936@gmail.com";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
home.file = {
|
||||
".mbsyncrc".source = ../dotfiles/.mbsyncrc;
|
||||
".functions.zsh".source = ../dotfiles/.functions.zsh;
|
||||
|
||||
# Emacs files
|
||||
".emacs".source = ../dotfiles/.emacs;
|
||||
".emacs.d/config.org".source = ../dotfiles/.emacs.d/config.org;
|
||||
".emacs.d/terminal.org".source = ../dotfiles/.emacs.d/terminal.org;
|
||||
".emacs.d/functions.org".source = ../dotfiles/.emacs.d/functions.org;
|
||||
".emacs.d/email.org".source = ../dotfiles/.emacs.d/email.org;
|
||||
".emacs.d/org.org".source = ../dotfiles/.emacs.d/org.org;
|
||||
".emacs.d/lsp.org".source = ../dotfiles/.emacs.d/lsp.org;
|
||||
};
|
||||
}
|
||||
16
home-manager/darwin-home.nix
Normal file
16
home-manager/darwin-home.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{ inputs, config, pkgs, ... }: {
|
||||
|
||||
home = {
|
||||
username = "jadenmaxwell";
|
||||
homeDirectory = "/Users/jadenmaxwell";
|
||||
};
|
||||
|
||||
imports = [
|
||||
./common.nix
|
||||
./zsh.nix
|
||||
];
|
||||
|
||||
programs.emacs.package = pkgs.emacs-macport;
|
||||
|
||||
home.stateVersion = "23.11";
|
||||
}
|
||||
11
home-manager/emacs.nix
Normal file
11
home-manager/emacs.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{ inputs, config, pkgs, ... }: {
|
||||
programs.emacs = {
|
||||
enable = true;
|
||||
extraPackages = epkgs: with epkgs; [
|
||||
mu4e
|
||||
vterm
|
||||
all-the-icons
|
||||
nerd-icons
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -1,123 +0,0 @@
|
||||
{ inputs, config, pkgs, ... }: {
|
||||
home = {
|
||||
username = "random";
|
||||
homeDirectory = "/home/random";
|
||||
};
|
||||
|
||||
gtk = {
|
||||
enable = true;
|
||||
theme = {
|
||||
name = "Materia-dark";
|
||||
package = pkgs.materia-theme;
|
||||
};
|
||||
};
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
fonts.fontconfig.enable = true;
|
||||
home.packages = with pkgs; [
|
||||
feh
|
||||
clang
|
||||
cargo
|
||||
neofetch
|
||||
microsoft-edge
|
||||
nextcloud-client
|
||||
bitwarden-cli
|
||||
bitwarden
|
||||
discord
|
||||
|
||||
# Emacs
|
||||
cmake
|
||||
isync
|
||||
ispell
|
||||
mu
|
||||
|
||||
# fonts
|
||||
fira-code
|
||||
fira-code-symbols
|
||||
meslo-lgs-nf
|
||||
];
|
||||
|
||||
programs = {
|
||||
home-manager.enable = true;
|
||||
command-not-found.enable = true;
|
||||
zoxide.enable = true;
|
||||
eza.enable = true;
|
||||
fzf.enable = true;
|
||||
|
||||
emacs = {
|
||||
enable = true;
|
||||
extraPackages = epkgs: with epkgs; [
|
||||
mu4e
|
||||
vterm
|
||||
all-the-icons
|
||||
nerd-icons
|
||||
];
|
||||
};
|
||||
|
||||
git = {
|
||||
enable = true;
|
||||
userName = "Random936";
|
||||
userEmail = "randomdude936@gmail.com";
|
||||
};
|
||||
|
||||
zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
enableAutosuggestions = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
history.size = 100000000;
|
||||
|
||||
shellAliases = {
|
||||
update-system = "sudo nixos-rebuild switch --flake ~/dotfiles";
|
||||
update-user = "home-manager switch --flake ~/dotfiles";
|
||||
update-all = "update-system && update-user";
|
||||
};
|
||||
|
||||
plugins = [
|
||||
{
|
||||
name = "custom-functions";
|
||||
src = ../dotfiles;
|
||||
file = ".functions.zsh";
|
||||
}
|
||||
{
|
||||
name = "powerlevel10k-config";
|
||||
src = ../dotfiles;
|
||||
file = ".p10k.zsh";
|
||||
}
|
||||
];
|
||||
|
||||
zplug = {
|
||||
enable = true;
|
||||
plugins = [
|
||||
{ name = "romkatv/powerlevel10k"; tags = [ as:theme depth:1 ]; }
|
||||
];
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
home.file = {
|
||||
".mbsyncrc".source = ../dotfiles/.mbsyncrc;
|
||||
".Xresources".source = ../dotfiles/.Xresources;
|
||||
".functions.zsh".source = ../dotfiles/.functions.zsh;
|
||||
".scripts/brightness.sh".source = ../dotfiles/.scripts/brightness.sh;
|
||||
".scripts/autostart_desktop.sh".source = ../dotfiles/.scripts/autostart_desktop.sh;
|
||||
".screenlayout/launch.sh".source = ../dotfiles/.screenlayout/launch.sh;
|
||||
".screenlayout/wallpapers.sh".source = ../dotfiles/.screenlayout/wallpapers.sh;
|
||||
".config/i3/config".source = ../dotfiles/.config/i3/config;
|
||||
".config/rofi/config.rasi".source = ../dotfiles/.config/rofi/config.rasi;
|
||||
".config/polybar/config.ini".source = ../dotfiles/.config/polybar/config.ini;
|
||||
|
||||
# Emacs files
|
||||
".emacs".source = ../dotfiles/.emacs;
|
||||
".emacs.d/config.org".source = ../dotfiles/.emacs.d/config.org;
|
||||
".emacs.d/terminal.org".source = ../dotfiles/.emacs.d/terminal.org;
|
||||
".emacs.d/functions.org".source = ../dotfiles/.emacs.d/functions.org;
|
||||
".emacs.d/email.org".source = ../dotfiles/.emacs.d/email.org;
|
||||
".emacs.d/org.org".source = ../dotfiles/.emacs.d/org.org;
|
||||
".emacs.d/lsp.org".source = ../dotfiles/.emacs.d/lsp.org;
|
||||
};
|
||||
|
||||
|
||||
home.stateVersion = "23.05";
|
||||
}
|
||||
40
home-manager/nixos-home.nix
Normal file
40
home-manager/nixos-home.nix
Normal file
@@ -0,0 +1,40 @@
|
||||
{ inputs, config, pkgs, ... }: {
|
||||
|
||||
home = {
|
||||
username = "random";
|
||||
homeDirectory = "/home/random";
|
||||
};
|
||||
|
||||
imports = [
|
||||
./common.nix
|
||||
./emacs.nix
|
||||
./zsh.nix
|
||||
];
|
||||
|
||||
gtk = {
|
||||
enable = true;
|
||||
theme = {
|
||||
name = "Materia-dark";
|
||||
package = pkgs.materia-theme;
|
||||
};
|
||||
};
|
||||
|
||||
programs = {
|
||||
command-not-found.enable = true;
|
||||
};
|
||||
|
||||
home.file = {
|
||||
".Xresources".source = ../dotfiles/.Xresources;
|
||||
".scripts/brightness.sh".source = ../dotfiles/.scripts/brightness.sh;
|
||||
".scripts/autostart_desktop.sh".source = ../dotfiles/.scripts/autostart_desktop.sh;
|
||||
".screenlayout/launch.sh".source = ../dotfiles/.screenlayout/launch.sh;
|
||||
".screenlayout/wallpapers.sh".source = ../dotfiles/.screenlayout/wallpapers.sh;
|
||||
".config/i3/config".source = ../dotfiles/.config/i3/config;
|
||||
".config/rofi/config.rasi".source = ../dotfiles/.config/rofi/config.rasi;
|
||||
".config/polybar/config.ini".source = ../dotfiles/.config/polybar/config.ini;
|
||||
|
||||
};
|
||||
|
||||
|
||||
home.stateVersion = "23.11";
|
||||
}
|
||||
36
home-manager/zsh.nix
Normal file
36
home-manager/zsh.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{ inputs, config, pkgs, ... }: {
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
enableAutosuggestions = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
history.size = 100000000;
|
||||
|
||||
shellAliases = {
|
||||
update-system = "sudo nixos-rebuild switch --flake ~/dotfiles";
|
||||
update-user = "home-manager switch --flake ~/dotfiles";
|
||||
update-all = "update-system && update-user";
|
||||
};
|
||||
|
||||
plugins = [
|
||||
{
|
||||
name = "custom-functions";
|
||||
src = ../dotfiles;
|
||||
file = ".functions.zsh";
|
||||
}
|
||||
{
|
||||
name = "powerlevel10k-config";
|
||||
src = ../dotfiles;
|
||||
file = ".p10k.zsh";
|
||||
}
|
||||
];
|
||||
|
||||
zplug = {
|
||||
enable = true;
|
||||
plugins = [
|
||||
{ name = "romkatv/powerlevel10k"; tags = [ as:theme depth:1 ]; }
|
||||
];
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user