chore: reorganise common modules
Signed-off-by: Lander Van den Bulcke <landervandenbulcke@gmail.com>
This commit is contained in:
parent
eebd71f003
commit
7230527d95
13 changed files with 109 additions and 124 deletions
|
|
@ -1,16 +1,15 @@
|
|||
# Edit this configuration file to define what should be installed on
|
||||
# your system. Help is available in the configuration.nix(5) man page
|
||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
[
|
||||
./hardware-configuration.nix
|
||||
./home-manager.nix
|
||||
./yubikey-gpg.nix
|
||||
./virt.nix
|
||||
|
||||
../common/global
|
||||
../common/users/lander
|
||||
|
||||
../common/optional/yubikey-gpg.nix
|
||||
../common/optional/virt.nix
|
||||
];
|
||||
|
||||
# Bootloader.
|
||||
|
|
@ -28,24 +27,6 @@
|
|||
# Enable networking
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
# Set your time zone.
|
||||
time.timeZone = "Europe/Brussels";
|
||||
|
||||
# Select internationalisation properties.
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
|
||||
i18n.extraLocaleSettings = {
|
||||
LC_ADDRESS = "nl_BE.UTF-8";
|
||||
LC_IDENTIFICATION = "nl_BE.UTF-8";
|
||||
LC_MEASUREMENT = "nl_BE.UTF-8";
|
||||
LC_MONETARY = "nl_BE.UTF-8";
|
||||
LC_NAME = "nl_BE.UTF-8";
|
||||
LC_NUMERIC = "nl_BE.UTF-8";
|
||||
LC_PAPER = "nl_BE.UTF-8";
|
||||
LC_TELEPHONE = "nl_BE.UTF-8";
|
||||
LC_TIME = "nl_BE.UTF-8";
|
||||
};
|
||||
|
||||
# Enable the X11 windowing system.
|
||||
services.xserver.enable = true;
|
||||
|
||||
|
|
@ -82,14 +63,6 @@
|
|||
# services.xserver.libinput.enable = true;
|
||||
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
users.users.lander = {
|
||||
isNormalUser = true;
|
||||
description = "Lander";
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
packages = with pkgs; [
|
||||
# thunderbird
|
||||
];
|
||||
};
|
||||
|
||||
# Install firefox.
|
||||
programs.firefox.enable = true;
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
{ inputs, outputs, ... }: {
|
||||
imports = [
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
];
|
||||
|
||||
home-manager = {
|
||||
extraSpecialArgs = { inherit inputs outputs; };
|
||||
users = {
|
||||
lander = import ../../home-manager/home.nix;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,31 +0,0 @@
|
|||
{config, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.dconf.enable = true;
|
||||
|
||||
users.users.lander.extraGroups = [ "libvirtd" ];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
virt-manager
|
||||
virt-viewer
|
||||
spice
|
||||
spice-gtk
|
||||
spice-protocol
|
||||
win-virtio
|
||||
win-spice
|
||||
gnome.adwaita-icon-theme
|
||||
];
|
||||
|
||||
virtualisation = {
|
||||
libvirtd = {
|
||||
enable = true;
|
||||
qemu = {
|
||||
swtpm.enable = true;
|
||||
ovmf.enable = true;
|
||||
ovmf.packages = [ pkgs.OVMFFull.fd ];
|
||||
};
|
||||
};
|
||||
spiceUSBRedirection.enable = true;
|
||||
};
|
||||
services.spice-vdagentd.enable = true;
|
||||
}
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.ssh.startAgent = false;
|
||||
|
||||
services.pcscd.enable = true;
|
||||
|
||||
programs.gnupg.agent = {
|
||||
enable = true;
|
||||
enableSSHSupport = true;
|
||||
};
|
||||
|
||||
services.gnome.gnome-keyring.enable = lib.mkForce false;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
yubikey-personalization
|
||||
yubioath-flutter
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue