Skip to content

Commit

Permalink
add shared/server
Browse files Browse the repository at this point in the history
  • Loading branch information
zowoq authored and mergify[bot] committed Oct 3, 2024
1 parent 61b4d9b commit c20ad69
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 13 deletions.
13 changes: 12 additions & 1 deletion darwin/server/default.nix
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
{ imports = [ ../common ]; }
{ lib, pkgs, ... }:
{
imports = [
../common
../../shared/server.nix
];

environment.systemPackages = map lib.lowPrio [
# no config.programs.git.package option on darwin
pkgs.git
];
}
16 changes: 4 additions & 12 deletions nixos/server/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,14 @@
}:
{

imports = [ ../common ];
imports = [
../common
../../shared/server.nix
];

environment = {
# List packages installed in system profile.
systemPackages = map lib.lowPrio [
pkgs.curl
pkgs.dnsutils
config.programs.git.package
pkgs.htop
pkgs.jq
pkgs.tmux
];
# Print the URL instead on servers
variables.BROWSER = "echo";
Expand All @@ -34,11 +31,6 @@
boot.loader.grub.configurationLimit = lib.mkDefault 5;
boot.loader.systemd-boot.configurationLimit = lib.mkDefault 5;

# Notice this also disables --help for some commands such es nixos-rebuild
documentation.enable = lib.mkDefault false;
documentation.doc.enable = lib.mkDefault false;
documentation.info.enable = lib.mkDefault false;
documentation.man.enable = lib.mkDefault false;
documentation.nixos.enable = lib.mkDefault false;

# No need for fonts on a server
Expand Down
18 changes: 18 additions & 0 deletions shared/server.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{ lib, pkgs, ... }:
{

# List packages installed in system profile.
environment.systemPackages = map lib.lowPrio [
pkgs.curl
pkgs.dnsutils
pkgs.htop
pkgs.jq
pkgs.tmux
];

# Notice this also disables --help for some commands such as nixos-rebuild
documentation.enable = lib.mkDefault false;
documentation.doc.enable = lib.mkDefault false;
documentation.info.enable = lib.mkDefault false;
documentation.man.enable = lib.mkDefault false;
}

0 comments on commit c20ad69

Please sign in to comment.