ops/nixos: move some things into a graphical-clients module
This commit is contained in:
parent
6edb818126
commit
89d3afd8f0
4 changed files with 34 additions and 30 deletions
|
@ -107,9 +107,6 @@ in {
|
||||||
rebuilder
|
rebuilder
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.mtr.enable = true;
|
|
||||||
services.openssh.enable = true;
|
|
||||||
|
|
||||||
# Define a user account.
|
# Define a user account.
|
||||||
users.mutableUsers = false;
|
users.mutableUsers = false;
|
||||||
users.users = {
|
users.users = {
|
||||||
|
|
33
ops/nixos/lib/graphical-client.nix
Normal file
33
ops/nixos/lib/graphical-client.nix
Normal 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
|
||||||
|
]);
|
||||||
|
}
|
|
@ -60,8 +60,6 @@ in {
|
||||||
# $ nix search wget
|
# $ nix search wget
|
||||||
environment.systemPackages = with pkgs; [];
|
environment.systemPackages = with pkgs; [];
|
||||||
|
|
||||||
programs.mtr.enable = true;
|
|
||||||
services.openssh.enable = true;
|
|
||||||
services.openssh.ports = [ 20022 ];
|
services.openssh.ports = [ 20022 ];
|
||||||
|
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
|
|
|
@ -18,7 +18,7 @@ let
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
../lib/zfs.nix
|
../lib/zfs.nix
|
||||||
../lib/client.nix
|
../lib/graphical-client.nix
|
||||||
../lib/whitby-distributed.nix
|
../lib/whitby-distributed.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -115,32 +115,16 @@ in {
|
||||||
systemctl reboot
|
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
|
# Some programs need SUID wrappers, can be configured further or are
|
||||||
# started in user sessions.
|
# started in user sessions.
|
||||||
programs.mtr.enable = true;
|
|
||||||
# programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
|
# programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
|
||||||
|
|
||||||
# List services that you want to enable:
|
# List services that you want to enable:
|
||||||
|
|
||||||
# Enable the OpenSSH daemon.
|
|
||||||
services.openssh.enable = true;
|
|
||||||
|
|
||||||
# Enable CUPS to print documents.
|
# Enable CUPS to print documents.
|
||||||
services.printing.enable = true;
|
services.printing.enable = true;
|
||||||
|
|
||||||
# Enable sound.
|
|
||||||
sound.enable = true;
|
|
||||||
hardware.pulseaudio.enable = true;
|
|
||||||
|
|
||||||
# Enable the X11 windowing system.
|
# Enable the X11 windowing system.
|
||||||
services.xserver.enable = true;
|
services.xserver.enable = true;
|
||||||
services.xserver.layout = "us";
|
services.xserver.layout = "us";
|
||||||
|
@ -172,18 +156,10 @@ in {
|
||||||
"OPS_SECRETS_DEFAULT_NIX" = "ops/secrets/default.nix";
|
"OPS_SECRETS_DEFAULT_NIX" = "ops/secrets/default.nix";
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
chromium
|
|
||||||
efibootmgr
|
efibootmgr
|
||||||
iotop
|
iotop
|
||||||
iw
|
iw
|
||||||
lutris
|
|
||||||
pavucontrol
|
|
||||||
rxvt_unicode
|
|
||||||
teamspeak_client
|
|
||||||
virtmanager
|
|
||||||
vulkan-tools
|
vulkan-tools
|
||||||
xclip
|
|
||||||
yubioath-desktop
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue