2024-01-13 07:05:01 +01:00
|
|
|
{ inputs, config, pkgs, username,
|
|
|
|
hostname, gitUsername, theLocale,
|
2024-01-23 03:02:48 +01:00
|
|
|
theTimezone, wallpaperDir, wallpaperGit,
|
|
|
|
theLCVariables, theKBDLayout, ... }:
|
2023-12-14 00:09:39 +01:00
|
|
|
|
2024-01-19 07:13:49 +01:00
|
|
|
{
|
2023-12-14 00:09:39 +01:00
|
|
|
imports =
|
2024-01-18 05:33:57 +01:00
|
|
|
[
|
|
|
|
./hardware.nix
|
2024-01-20 23:03:08 +01:00
|
|
|
./config/system
|
2023-12-14 00:09:39 +01:00
|
|
|
];
|
|
|
|
|
2024-01-09 23:50:24 +01:00
|
|
|
# Enable networking
|
2024-01-17 07:50:43 +01:00
|
|
|
networking.hostName = "${hostname}"; # Define your hostname
|
2024-01-09 23:50:24 +01:00
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
|
2024-01-17 07:50:43 +01:00
|
|
|
# Set your time zone
|
2024-01-13 07:05:01 +01:00
|
|
|
time.timeZone = "${theTimezone}";
|
2023-12-14 00:09:39 +01:00
|
|
|
|
2024-01-17 07:50:43 +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-23 03:02:48 +01:00
|
|
|
LC_ADDRESS = "${theLCVariables}";
|
|
|
|
LC_IDENTIFICATION = "${theLCVariables}";
|
|
|
|
LC_MEASUREMENT = "${theLCVariables}";
|
|
|
|
LC_MONETARY = "${theLCVariables}";
|
|
|
|
LC_NAME = "${theLCVariables}";
|
|
|
|
LC_NUMERIC = "${theLCVariables}";
|
|
|
|
LC_PAPER = "${theLCVariables}";
|
|
|
|
LC_TELEPHONE = "${theLCVariables}";
|
|
|
|
LC_TIME = "${theLCVariables}";
|
2023-12-14 00:09:39 +01:00
|
|
|
};
|
|
|
|
|
2024-01-17 07:50:43 +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
|
|
|
|
2024-01-19 05:22:47 +01:00
|
|
|
# List System Programs
|
|
|
|
environment.systemPackages = with pkgs; [
|
2024-01-20 04:40:26 +01:00
|
|
|
wget curl git cmatrix lolcat neofetch htop btop libvirt
|
2024-01-19 05:22:47 +01:00
|
|
|
polkit_gnome lm_sensors unzip unrar libnotify
|
|
|
|
v4l-utils ydotool wl-clipboard socat cowsay lsd
|
|
|
|
pkg-config meson hugo gnumake ninja go nodejs symbola
|
2024-01-23 02:23:28 +01:00
|
|
|
noto-fonts-color-emoji material-icons brightnessctl
|
2024-01-19 05:22:47 +01:00
|
|
|
];
|
|
|
|
|
2024-01-21 05:23:17 +01:00
|
|
|
programs.steam.gamescopeSession.enable = true;
|
2024-01-23 02:23:28 +01:00
|
|
|
programs.dconf.enable = true;
|
2024-01-23 02:38:18 +01:00
|
|
|
programs.hyprland = {
|
|
|
|
enable = true;
|
|
|
|
xwayland.enable = true;
|
|
|
|
};
|
2024-01-20 04:40:26 +01:00
|
|
|
|
2024-01-09 23:50:24 +01:00
|
|
|
# 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;
|
|
|
|
};
|
|
|
|
|
2024-01-18 05:33:57 +01:00
|
|
|
environment.variables = {
|
2024-01-19 07:25:02 +01:00
|
|
|
POLKIT_BIN = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
|
2024-01-18 05:33:57 +01:00
|
|
|
};
|
|
|
|
|
2024-01-17 07:50:43 +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";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-01-17 07:50:43 +01:00
|
|
|
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
|
|
|
}
|