From b3a030f155d2e567f16c7901a756066957173cc2 Mon Sep 17 00:00:00 2001 From: Shubham Saini Date: Fri, 29 Sep 2023 21:08:48 -0700 Subject: moved home.nix to hosts --- darwin/home.nix | 50 ------------------------------------------------- flake.nix | 4 ++-- home.nix | 47 ---------------------------------------------- hosts/morpheus/home.nix | 50 +++++++++++++++++++++++++++++++++++++++++++++++++ hosts/oracle/home.nix | 47 ++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 99 insertions(+), 99 deletions(-) delete mode 100644 darwin/home.nix delete mode 100644 home.nix create mode 100644 hosts/morpheus/home.nix create mode 100644 hosts/oracle/home.nix diff --git a/darwin/home.nix b/darwin/home.nix deleted file mode 100644 index 1188c65..0000000 --- a/darwin/home.nix +++ /dev/null @@ -1,50 +0,0 @@ -{ config, pkgs, ... }: - -{ - home.username = "shubh"; - home.homeDirectory = "/Users/shubh"; - - # You should not change this value, even if you update Home Manager. If you do - # want to update the value, then make sure to first check the Home Manager - # release notes. - home.stateVersion = "23.05"; - - home.packages = with pkgs; [ - git - unzip - wget - gnupg - pass - tmux - fzf - docker - neovim - nmap - lf - pinentry_mac - postgresql - docker - kubectl - kubelogin-oidc - terraform - kops - k9s - kubernetes-helm - python38 - # gui - zoom-us - slack - ]; - - home.file = { - ".gnupg/gpg-agent.conf" = { - text = '' - pinentry-program ${pkgs.pinentry_mac}/Applications/pinentry-mac.app/Contents/MacOS/pinentry-mac - ''; - }; - }; - - imports = [ - ../modules/common.nix - ]; -} diff --git a/flake.nix b/flake.nix index cd0d353..8cd669b 100644 --- a/flake.nix +++ b/flake.nix @@ -27,7 +27,7 @@ home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; home-manager.users.shubh = { - imports = [ ./home.nix ]; + imports = [ ./hosts/oracle/home.nix ]; }; } ]; @@ -45,7 +45,7 @@ home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; home-manager.users.shubh = { - imports = [ ./darwin/home.nix ]; + imports = [ ./hosts/morpheus/home.nix ]; }; } ]; diff --git a/home.nix b/home.nix deleted file mode 100644 index 0ec8399..0000000 --- a/home.nix +++ /dev/null @@ -1,47 +0,0 @@ -{ config, pkgs, ... }: - -{ - home.username = "shubh"; - home.homeDirectory = "/home/shubh"; - - # You should not change this value, even if you update Home Manager. If you do - # want to update the value, then make sure to first check the Home Manager - # release notes. - home.stateVersion = "23.05"; - - home.packages = with pkgs; [ - git - unzip - wget - gnupg - pinentry - wl-clipboard - pass - tmux - fzf - firefox - libreoffice-qt - # (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; }) - ]; - - imports = [ - ./modules/common.nix - ]; - - services.gpg-agent = { - enable = true; - pinentryFlavor = "qt"; - }; - - xdg = { - userDirs = { - enable = true; - desktop = "\$HOME/desktop"; - documents = "\$HOME/docs"; - download = "\$HOME/downloads"; - pictures = "\$HOME/pics"; - music = "\$HOME/music"; - videos = "\$HOME/vids"; - }; - }; -} diff --git a/hosts/morpheus/home.nix b/hosts/morpheus/home.nix new file mode 100644 index 0000000..1188c65 --- /dev/null +++ b/hosts/morpheus/home.nix @@ -0,0 +1,50 @@ +{ config, pkgs, ... }: + +{ + home.username = "shubh"; + home.homeDirectory = "/Users/shubh"; + + # You should not change this value, even if you update Home Manager. If you do + # want to update the value, then make sure to first check the Home Manager + # release notes. + home.stateVersion = "23.05"; + + home.packages = with pkgs; [ + git + unzip + wget + gnupg + pass + tmux + fzf + docker + neovim + nmap + lf + pinentry_mac + postgresql + docker + kubectl + kubelogin-oidc + terraform + kops + k9s + kubernetes-helm + python38 + # gui + zoom-us + slack + ]; + + home.file = { + ".gnupg/gpg-agent.conf" = { + text = '' + pinentry-program ${pkgs.pinentry_mac}/Applications/pinentry-mac.app/Contents/MacOS/pinentry-mac + ''; + }; + }; + + imports = [ + ../modules/common.nix + ]; +} diff --git a/hosts/oracle/home.nix b/hosts/oracle/home.nix new file mode 100644 index 0000000..0ec8399 --- /dev/null +++ b/hosts/oracle/home.nix @@ -0,0 +1,47 @@ +{ config, pkgs, ... }: + +{ + home.username = "shubh"; + home.homeDirectory = "/home/shubh"; + + # You should not change this value, even if you update Home Manager. If you do + # want to update the value, then make sure to first check the Home Manager + # release notes. + home.stateVersion = "23.05"; + + home.packages = with pkgs; [ + git + unzip + wget + gnupg + pinentry + wl-clipboard + pass + tmux + fzf + firefox + libreoffice-qt + # (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; }) + ]; + + imports = [ + ./modules/common.nix + ]; + + services.gpg-agent = { + enable = true; + pinentryFlavor = "qt"; + }; + + xdg = { + userDirs = { + enable = true; + desktop = "\$HOME/desktop"; + documents = "\$HOME/docs"; + download = "\$HOME/downloads"; + pictures = "\$HOME/pics"; + music = "\$HOME/music"; + videos = "\$HOME/vids"; + }; + }; +} -- cgit v1.2.3