From d6097cd363a835aa3711cb6bc724896059d95074 Mon Sep 17 00:00:00 2001 From: junikimm717 Date: Sat, 16 Apr 2022 09:27:23 -0400 Subject: [PATCH] gnome also added --- configuration.nix | 2 ++ dotfiles/config.nix | 3 ++ home.nix | 72 +-------------------------------------------- rices/cwm.nix | 72 +++++++++++++++++++++++++++++++++++++++++++++ rices/gnome.nix | 65 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 143 insertions(+), 71 deletions(-) create mode 100644 dotfiles/config.nix create mode 100644 rices/cwm.nix create mode 100644 rices/gnome.nix diff --git a/configuration.nix b/configuration.nix index 09c1b25..33d6863 100644 --- a/configuration.nix +++ b/configuration.nix @@ -96,6 +96,8 @@ "EDITOR" = "nvim"; }; + services.gnome3.gnome-keyring.enable = true; + # List packages installed in system profile. To search, run: # $ nix search wget fonts.fonts = with pkgs; [ jetbrains-mono dejavu_fonts ]; diff --git a/dotfiles/config.nix b/dotfiles/config.nix new file mode 100644 index 0000000..1dd1750 --- /dev/null +++ b/dotfiles/config.nix @@ -0,0 +1,3 @@ +{ + allowUnfree = true; +} diff --git a/home.nix b/home.nix index b1024fa..ce06121 100644 --- a/home.nix +++ b/home.nix @@ -7,75 +7,5 @@ in (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"; - home.homeDirectory = "/home/junikim"; - - # This value determines the Home Manager release that your - # configuration is compatible with. This helps avoid breakage - # when a new Home Manager release introduces backwards - # incompatible changes. - # - # You can update Home Manager without changing this value. See - # the Home Manager release notes for a list of state version - # changes in each release. - home.stateVersion = "22.05"; - - # Let Home Manager install and manage itself. - programs.home-manager.enable = true; - - programs.starship.enable = true; - - home.packages = with pkgs; [ - vim xclip neofetch tmux - fff - nodejs shellcheck - dash - wget brave - cwm polybarFull kitty nitrogen dmenu picom - nfs-utils gcc gnumake pulsemixer - ]; - - programs.neovim = { - enable = true; - plugins = with pkgs.vimPlugins; [ - coc-nvim - neovim-sensible - vim-airline - vim-airline-themes - vim-nix - ]; - extraConfig = builtins.readFile ./dotfiles/init.vim; - }; - - programs.git = { - enable = true; - userName = "Juni Kim"; - userEmail = "junikimm717@gmail.com"; - }; - - programs.zsh = { - oh-my-zsh = { - enable = true; - theme = "robbyrussell"; - }; - }; - - home.file = { - #".config/nvim/init.vim".source = ./dotfiles/init.vim; - ".config/polybar" = { - source = ./dotfiles/polybar; - recursive = true; - }; - ".config/kitty/kitty.conf".source = ./dotfiles/kitty.conf; - ".config/picom/picom.conf".source = ./dotfiles/picom.conf; - ".cwmrc".source = ./dotfiles/cwmrc; - "cwm.sh".source = ./dotfiles/cwm.sh; - ".xinitrc".source = ./dotfiles/xinitrc; - ".tmux.conf".source = ./dotfiles/tmux.conf; - ".zshrc".source = ./dotfiles/zshrc; - }; - }; + home-manager.users.junikim = import ./rices/cwm.nix } diff --git a/rices/cwm.nix b/rices/cwm.nix new file mode 100644 index 0000000..582f12c --- /dev/null +++ b/rices/cwm.nix @@ -0,0 +1,72 @@ +{ + # Home Manager needs a bit of information about you and the + # paths it should manage. + home.username = "junikim"; + home.homeDirectory = "/home/junikim"; + + # This value determines the Home Manager release that your + # configuration is compatible with. This helps avoid breakage + # when a new Home Manager release introduces backwards + # incompatible changes. + # + # You can update Home Manager without changing this value. See + # the Home Manager release notes for a list of state version + # changes in each release. + home.stateVersion = "22.05"; + + # Let Home Manager install and manage itself. + programs.home-manager.enable = true; + + programs.starship.enable = true; + + home.packages = with pkgs; [ + vim xclip neofetch tmux + fff + nodejs shellcheck + dash + wget brave + cwm polybarFull kitty nitrogen dmenu picom + nfs-utils gcc gnumake pulsemixer + ]; + + programs.neovim = { + enable = true; + plugins = with pkgs.vimPlugins; [ + coc-nvim + neovim-sensible + vim-airline + vim-airline-themes + vim-nix + ]; + extraConfig = builtins.readFile ./dotfiles/init.vim; + }; + + programs.git = { + enable = true; + userName = "Juni Kim"; + userEmail = "junikimm717@gmail.com"; + }; + + programs.zsh = { + oh-my-zsh = { + enable = true; + theme = "robbyrussell"; + }; + }; + + home.file = { + #".config/nvim/init.vim".source = ./dotfiles/init.vim; + ".config/polybar" = { + source = ./dotfiles/polybar; + recursive = true; + }; + ".config/kitty/kitty.conf".source = ./dotfiles/kitty.conf; + ".config/picom/picom.conf".source = ./dotfiles/picom.conf; + ".config/nixpkgs/config.nix".source = ./dotfiles/config.nix; + ".cwmrc".source = ./dotfiles/cwmrc; + "cwm.sh".source = ./dotfiles/cwm.sh; + ".xinitrc".source = ./dotfiles/xinitrc; + ".tmux.conf".source = ./dotfiles/tmux.conf; + ".zshrc".source = ./dotfiles/zshrc; + }; +}; diff --git a/rices/gnome.nix b/rices/gnome.nix new file mode 100644 index 0000000..96a12db --- /dev/null +++ b/rices/gnome.nix @@ -0,0 +1,65 @@ +{ + # Home Manager needs a bit of information about you and the + # paths it should manage. + home.username = "junikim"; + home.homeDirectory = "/home/junikim"; + + # This value determines the Home Manager release that your + # configuration is compatible with. This helps avoid breakage + # when a new Home Manager release introduces backwards + # incompatible changes. + # + # You can update Home Manager without changing this value. See + # the Home Manager release notes for a list of state version + # changes in each release. + home.stateVersion = "22.05"; + + # Let Home Manager install and manage itself. + programs.home-manager.enable = true; + + services.xserver.desktopManager.gnome.enable = true; + + programs.starship.enable = true; + + home.packages = with pkgs; [ + vim xclip neofetch tmux + fff + nodejs shellcheck + dash + wget brave + kitty nitrogen + nfs-utils gcc gnumake pulsemixer + ]; + + programs.neovim = { + enable = true; + plugins = with pkgs.vimPlugins; [ + coc-nvim + neovim-sensible + vim-airline + vim-airline-themes + vim-nix + ]; + extraConfig = builtins.readFile ./dotfiles/init.vim; + }; + + programs.git = { + enable = true; + userName = "Juni Kim"; + userEmail = "junikimm717@gmail.com"; + }; + + programs.zsh = { + oh-my-zsh = { + enable = true; + theme = "robbyrussell"; + }; + }; + + home.file = { + ".config/kitty/kitty.conf".source = ../dotfiles/kitty.conf; + ".config/nixpkgs/config.nix".source = ../dotfiles/config.nix; + ".tmux.conf".source = ../dotfiles/tmux.conf; + ".zshrc".source = ../dotfiles/zshrc; + }; +};