moved gpg conf to shared

This commit is contained in:
Rouven Seifert 2022-12-29 20:48:40 +01:00
parent dcf91b8d59
commit 262ca5c07a
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
3 changed files with 23 additions and 29 deletions

View file

@ -1,6 +1,8 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
{ {
nix.settings.experimental-features = [ "nix-command" "flakes" ];
imports = imports =
[ [
./hardware-configuration.nix ./hardware-configuration.nix
@ -9,25 +11,21 @@
../../shared/vim.nix ../../shared/vim.nix
../../shared/input.nix ../../shared/input.nix
../../shared/sops.nix ../../shared/sops.nix
../../shared/gpg.nix
]; ];
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# Use the systemd-boot EFI boot loader. # Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
# Set your time zone.
time.timeZone = "Europe/Berlin"; time.timeZone = "Europe/Berlin";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8"; i18n.defaultLocale = "en_US.UTF-8";
console = { console = {
font = "Lat2-Terminus16"; font = "Lat2-Terminus16";
useXkbConfig = true; # use xkbOptions in tty. useXkbConfig = true; # use xkbOptions in tty.
}; };
# Enable the X11 windowing system.
services.xserver = { services.xserver = {
enable = true; enable = true;
@ -50,35 +48,13 @@
hardware.pulseaudio.enable = true; hardware.pulseaudio.enable = true;
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
# enable polkit
security.polkit.enable = true;
# Baseline of installed packages
environment.systemPackages = with pkgs; [
# essentials
wget
gcc
htop
dig
traceroute
killall
# dev
jdk
maven
];
# control display backlight # control display backlight
programs.light.enable = true; programs.light.enable = true;
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
services = { services = {
blueman.enable = true; # bluetooth blueman.enable = true; # bluetooth
devmon.enable = true; # automount stuff devmon.enable = true; # automount stuff
pcscd.enable = true; # yubikey and smartcard handling
printing.enable = true; printing.enable = true;
fprintd.enable = true; # log in using fingerprint fprintd.enable = true; # log in using fingerprint
picom.enable = true; # window transparency picom.enable = true; # window transparency
@ -90,6 +66,16 @@
virtualisation.libvirtd.enable = true; virtualisation.libvirtd.enable = true;
virtualisation.spiceUSBRedirection.enable = true; virtualisation.spiceUSBRedirection.enable = true;
environment.systemPackages = with pkgs; [
# essentials
wget
gcc
git
htop
dig
traceroute
killall
];
system.stateVersion = "22.11"; system.stateVersion = "22.11";
} }

8
shared/gpg.nix Normal file
View file

@ -0,0 +1,8 @@
{ config, ... }:
{
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
services.pcscd.enable = true;
}

View file

@ -3,7 +3,7 @@
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
users.users.rouven = { users.users.rouven = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ "wheel" "video" "libvirtd" "networkmanager" ]; extraGroups = [ "wheel" "video" "libvirtd" ];
}; };
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;