Nix-Config/system/configuration.nix

58 lines
1.1 KiB
Nix
Raw Normal View History

2023-02-05 14:48:47 +00:00
{ config, pkgs, ... }:
{
imports =
2023-02-05 16:57:39 +00:00
[
2023-02-05 14:48:47 +00:00
./hardware-configuration.nix
];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
2023-02-05 16:57:39 +00:00
networking.hostName = "thompson";
2023-02-05 14:48:47 +00:00
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
time.timeZone = "Europe/London";
# Enable sound.
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
users.users.tsv = {
isNormalUser = true;
2023-02-05 16:57:39 +00:00
extraGroups = [
"wheel"
"docker"
];
2023-02-05 14:48:47 +00:00
initialPassword = "password";
};
services.xserver.enable = true;
services.xserver.displayManager.sddm.enable = true;
services.xserver.desktopManager.plasma5.enable = true;
environment.systemPackages = with pkgs; [
2023-02-05 16:57:39 +00:00
neovim
2023-02-05 14:48:47 +00:00
wget
tmux
git
];
nixpkgs.config.allowUnfree = true;
2023-02-05 16:57:39 +00:00
virtualisation.docker.enable = true;
2023-02-05 14:48:47 +00:00
services.openssh.enable = true;
system.copySystemConfiguration = true;
2023-02-05 16:57:39 +00:00
system.stateVersion = "22.11"; # Don't change this
2023-02-05 14:48:47 +00:00
}