72 lines
1.6 KiB
Nix
72 lines
1.6 KiB
Nix
{ config, pkgs, inputs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
./modules/system.nix
|
|
./modules/hyprland.nix
|
|
];
|
|
|
|
# Bootloader - BIOS/Legacy (forlegacy BIOS)
|
|
boot.loader.grub.enable = true;
|
|
boot.loader.grub.device = "/dev/sda";
|
|
|
|
# For systemd boot
|
|
#boot.loader.systemd-boot.enable = true;
|
|
#boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
|
# Networking
|
|
networking.hostName = "MYHOST";
|
|
networking.networkmanager.enable = true;
|
|
|
|
# Time zone
|
|
time.timeZone = "Europe/Oslo";
|
|
|
|
# Locale
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
i18n.extraLocaleSettings = {
|
|
LC_ADDRESS = "nb_NO.UTF-8";
|
|
LC_IDENTIFICATION = "nb_NO.UTF-8";
|
|
LC_MEASUREMENT = "nb_NO.UTF-8";
|
|
LC_MONETARY = "nb_NO.UTF-8";
|
|
LC_NAME = "nb_NO.UTF-8";
|
|
LC_NUMERIC = "nb_NO.UTF-8";
|
|
LC_PAPER = "nb_NO.UTF-8";
|
|
LC_TELEPHONE = "nb_NO.UTF-8";
|
|
LC_TIME = "nb_NO.UTF-8";
|
|
};
|
|
|
|
# Enable flakes
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
# User account
|
|
users.users.YOURUSERNAME = {
|
|
isNormalUser = true;
|
|
description = "User";
|
|
extraGroups = [ "networkmanager" "wheel" "video" "audio" ];
|
|
shell = pkgs.zsh;
|
|
};
|
|
|
|
# Auto-login to Hyprland
|
|
services.greetd = {
|
|
enable = true;
|
|
settings = {
|
|
default_session = {
|
|
command = "${pkgs.tuigreet}/bin/tuigreet --time --cmd Hyprland";
|
|
user = "YOURUSERNAME";
|
|
};
|
|
initial_session = {
|
|
command = "Hyprland";
|
|
user = "YOURUSERNAME";
|
|
};
|
|
};
|
|
};
|
|
|
|
# Allow unfree packages
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
# System version
|
|
system.stateVersion = "24.05";
|
|
}
|