feat: switch to zimfw instead of antigen

This commit is contained in:
Youwen Wu 2024-07-11 23:09:25 -07:00
parent df97ef42bd
commit 5f106daf7a
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3
3 changed files with 87 additions and 12 deletions

View file

@ -36,6 +36,25 @@
"type": "github"
}
},
"home-manager_2": {
"inputs": {
"nixpkgs": "nixpkgs_3",
"utils": "utils"
},
"locked": {
"lastModified": 1678109311,
"narHash": "sha256-Q64FoCH5rp3XHoC8u1+KyjLEFGTY7kX9YaIaYfugvfY=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "04d6cad67557512452decbfe888c68fa11338a96",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "home-manager",
"type": "github"
}
},
"hyprcursor": {
"inputs": {
"hyprlang": [
@ -229,12 +248,29 @@
"type": "github"
}
},
"nixpkgs_3": {
"locked": {
"lastModified": 1677932085,
"narHash": "sha256-+AB4dYllWig8iO6vAiGGYl0NEgmMgGHpy9gzWJ3322g=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "3c5319ad3aa51551182ac82ea17ab1c6b0f0df89",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"catppuccin": "catppuccin",
"home-manager": "home-manager",
"hyprland": "hyprland",
"nixpkgs": "nixpkgs_2"
"nixpkgs": "nixpkgs_2",
"zimfw": "zimfw"
}
},
"systems": {
@ -252,6 +288,21 @@
"type": "github"
}
},
"utils": {
"locked": {
"lastModified": 1676283394,
"narHash": "sha256-XX2f9c3iySLCw54rJ/CZs+ZK6IQy7GXNY4nSOyu2QG4=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "3db36a8b464d0c4532ba1c7dda728f4576d6d073",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"xdph": {
"inputs": {
"hyprland-protocols": "hyprland-protocols",
@ -281,6 +332,24 @@
"repo": "xdg-desktop-portal-hyprland",
"type": "github"
}
},
"zimfw": {
"inputs": {
"home-manager": "home-manager_2"
},
"locked": {
"lastModified": 1704039982,
"narHash": "sha256-JgMBZXW+33/b3nTcTaDc1r3vSn8DkCIlNuz7DcwWiiM=",
"owner": "joedevivo",
"repo": "zimfw.nix",
"rev": "1abc53e3d1c2711abf653ae05e91cb9668efa211",
"type": "github"
},
"original": {
"owner": "joedevivo",
"repo": "zimfw.nix",
"type": "github"
}
}
},
"root": "root",

View file

@ -9,9 +9,10 @@
};
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
catppuccin.url = "github:catppuccin/nix";
zimfw.url = "github:joedevivo/zimfw.nix";
};
outputs = { self, nixpkgs, home-manager, catppuccin, ... }@inputs: {
outputs = { self, nixpkgs, home-manager, catppuccin, zimfw, ... }@inputs: {
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
system = "x86_64-linux";
@ -25,6 +26,7 @@
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.backupFileExtension = "backup";
home-manager.sharedModules = [ zimfw.homeManagerModules.zimfw ];
home-manager.users.youwen = {
imports = [
./home.nix

View file

@ -505,15 +505,20 @@
};
initExtra = "eval \"$(oh-my-posh init zsh --config \"/etc/nixos/prompt.omp.json\")\"";
defaultKeymap = "viins";
antidote = {
zimfw = {
enable = true;
plugins = [
"zimfw/environment"
"zimfw/input"
"zimfw/archive"
"zimfw/fzf"
"zimfw/magic-enter"
"zimfw/utility"
disableVersionCheck = true;
degit = true;
zmodules = [
"environment"
"git"
"input"
"termtitle"
"utility"
"exa"
"fzf"
"magic-enter"
];
};
};
@ -540,7 +545,6 @@
vimAlias = true;
};
# 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