mirror of
https://github.com/srid/nixos-config.git
synced 2026-05-11 17:36:07 +08:00
DRY hm mods
This commit is contained in:
parent
6d720f2524
commit
1efe6144cc
1 changed files with 11 additions and 21 deletions
32
flake.nix
32
flake.nix
|
|
@ -35,6 +35,14 @@
|
|||
platformIndependentModules = [
|
||||
./nixos/caches
|
||||
];
|
||||
platformIndependentHomeModules = [
|
||||
./home/tmux.nix
|
||||
./home/neovim.nix
|
||||
./home/emacs.nix
|
||||
./home/starship.nix
|
||||
./home/terminal.nix
|
||||
./home/direnv.nix
|
||||
];
|
||||
in
|
||||
{
|
||||
# Configurations for Linux (NixOS) systems
|
||||
|
|
@ -55,16 +63,11 @@
|
|||
home-manager.useUserPackages = true;
|
||||
home-manager.extraSpecialArgs = { inherit system inputs; };
|
||||
home-manager.users.${userName} = { pkgs, ... }: {
|
||||
imports = [
|
||||
./home/tmux.nix
|
||||
imports = platformIndependentHomeModules ++ [
|
||||
(import ./home/git.nix {
|
||||
userName = "Sridhar Ratnakumar";
|
||||
userEmail = "srid@srid.ca";
|
||||
})
|
||||
./home/neovim.nix
|
||||
./home/starship.nix
|
||||
./home/terminal.nix
|
||||
./home/direnv.nix
|
||||
./home/vscode-server.nix
|
||||
];
|
||||
|
||||
|
|
@ -74,17 +77,11 @@
|
|||
home.stateVersion = "22.11";
|
||||
};
|
||||
home-manager.users."uday" = {
|
||||
imports = [
|
||||
./home/tmux.nix
|
||||
imports = platformIndependentHomeModules ++ [
|
||||
(import ./home/git.nix {
|
||||
userName = "Uday Kiran";
|
||||
userEmail = "udaycruise2903@gmail.com";
|
||||
})
|
||||
./home/neovim.nix
|
||||
./home/starship.nix
|
||||
./home/terminal.nix
|
||||
./home/direnv.nix
|
||||
./home/vscode-server.nix
|
||||
];
|
||||
programs.bash.enable = true;
|
||||
home.stateVersion = "22.11";
|
||||
|
|
@ -127,18 +124,11 @@
|
|||
home-manager.useUserPackages = true;
|
||||
home-manager.extraSpecialArgs = { inherit system inputs; };
|
||||
home-manager.users.${userName} = { pkgs, ... }: {
|
||||
imports = [
|
||||
imports = platformIndependentHomeModules ++ [
|
||||
(import ./home/git.nix {
|
||||
userName = "Sridhar Ratnakumar";
|
||||
userEmail = "srid@srid.ca";
|
||||
})
|
||||
./home/tmux.nix
|
||||
./home/neovim.nix
|
||||
./home/email.nix
|
||||
./home/terminal.nix
|
||||
./home/emacs.nix
|
||||
./home/direnv.nix
|
||||
./home/starship.nix
|
||||
];
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue