dotfiles/nixos/boxes/yoga/default.nix

106 lines
2.6 KiB
Nix
Raw Normal View History

2022-12-19 09:09:08 +00:00
{
config,
pkgs,
inputs,
lib,
system,
nixpkgs-nixos-unstable-and-unfree,
...
}: {
2022-08-23 20:23:07 +01:00
networking.hostName = "yoga";
2022-12-19 09:09:08 +00:00
imports = [./hardware-configuration.nix ../../boot.nix ../../git];
2022-08-23 20:23:07 +01:00
boot.kernelPackages = pkgs.linuxPackages_latest;
hardware.trackpoint.enable = true;
services.hardware.bolt.enable = true;
2022-12-19 09:09:08 +00:00
services.fprintd = {enable = true;};
2022-08-23 20:23:07 +01:00
2022-12-19 09:09:08 +00:00
home-manager.users.cyryl = {lib, ...}: {
home.packages = with pkgs; [firefox vim gnome3.gedit git];
2022-08-23 20:23:07 +01:00
};
networking.networkmanager.enable = true;
time.timeZone = "Europe/London";
2023-01-05 23:00:50 +00:00
i18n.defaultLocale = "en_GB.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "en_GB.UTF-8";
LC_IDENTIFICATION = "en_GB.UTF-8";
LC_MEASUREMENT = "en_GB.UTF-8";
LC_MONETARY = "en_GB.UTF-8";
LC_NAME = "en_GB.UTF-8";
LC_NUMERIC = "en_GB.UTF-8";
LC_PAPER = "en_GB.UTF-8";
LC_TELEPHONE = "en_GB.UTF-8";
LC_TIME = "en_GB.UTF-8";
};
2022-08-23 20:23:07 +01:00
services.xserver.enable = true;
services.xserver.displayManager.gdm.enable = true;
services.xserver.desktopManager.gnome.enable = true;
services.xserver = {
layout = "pl";
xkbVariant = "";
};
console.keyMap = "pl2";
services.printing.enable = true;
sound.enable = true;
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
2023-01-05 23:00:50 +00:00
# If you want to use JACK applications, uncomment this
#jack.enable = true;
# use the example session manager (no others are packaged yet so this is enabled by default,
# no need to redefine it in your config for now)
#media-session.enable = true;
2022-08-23 20:23:07 +01:00
};
2023-01-05 23:00:50 +00:00
# Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true;
2022-08-23 20:23:07 +01:00
users.users.cyryl = {
isNormalUser = true;
description = "cyryl";
2023-01-05 23:00:50 +00:00
extraGroups = [ "networkmanager" "wheel" ];
2022-12-19 09:09:08 +00:00
packages = with pkgs; [
2023-01-05 23:00:50 +00:00
firefox
2022-12-19 09:09:08 +00:00
];
2022-08-23 20:23:07 +01:00
};
services.fwupd.enable = true;
services.xserver.displayManager.autoLogin.enable = true;
services.xserver.displayManager.autoLogin.user = "cyryl";
# Workaround for GNOME autologin: https://github.com/NixOS/nixpkgs/issues/103746#issuecomment-945091229
systemd.services."getty@tty1".enable = false;
systemd.services."autovt@tty1".enable = false;
nix = {
2022-12-04 12:33:54 +00:00
settings.auto-optimise-store = true;
2022-08-23 20:23:07 +01:00
gc.automatic = true;
optimise.automatic = true;
package = pkgs.nixUnstable;
extraOptions = ''
experimental-features = nix-command flakes
'';
};
2023-01-05 23:00:50 +00:00
system = {stateVersion = "22.11";};
2022-08-23 20:23:07 +01:00
}