Rejig stuff so dingserver can use common

This commit is contained in:
2022-04-07 04:03:33 +01:00
parent a9c0cc8c1c
commit a5a0f367cb
6 changed files with 69 additions and 74 deletions

View File

@@ -1,10 +1,10 @@
{ config, pkgs, ...}:
{ config, pkgs, lib, ...}:
{
# Use the systemd-boot EFI boot loader.
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.systemd-boot.enable = lib.mkDefault true;
boot.loader.efi.canTouchEfiVariables = lib.mkDefault true;
nixpkgs.config.allowUnfree = true;
@@ -15,9 +15,6 @@
'';
};
networking.networkmanager.enable = true;
programs.nm-applet.enable = true;
# Set time zone.
time.timeZone = "Europe/London";
@@ -32,11 +29,6 @@
virtualisation.docker.enable = true;
hardware.opengl.driSupport32Bit = true;
hardware.bluetooth.enable = true;
services.blueman.enable = true;
hardware.cpu.intel.updateMicrocode = true;
# Define a user account. Don't forget to set a password with passwd.
@@ -44,7 +36,7 @@
isNormalUser = true;
home = "/home/daniel";
initialPassword = "password";
extraGroups = [ "wheel" "networkmanager" "docker" "video" ];
extraGroups = [ "wheel" "networkmanager" "docker" "video" "syncthing" ];
shell = pkgs.zsh;
};
@@ -74,27 +66,10 @@
};
services = {
gnome.gnome-keyring.enable = true;
openssh.enable = true;
pipewire = {
enable = true;
pulse.enable = true;
};
tailscale = {
enable = true;
};
};
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "21.05"; # Did you read the comment?
}

View File

@@ -3,30 +3,46 @@
{
security.pam.services.gdm.enableGnomeKeyring = true;
# Enable the X11 windowing system.
services.xserver = {
enable = true;
layout = "gb";
hardware.opengl.driSupport32Bit = true;
hardware.bluetooth.enable = true;
services.blueman.enable = true;
networking.networkmanager.enable = true;
programs.nm-applet.enable = true;
libinput = {
services = {
gnome.gnome-keyring.enable = true;
pipewire = {
enable = true;
pulse.enable = true;
};
xserver = {
enable = true;
mouse = {
accelProfile = "flat";
accelSpeed = "1";
layout = "gb";
libinput = {
enable = true;
mouse = {
accelProfile = "flat";
accelSpeed = "1";
};
};
};
displayManager = {
gdm.enable = true;
};
displayManager = {
gdm.enable = true;
};
windowManager.i3 = {
enable = true;
package = pkgs.i3-gaps;
extraPackages = with pkgs; [
flameshot
i3lock
i3utils
];
windowManager.i3 = {
enable = true;
package = pkgs.i3-gaps;
extraPackages = with pkgs; [
flameshot
i3lock
i3utils
];
};
};
};
}