base: move common programs to base

This commit is contained in:
Antoine Martin 2021-03-24 21:55:57 +01:00
parent 0f7ee556ff
commit 5c0ec171cf
3 changed files with 31 additions and 28 deletions

View file

@ -3,6 +3,7 @@
imports = [ imports = [
./networking.nix ./networking.nix
./nix.nix ./nix.nix
./programs.nix
./users.nix ./users.nix
]; ];
} }

30
base/programs.nix Normal file
View file

@ -0,0 +1,30 @@
{ pkgs, ... }:
{
programs = {
fish.enable = true;
gnupg.agent = {
enable = true;
enableSSHSupport = true;
pinentryFlavor = "curses";
};
mosh.enable = true;
tmux.enable = true;
};
environment.systemPackages = with pkgs; [
# shell usage
bat
ripgrep
wget
# development
git
gnupg
pinentry-curses
vim
# terminal utilities
htop
stow
];
}

View file

@ -43,34 +43,6 @@ in
]; ];
my.networking.externalInterface = "eno1"; my.networking.externalInterface = "eno1";
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
bat
fish
git
gnupg
htop
pinentry-curses
ripgrep
stow
vim
wget
];
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
programs = {
fish.enable = true;
gnupg.agent = {
enable = true;
enableSSHSupport = true;
pinentryFlavor = "curses";
};
mosh.enable = true;
tmux.enable = true;
};
# List services that you want to enable: # List services that you want to enable:
my.services = { my.services = {
bitwarden_rs = { bitwarden_rs = {