zaneyos/default.nix

122 lines
3.0 KiB
Nix
Raw Normal View History

2024-01-13 07:05:01 +01:00
{ inputs, config, pkgs, username,
hostname, gitUsername, theLocale,
theTimezone, wallpaperDir, wallpaperGit, ... }:
2023-12-14 00:09:39 +01:00
{
2023-12-14 00:09:39 +01:00
imports =
[
./hardware.nix
./config/system/boot.nix
./config/system/polkit.nix
./config/system/intel-opengl.nix
./config/system/amd-opengl.nix
./config/system/autorun.nix
2023-12-14 00:09:39 +01:00
];
2024-01-09 23:50:24 +01:00
# Enable networking
networking.hostName = "${hostname}"; # Define your hostname
2024-01-09 23:50:24 +01:00
networking.networkmanager.enable = true;
# Set your time zone
2024-01-13 07:05:01 +01:00
time.timeZone = "${theTimezone}";
2023-12-14 00:09:39 +01:00
# Select internationalisation properties
2024-01-13 07:05:01 +01:00
i18n.defaultLocale = "${theLocale}";
2023-12-14 00:09:39 +01:00
i18n.extraLocaleSettings = {
2024-01-13 07:05:01 +01:00
LC_ADDRESS = "${theLocale}";
LC_IDENTIFICATION = "${theLocale}";
LC_MEASUREMENT = "${theLocale}";
LC_MONETARY = "${theLocale}";
LC_NAME = "${theLocale}";
LC_NUMERIC = "${theLocale}";
LC_PAPER = "${theLocale}";
LC_TELEPHONE = "${theLocale}";
LC_TIME = "${theLocale}";
2023-12-14 00:09:39 +01:00
};
# Define a user account.
2024-01-12 09:00:46 +01:00
users.users."${username}" = {
2024-01-11 07:19:08 +01:00
homeMode = "755";
2023-12-14 00:09:39 +01:00
isNormalUser = true;
2024-01-13 07:05:01 +01:00
description = "${gitUsername}";
2024-01-09 23:50:24 +01:00
extraGroups = [ "networkmanager" "wheel" ];
2023-12-14 00:09:39 +01:00
packages = with pkgs; [];
};
2024-01-09 23:50:24 +01:00
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
2023-12-14 00:09:39 +01:00
# List System Programs
environment.systemPackages = with pkgs; [
wget curl cmatrix lolcat neofetch htop btop libvirt
polkit_gnome lm_sensors unzip unrar libnotify
v4l-utils ydotool wl-clipboard socat cowsay lsd
pkg-config meson hugo gnumake ninja go nodejs symbola
noto-fonts-color-emoji material-icons brightnessctl
];
2023-12-14 00:09:39 +01:00
# Steam Configuration
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
};
2024-01-09 23:50:24 +01:00
programs.hyprland = {
enable = true;
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
};
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
programs.mtr.enable = true;
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
environment.variables = {
};
2024-01-09 23:50:24 +01:00
# List services that you want to enable:
services.openssh.enable = true;
services.fstrim.enable = true;
services.xserver = {
2024-01-11 06:57:01 +01:00
enable = true;
2024-01-09 23:50:24 +01:00
layout = "us";
xkbVariant = "";
libinput.enable = true;
videoDrivers = [ "amdgpu" ];
2024-01-11 06:50:20 +01:00
displayManager.gdm = {
enable = true;
wayland = true;
};
2024-01-09 23:50:24 +01:00
};
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
};
hardware.pulseaudio.enable = false;
sound.enable = true;
security.rtkit.enable = true;
2024-01-11 05:03:15 +01:00
programs.thunar.enable = true;
services.gvfs.enable = true;
services.tumbler.enable = true;
2024-01-09 23:50:24 +01:00
# Optimization settings and garbage collection automation
2023-12-14 00:09:39 +01:00
nix = {
settings.auto-optimise-store = true;
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
};
system.stateVersion = "23.11";
2024-01-09 23:50:24 +01:00
nix.settings.experimental-features = [ "nix-command" "flakes" ];
2023-12-14 00:09:39 +01:00
}