From 5c0ec171cfd18290d81e1e740ca891b2110eae17 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 24 Mar 2021 21:55:57 +0100 Subject: [PATCH] base: move common programs to base --- base/default.nix | 1 + base/programs.nix | 30 ++++++++++++++++++++++++++++++ hosts/poseidon/default.nix | 28 ---------------------------- 3 files changed, 31 insertions(+), 28 deletions(-) create mode 100644 base/programs.nix diff --git a/base/default.nix b/base/default.nix index 03d0b3d..3331a09 100644 --- a/base/default.nix +++ b/base/default.nix @@ -3,6 +3,7 @@ imports = [ ./networking.nix ./nix.nix + ./programs.nix ./users.nix ]; } diff --git a/base/programs.nix b/base/programs.nix new file mode 100644 index 0000000..8fbb19b --- /dev/null +++ b/base/programs.nix @@ -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 + ]; +} diff --git a/hosts/poseidon/default.nix b/hosts/poseidon/default.nix index 4d07c16..d8da552 100644 --- a/hosts/poseidon/default.nix +++ b/hosts/poseidon/default.nix @@ -43,34 +43,6 @@ in ]; 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: my.services = { bitwarden_rs = {