84 lines
2.3 KiB
Nix
84 lines
2.3 KiB
Nix
{ pkgs, ... }:
|
||
{
|
||
imports =
|
||
[
|
||
../../config-manager/default.nix
|
||
./hardware-configuration.nix
|
||
./modules
|
||
];
|
||
|
||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||
nixpkgs.config.allowUnfree = true;
|
||
|
||
time.timeZone = "Europe/Stockholm";
|
||
|
||
i18n.defaultLocale = "en_GB.UTF-8";
|
||
|
||
i18n.extraLocaleSettings = {
|
||
LC_ADDRESS = "sv_SE.UTF-8";
|
||
LC_IDENTIFICATION = "sv_SE.UTF-8";
|
||
LC_MEASUREMENT = "sv_SE.UTF-8";
|
||
LC_MONETARY = "sv_SE.UTF-8";
|
||
LC_NAME = "sv_SE.UTF-8";
|
||
LC_NUMERIC = "sv_SE.UTF-8";
|
||
LC_PAPER = "sv_SE.UTF-8";
|
||
LC_TELEPHONE = "sv_SE.UTF-8";
|
||
LC_TIME = "sv_SE.UTF-8";
|
||
};
|
||
|
||
services.xserver.enable = true;
|
||
|
||
# Enable the GNOME Desktop Environment.
|
||
services.xserver.displayManager.gdm.enable = true;
|
||
services.xserver.desktopManager.gnome.enable = true;
|
||
|
||
# Enable automatic login for the user.
|
||
services.xserver.displayManager.autoLogin.enable = true;
|
||
services.xserver.displayManager.autoLogin.user = "alex";
|
||
|
||
# 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;
|
||
|
||
services.xserver.xkb = {
|
||
layout = "se";
|
||
variant = "";
|
||
};
|
||
|
||
console.keyMap = "sv-latin1";
|
||
|
||
hardware.pulseaudio.enable = false;
|
||
security.rtkit.enable = true;
|
||
services.pipewire = {
|
||
enable = true;
|
||
alsa.enable = true;
|
||
alsa.support32Bit = true;
|
||
pulse.enable = true;
|
||
};
|
||
|
||
users.users.alex = {
|
||
isNormalUser = true;
|
||
description = "alex";
|
||
extraGroups = [ "networkmanager" "wheel" ];
|
||
packages = [];
|
||
};
|
||
|
||
environment.variables.EDITOR = "vim";
|
||
|
||
environment.systemPackages = [
|
||
pkgs.vim
|
||
];
|
||
|
||
config-manager = {
|
||
flakePath = "/home/alex/config";
|
||
};
|
||
|
||
# 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. It‘s 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 = "24.05"; # Did you read the comment?
|
||
}
|