mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-08 17:27:22 +08:00
home.nix no more
This commit is contained in:
parent
a34a5e90c5
commit
04a3ddeb3e
5 changed files with 30 additions and 48 deletions
1
Makefile
1
Makefile
|
|
@ -1,6 +1,7 @@
|
|||
OS := $(shell uname)
|
||||
|
||||
|
||||
# TODO: Automatically detect platform.
|
||||
all:
|
||||
$(error Choose a platform (eg: 'make macos'))
|
||||
|
||||
|
|
|
|||
19
flake.nix
19
flake.nix
|
|
@ -46,10 +46,20 @@
|
|||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.extraSpecialArgs = { inherit system inputs; };
|
||||
home-manager.users.srid = import ./home.nix
|
||||
{
|
||||
inherit inputs system pkgs;
|
||||
};
|
||||
home-manager.users.srid = {
|
||||
imports = [
|
||||
./home/tmux.nix
|
||||
./home/git.nix
|
||||
./home/neovim.nix
|
||||
./home/starship.nix
|
||||
./home/terminal.nix
|
||||
./home/direnv.nix
|
||||
];
|
||||
|
||||
programs.bash = {
|
||||
enable = true;
|
||||
} // (import ./home/shellcommon.nix { inherit pkgs; });
|
||||
};
|
||||
}
|
||||
];
|
||||
mkLinuxSystem = extraModules: nixpkgs.lib.nixosSystem {
|
||||
|
|
@ -115,7 +125,6 @@
|
|||
./features/caches/oss.nix
|
||||
home-manager.darwinModules.home-manager
|
||||
{
|
||||
# TODO: Refactor-DRY with Linux's home.nix
|
||||
home-manager.extraSpecialArgs = { inherit system inputs; };
|
||||
home-manager.users.srid = { pkgs, ... }: {
|
||||
imports = [
|
||||
|
|
|
|||
42
home.nix
42
home.nix
|
|
@ -1,42 +0,0 @@
|
|||
# Linux only. TODO: Will want to consolidate with macOS.
|
||||
{ pkgs, inputs, system, ... }:
|
||||
rec {
|
||||
imports = [
|
||||
./home/tmux.nix
|
||||
./home/git.nix
|
||||
./home/neovim.nix
|
||||
./home/starship.nix
|
||||
./home/terminal.nix
|
||||
./home/direnv.nix
|
||||
];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
gnumake
|
||||
psmisc
|
||||
lsof
|
||||
# psutils -- collides with tex
|
||||
usbutils
|
||||
ghcid
|
||||
|
||||
cachix
|
||||
tig
|
||||
procs # no more: ps -ef | grep
|
||||
unzip
|
||||
ripgrep
|
||||
htop
|
||||
];
|
||||
|
||||
programs.bash = {
|
||||
enable = true;
|
||||
} // (import ./home/shellcommon.nix { inherit pkgs; });
|
||||
|
||||
# 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 = "21.03";
|
||||
}
|
||||
|
|
@ -1,6 +1,8 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = [ pkgs.tig ];
|
||||
programs.git = {
|
||||
# package = pkgs.gitAndTools.gitFull;
|
||||
package = pkgs.gitAndTools.gitFull;
|
||||
enable = true;
|
||||
userName = "Sridhar Ratnakumar";
|
||||
userEmail = "srid@srid.ca";
|
||||
|
|
|
|||
|
|
@ -1,4 +1,16 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
# Key packages required on nixos and macos
|
||||
home.packages = with pkgs; [
|
||||
# Unixy tools
|
||||
gnumake
|
||||
ripgrep
|
||||
htop
|
||||
|
||||
# Haskell dev
|
||||
ghcid
|
||||
];
|
||||
|
||||
programs = {
|
||||
bat.enable = true;
|
||||
autojump.enable = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue