mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2024-12-24 14:18:50 +01:00
72 lines
1.8 KiB
Nix
72 lines
1.8 KiB
Nix
{ inputs, config, pkgs,
|
|
username, hostname, ... }:
|
|
|
|
let
|
|
inherit (import ./options.nix)
|
|
theLocale theTimezone gitUsername
|
|
wallpaperDir wallpaperGit
|
|
theLCVariables theKBDLayout;
|
|
in {
|
|
imports =
|
|
[
|
|
inputs.nixvim.nixosModules.nixvim
|
|
./hardware.nix
|
|
./config/system
|
|
];
|
|
|
|
# Enable networking
|
|
networking.hostName = "${hostname}"; # Define your hostname
|
|
networking.networkmanager.enable = true;
|
|
|
|
# Set your time zone
|
|
time.timeZone = "${theTimezone}";
|
|
|
|
# Select internationalisation properties
|
|
i18n.defaultLocale = "${theLocale}";
|
|
i18n.extraLocaleSettings = {
|
|
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}";
|
|
};
|
|
|
|
console.keyMap = "${theKBDLayout}";
|
|
|
|
# Define a user account.
|
|
users.users."${username}" = {
|
|
homeMode = "755";
|
|
isNormalUser = true;
|
|
description = "${gitUsername}";
|
|
extraGroups = [ "networkmanager" "wheel" "libvirtd" ];
|
|
packages = with pkgs; [];
|
|
};
|
|
|
|
environment.variables = {
|
|
POLKIT_BIN = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
|
|
};
|
|
|
|
# Optimization settings and garbage collection automation
|
|
nix = {
|
|
settings = {
|
|
auto-optimise-store = true;
|
|
experimental-features = [ "nix-command" "flakes" ];
|
|
substituters = ["https://hyprland.cachix.org"];
|
|
trusted-public-keys = [
|
|
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
|
|
];
|
|
};
|
|
gc = {
|
|
automatic = true;
|
|
dates = "weekly";
|
|
options = "--delete-older-than 7d";
|
|
};
|
|
};
|
|
|
|
system.stateVersion = "23.11";
|
|
}
|