mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-10 02:19:41 +00:00
Specify cli packages in home-manager
This commit is contained in:
parent
5b2d36fcbf
commit
1e2a2c0222
|
@ -1,14 +1,15 @@
|
||||||
{ config, lib, inputs, self, ... }:
|
{ config, lib, inputs, self, ... }:
|
||||||
let
|
let
|
||||||
hmConf = config.myOptions.home-manager;
|
myHmConf = config.myOptions.home-manager;
|
||||||
username = config.myOptions.system.username;
|
username = config.myOptions.system.username;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./packages
|
||||||
./programs
|
./programs
|
||||||
];
|
];
|
||||||
|
|
||||||
home-manager = lib.mkIf hmConf.enabled {
|
home-manager = lib.mkIf myHmConf.enabled {
|
||||||
# Use verbose mode for home-manager
|
# Use verbose mode for home-manager
|
||||||
verbose = true;
|
verbose = true;
|
||||||
|
|
||||||
|
@ -36,7 +37,7 @@ in
|
||||||
home = {
|
home = {
|
||||||
inherit username;
|
inherit username;
|
||||||
homeDirectory = "/home/${username}";
|
homeDirectory = "/home/${username}";
|
||||||
stateVersion = hmConf.stateVersion;
|
stateVersion = myHmConf.stateVersion;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
5
home/packages/cli/default.nix
Normal file
5
home/packages/cli/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
_: {
|
||||||
|
imports = [
|
||||||
|
./shared.nix
|
||||||
|
];
|
||||||
|
}
|
21
home/packages/cli/shared.nix
Normal file
21
home/packages/cli/shared.nix
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
let
|
||||||
|
username = config.myOptions.system.username;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
home-manager.users.${username} = {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
fzf
|
||||||
|
jq
|
||||||
|
fd
|
||||||
|
ripgrep
|
||||||
|
unzip
|
||||||
|
file
|
||||||
|
rsync
|
||||||
|
btop
|
||||||
|
hyperfine
|
||||||
|
delta
|
||||||
|
gnupg
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
6
home/packages/default.nix
Normal file
6
home/packages/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
_: {
|
||||||
|
imports = [
|
||||||
|
./cli
|
||||||
|
./gui
|
||||||
|
];
|
||||||
|
}
|
3
home/packages/gui/default.nix
Normal file
3
home/packages/gui/default.nix
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
_: {
|
||||||
|
imports = [ ];
|
||||||
|
}
|
|
@ -4,11 +4,7 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
# Basic list of must-have packages for all systems
|
# Basic list of must-have packages for all systems
|
||||||
# TODO: Move these to home-manager, no need for system wide deps
|
|
||||||
# although maybe keep vim
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
vim
|
vim
|
||||||
gnupg
|
|
||||||
delta
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue