ops/nixos: move some things into a graphical-clients module

This commit is contained in:
Luke Granger-Brown 2020-10-17 12:17:18 +01:00
parent 6edb818126
commit 89d3afd8f0
4 changed files with 34 additions and 30 deletions

View file

@ -107,9 +107,6 @@ in {
rebuilder
];
programs.mtr.enable = true;
services.openssh.enable = true;
# Define a user account.
users.mutableUsers = false;
users.users = {

View file

@ -0,0 +1,33 @@
# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
#
# SPDX-License-Identifier: Apache-2.0
{ pkgs, depot, lib, ... }:
let
inherit (lib) mkBefore;
in
{
imports = [
./client.nix
];
fonts.fonts = with pkgs; [
iosevka
];
services.udev.packages = [ pkgs.libu2f-host ];
services.pcscd.enable = true;
sound.enable = true;
hardware.pulseaudio.enable = true;
users.users.lukegb.packages = mkBefore (with pkgs; [
chromium
lutris
pavucontrol
rxvt_unicode
teamspeak_client
virtmanager
xclip
yubioath-desktop
]);
}

View file

@ -60,8 +60,6 @@ in {
# $ nix search wget
environment.systemPackages = with pkgs; [];
programs.mtr.enable = true;
services.openssh.enable = true;
services.openssh.ports = [ 20022 ];
networking.firewall = {

View file

@ -18,7 +18,7 @@ let
in {
imports = [
../lib/zfs.nix
../lib/client.nix
../lib/graphical-client.nix
../lib/whitby-distributed.nix
];
@ -115,32 +115,16 @@ in {
systemctl reboot
'')
];
fonts = {
fonts = with pkgs; [
iosevka
];
};
services.udev.packages = [ pkgs.libu2f-host ];
services.pcscd.enable = true;
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
programs.mtr.enable = true;
# programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
# List services that you want to enable:
# Enable the OpenSSH daemon.
services.openssh.enable = true;
# Enable CUPS to print documents.
services.printing.enable = true;
# Enable sound.
sound.enable = true;
hardware.pulseaudio.enable = true;
# Enable the X11 windowing system.
services.xserver.enable = true;
services.xserver.layout = "us";
@ -172,18 +156,10 @@ in {
"OPS_SECRETS_DEFAULT_NIX" = "ops/secrets/default.nix";
};
})
chromium
efibootmgr
iotop
iw
lutris
pavucontrol
rxvt_unicode
teamspeak_client
virtmanager
vulkan-tools
xclip
yubioath-desktop
];
};