Browse Source

added home.nix as a module

master
junikimm717 2 years ago
parent
commit
1285945aa1
  1. 2
      configuration.nix
  2. 0
      dotfiles/cwmrc
  3. 0
      dotfiles/xinitrc
  4. 1
      dotfiles/zshrc
  5. 27
      home.nix

2
configuration.nix

@ -8,6 +8,7 @@
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
./home.nix
];
# Use the GRUB 2 boot loader.
@ -85,7 +86,6 @@
"e" = "exit";
"sy" = "systemctl";
"cp" = "cp -r";
"vc" = "nvim ~/.config/nvim/init.vim";
};
programs.zsh.ohMyZsh.plugins = [ "git" "command-not-found" ];
programs.zsh.syntaxHighlighting.enable = true;

0
dotfiles/.cwmrc → dotfiles/cwmrc

0
dotfiles/.xinitrc → dotfiles/xinitrc

1
dotfiles/.zshrc → dotfiles/zshrc

@ -16,4 +16,3 @@ resetcursor() {
printf '\033]50;CursorShape=1\x7'
}
export PS1="$(resetcursor)$PS1"

27
home.nix

@ -1,6 +1,13 @@
{ config, pkgs, ... }:
let
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
in
{
imports = [
(import "${home-manager}/nixos")
];
home-manager.users.junikim = {
# Home Manager needs a bit of information about you and the
# paths it should manage.
home.username = "junikim";
@ -22,6 +29,7 @@
programs.starship = {
enable = true;
};
home.packages = with pkgs; [
vim xclip neofetch tmux
fff
@ -45,15 +53,18 @@
};
programs.git = {
package = pkgs.git;
enable = true;
userName = "Juni Kim";
userEmail = "junikimm717@gmail.com";
};
programs.zsh.oh-my-zsh.enable = true;
programs.zsh.oh-my-zsh.theme = "robbyrussell";
programs.zsh = {
oh-my-zsh = {
enable = true;
theme = "robbyrussell";
};
shellInit = builtins.readFile ./dotfiles/zshrc
};
home.file = {
#".config/nvim/init.vim".source = ./dotfiles/init.vim;
@ -63,10 +74,10 @@
};
".config/kitty/kitty.conf".source = ./dotfiles/kitty.conf;
".config/picom/picom.conf".source = ./dotfiles/picom.conf;
".cwmrc".source = ./dotfiles/.cwmrc;
".cwmrc".source = ./dotfiles/cwmrc;
"cwm.sh".source = ./dotfiles/cwm.sh;
".xinitrc".source = ./dotfiles/.xinitrc;
".zshrc".source = ./dotfiles/.zshrc;
".xinitrc".source = ./dotfiles/xinitrc;
".tmux.conf".source = ./dotfiles/tmux.conf;
};
}
}
Loading…
Cancel
Save