From 0f2c55992677e78d5d2908d0648e410ef9b27436 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 23 Sep 2017 13:59:19 +0200 Subject: Organise modules into folders --- modules/programs/accounting.nix | 10 ++++++++++ modules/programs/dotfiles.nix | 13 +++++++++++++ modules/programs/gnome.nix | 24 ++++++++++++++++++++++++ modules/programs/i3.nix | 16 ++++++++++++++++ modules/programs/infrastructure.nix | 9 +++++++++ modules/programs/passwords.nix | 8 ++++++++ modules/programs/shell.nix | 29 +++++++++++++++++++++++++++++ modules/programs/window-manager.nix | 18 ++++++++++++++++++ 8 files changed, 127 insertions(+) create mode 100644 modules/programs/accounting.nix create mode 100644 modules/programs/dotfiles.nix create mode 100644 modules/programs/gnome.nix create mode 100644 modules/programs/i3.nix create mode 100644 modules/programs/infrastructure.nix create mode 100644 modules/programs/passwords.nix create mode 100644 modules/programs/shell.nix create mode 100644 modules/programs/window-manager.nix (limited to 'modules/programs') diff --git a/modules/programs/accounting.nix b/modules/programs/accounting.nix new file mode 100644 index 0000000..5882436 --- /dev/null +++ b/modules/programs/accounting.nix @@ -0,0 +1,10 @@ +{ config, pkgs, ... }: + +{ environment.systemPackages = with pkgs; [ + aqbanking + ledger + bean-add + beancount + fava + ]; +} diff --git a/modules/programs/dotfiles.nix b/modules/programs/dotfiles.nix new file mode 100644 index 0000000..eed2223 --- /dev/null +++ b/modules/programs/dotfiles.nix @@ -0,0 +1,13 @@ +{ config, pkgs, ... }: + +let + pkgsUnstable = import {}; + # pkgsUnstable = pkgs; +in +{ environment.systemPackages = with pkgs; [ + git + stow + fzf + pkgsUnstable.ghq + ]; +} diff --git a/modules/programs/gnome.nix b/modules/programs/gnome.nix new file mode 100644 index 0000000..bd78545 --- /dev/null +++ b/modules/programs/gnome.nix @@ -0,0 +1,24 @@ +{ config, lib, pkgs, ... }: + +with lib; +{ services = { + gnome3 = { + gnome-documents.enable = false; + gnome-user-share.enable = false; + gnome-online-accounts.enable = false; + seahorse.enable = false; + tracker.enable = false; + }; + telepathy.enable = false; + + xserver = { + desktopManager.gnome3 = { + enable = true; + extraGSettingsOverrides = '' + [org.gnome.desktop.input-sources] + sources=[('xkb','${config.services.xserver.layout + (optionalString (config.services.xserver.xkbVariant != "") ("+" + config.services.xserver.xkbVariant))}')] + ''; + }; + }; + }; +} diff --git a/modules/programs/i3.nix b/modules/programs/i3.nix new file mode 100644 index 0000000..3bba3bb --- /dev/null +++ b/modules/programs/i3.nix @@ -0,0 +1,16 @@ +{ config, pkgs, ... }: + +{ services.xserver.windowManager.i3 = { + enable = true; + package = pkgs.i3-gaps; + }; + + environment.systemPackages = with pkgs; [ + i3status + i3lock-color + ]; + + imports = [ + ./window-manager.nix + ]; +} diff --git a/modules/programs/infrastructure.nix b/modules/programs/infrastructure.nix new file mode 100644 index 0000000..b41816e --- /dev/null +++ b/modules/programs/infrastructure.nix @@ -0,0 +1,9 @@ +{ config, pkgs, ... }: + +{ environment.systemPackages = with pkgs; [ + ansible + hugo + + nixops + ]; +} diff --git a/modules/programs/passwords.nix b/modules/programs/passwords.nix new file mode 100644 index 0000000..8c9d7cf --- /dev/null +++ b/modules/programs/passwords.nix @@ -0,0 +1,8 @@ +{ config, pkgs, ... }: + +{ environment.systemPackages = with pkgs; [ + keepassx-community + pass + pwgen + ]; +} diff --git a/modules/programs/shell.nix b/modules/programs/shell.nix new file mode 100644 index 0000000..3ea43ad --- /dev/null +++ b/modules/programs/shell.nix @@ -0,0 +1,29 @@ +{ config, pkgs, ... }: + +{ programs.zsh = { + enable = true; + promptInit = ""; + }; + programs.bash.enableCompletion = true; + programs.xonsh = { + enable = true; + }; + + environment.systemPackages = with pkgs; [ + vim + pv + file + htop + lsof + iftop + iotop + nmap + netperf + moreutils + psmisc + tree + zip + unzip + telnet + ]; +} diff --git a/modules/programs/window-manager.nix b/modules/programs/window-manager.nix new file mode 100644 index 0000000..c159374 --- /dev/null +++ b/modules/programs/window-manager.nix @@ -0,0 +1,18 @@ +{ config, pkgs, ... }: + +{ services.xserver.displayManager = { + lightdm = { + enable = true; + }; + }; + + environment.systemPackages = with pkgs; [ + dmenu + dunst + libnotify # for notify-send + sxhkd + scrot + + perlPackages.FileMimeInfo # xdg-utils uses this when no DE + ]; +} -- cgit 1.4.1