aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKumar Damani <me@kumardamani.net>2024-07-11 04:04:41 +0000
committerKumar Damani <me@kumardamani.net>2024-07-11 04:04:41 +0000
commit622cd5f9148e90b39fa4af0e92d365bdc8f3a29f (patch)
treea9428e8771017d5cf0cdceb72817cbec6f4e52f4
parent7c125402f9136a1348cd29053538f3cfff27e6dd (diff)
flake for orbstack deb machine
-rw-r--r--home-manager/.config/home-manager/flake.lock18
-rw-r--r--home-manager/.config/home-manager/flake.nix4
-rw-r--r--home-manager/.config/home-manager/per-user/kdam0-orb-deb/home.nix142
3 files changed, 153 insertions, 11 deletions
diff --git a/home-manager/.config/home-manager/flake.lock b/home-manager/.config/home-manager/flake.lock
index 2f1e96c..2bda729 100644
--- a/home-manager/.config/home-manager/flake.lock
+++ b/home-manager/.config/home-manager/flake.lock
@@ -7,11 +7,11 @@
]
},
"locked": {
- "lastModified": 1720470846,
- "narHash": "sha256-7ftA4Bv5KfH4QdTRxqe8/Hz2YTKo+7IQ9n7vbNWgv28=",
+ "lastModified": 1720646128,
+ "narHash": "sha256-BivO5yIQukDlJL+1875Sqf3GuOPxZDdA48dYDi3PkL8=",
"owner": "nix-community",
"repo": "home-manager",
- "rev": "2fb5c1e0a17bc6059fa09dc411a43d75f35bb192",
+ "rev": "c085b984ff2808bf322f375b10fea5a415a9c43d",
"type": "github"
},
"original": {
@@ -22,11 +22,11 @@
},
"nixos-hardware": {
"locked": {
- "lastModified": 1720429258,
- "narHash": "sha256-d6JI5IgJ1xdrk7DvYVx7y8ijcYz5I1nhCwOiDP6cq00=",
+ "lastModified": 1720515935,
+ "narHash": "sha256-8b+fzR4W2hI5axwB+4nBwoA15awPKkck4ghhCt8v39M=",
"owner": "NixOS",
"repo": "nixos-hardware",
- "rev": "72d3c007024ce47d838bb38693c8773812f54bf2",
+ "rev": "a111ce6b537df12a39874aa9672caa87f8677eda",
"type": "github"
},
"original": {
@@ -38,11 +38,11 @@
},
"nixpkgs": {
"locked": {
- "lastModified": 1720418205,
- "narHash": "sha256-cPJoFPXU44GlhWg4pUk9oUPqurPlCFZ11ZQPk21GTPU=",
+ "lastModified": 1720542800,
+ "narHash": "sha256-ZgnNHuKV6h2+fQ5LuqnUaqZey1Lqqt5dTUAiAnqH0QQ=",
"owner": "nixos",
"repo": "nixpkgs",
- "rev": "655a58a72a6601292512670343087c2d75d859c1",
+ "rev": "feb2849fdeb70028c70d73b848214b00d324a497",
"type": "github"
},
"original": {
diff --git a/home-manager/.config/home-manager/flake.nix b/home-manager/.config/home-manager/flake.nix
index 778e281..bb53cbb 100644
--- a/home-manager/.config/home-manager/flake.nix
+++ b/home-manager/.config/home-manager/flake.nix
@@ -54,10 +54,10 @@
# Optionally use extraSpecialArgs
# to pass through arguments to home.nix
};
- "kdam0@testing-deb" = home-manager.lib.homeManagerConfiguration {
+ "kdam0@orb-deb" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages."x86_64-linux";
modules = [
- ./per-user/kdam0-deb/home.nix
+ ./per-user/kdam0-orb-deb/home.nix
];
};
};
diff --git a/home-manager/.config/home-manager/per-user/kdam0-orb-deb/home.nix b/home-manager/.config/home-manager/per-user/kdam0-orb-deb/home.nix
new file mode 100644
index 0000000..2dcae7f
--- /dev/null
+++ b/home-manager/.config/home-manager/per-user/kdam0-orb-deb/home.nix
@@ -0,0 +1,142 @@
+{ config, pkgs, libs, ...}:
+{
+ home.username = "kdam0";
+ home.homeDirectory = "/home/kdam0";
+ home.sessionPath = [
+ "$HOME/.config/home-manager/common/scripts"
+ ];
+ home.sessionVariables = {
+ EDITOR = "nvim";
+ TERM = "xterm-256color";
+ };
+ home.shellAliases = {
+ l = "ls -l";
+ ll = "ls -al";
+ ".." = "cd ..";
+ v = "nvim $@";
+ r = "ranger $@";
+ gst = "git status";
+ chm = "nvim ~/.config/home-manager/per-user/kdam0-orb-deb/home.nix";
+ cvim = "nvim ~/.config/home-manager/common/nvim/init.vim";
+ clsp = "nvim ~/.config/home-manager/common/nvim/plugins/lspconfig.lua";
+ search = "nix search home-manager $@";
+ conf = "ranger ~/.config/home-manager/common/";
+ up = "home-manager switch";
+ };
+
+ programs.home-manager.enable = true;
+ programs.zsh = {
+ enable = true;
+ defaultKeymap = "viins";
+ initExtra = ''
+ source ${config.home.homeDirectory}/.p10k.zsh
+ bindkey '^ ' autosuggest-accept
+ '';
+ zplug = {
+ enable = true;
+ plugins = [
+ { name = "zsh-users/zsh-autosuggestions"; }
+ { name = "romkatv/powerlevel10k"; tags = [ as:theme depth:1 ]; }
+ ];
+ };
+ };
+ programs.tmux = {
+ enable = true;
+ clock24 = true;
+ shell = "${pkgs.zsh}/bin/zsh";
+ prefix = "C-a";
+ terminal = "screen-256color";
+ keyMode = "vi";
+ plugins = with pkgs; [
+ tmuxPlugins.sensible
+ {
+ plugin = tmuxPlugins.resurrect;
+ extraConfig = "set -g @resurrect-strategy-nvim 'session'";
+ }
+ tmuxPlugins.pain-control
+ tmuxPlugins.yank
+ ];
+ sensibleOnTop = true;
+ };
+ programs.git = {
+ enable = true;
+ userName = "Kumar Damani";
+ userEmail = "me@kumardamani.net";
+ aliases = {
+ lg = "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit";
+ };
+ };
+ programs.neovim = {
+ enable = true;
+ withPython3 = false;
+ withRuby = true;
+ withNodeJs = true;
+ vimdiffAlias = true;
+ plugins = with pkgs.vimPlugins; [
+ tokyonight-nvim
+ nvim-treesitter.withAllGrammars
+ nvim-autopairs
+ nvim-cmp
+ cmp-buffer
+ cmp-path
+ nvim-web-devicons
+ nnn-vim
+ luasnip
+ cmp_luasnip
+ cmp-nvim-lsp
+ friendly-snippets
+ {
+ plugin = indent-blankline-nvim-lua;
+ type = "lua";
+ config = builtins.readFile(../../common/nvim/plugins/indent-blankline.lua);
+ }
+ {
+ plugin = lualine-nvim;
+ type = "lua";
+ config = builtins.readFile(../../common/nvim/plugins/lualine.lua);
+ }
+ {
+ plugin = trouble-nvim;
+ type = "lua";
+ config = builtins.readFile(../../common/nvim/plugins/trouble.lua);
+ }
+ {
+ plugin = telescope-nvim;
+ type = "lua";
+ config = builtins.readFile(../../common/nvim/plugins/telescope.lua);
+ }
+ telescope-fzf-native-nvim
+ {
+ plugin = leap-nvim;
+ type = "lua";
+ config = builtins.readFile(../../common/nvim/plugins/leap.lua);
+ }
+ mason-nvim
+ mason-lspconfig-nvim
+ neoconf-nvim
+ {
+ plugin = nvim-lspconfig;
+ type = "lua";
+ config = builtins.readFile(../../common/nvim/plugins/lspconfig.lua);
+ }
+ ];
+ extraConfig = builtins.readFile ../../common/nvim/init.vim;
+ };
+ programs.fzf = {
+ enable = true;
+ tmux.enableShellIntegration = true;
+ };
+ programs.direnv = {
+ enable = true;
+ enableZshIntegration = true; # see note on other shells below
+ nix-direnv.enable = true;
+ };
+ home.stateVersion = "23.05";
+ home.packages = with pkgs; [
+ ranger
+ nnn
+ ripgrep
+ python311
+ ];
+ targets.genericLinux.enable = true;
+}