plasma
This commit is contained in:
@@ -1,55 +1,68 @@
|
||||
{ pkgs, system, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
namespace,
|
||||
pkgs,
|
||||
system,
|
||||
...
|
||||
}:
|
||||
let
|
||||
timezone = "America/Chicago";
|
||||
inherit (lib.${namespace}) mkOpt;
|
||||
cfg = config.${namespace}.system;
|
||||
isArm = system == "aarch64-linux";
|
||||
in
|
||||
{
|
||||
options.${namespace}.system = {
|
||||
timezone = mkOpt lib.types.str "America/Chicago" "System timezone (e.g. \"America/New_York\").";
|
||||
|
||||
environment.systemPackages =
|
||||
with pkgs;
|
||||
[
|
||||
brightnessctl
|
||||
dconf
|
||||
disko
|
||||
kdiskmark
|
||||
nil
|
||||
nix-output-monitor
|
||||
nixos-anywhere
|
||||
qemu
|
||||
udisks2
|
||||
unzip
|
||||
]
|
||||
++ (
|
||||
if isArm then
|
||||
[ ]
|
||||
else
|
||||
[
|
||||
acpilight
|
||||
aha
|
||||
aspell
|
||||
aspellDicts.en
|
||||
aspellDicts.en-computers
|
||||
aspellDicts.en-science
|
||||
ddcui
|
||||
ddcutil
|
||||
ddccontrol
|
||||
ddccontrol-db
|
||||
efibootmgr
|
||||
memtest86-efi
|
||||
memtest86plus
|
||||
os-prober
|
||||
sbctl
|
||||
tpm2-tools
|
||||
tpm2-tss
|
||||
winetricks
|
||||
]
|
||||
);
|
||||
|
||||
# Time config
|
||||
time = {
|
||||
# Set your time zone.
|
||||
timeZone = timezone;
|
||||
stateVersion =
|
||||
mkOpt lib.types.str "23.11"
|
||||
"NixOS state version. Should match the version in use when the system was first installed.";
|
||||
};
|
||||
|
||||
system.stateVersion = "23.11";
|
||||
config = {
|
||||
environment.systemPackages =
|
||||
with pkgs;
|
||||
[
|
||||
brightnessctl
|
||||
dconf
|
||||
disko
|
||||
kdiskmark
|
||||
nil
|
||||
nix-output-monitor
|
||||
nixos-anywhere
|
||||
qemu
|
||||
udisks2
|
||||
unzip
|
||||
]
|
||||
++ (
|
||||
if isArm then
|
||||
[ ]
|
||||
else
|
||||
[
|
||||
acpilight
|
||||
aha
|
||||
aspell
|
||||
aspellDicts.en
|
||||
aspellDicts.en-computers
|
||||
aspellDicts.en-science
|
||||
ddcui
|
||||
ddcutil
|
||||
ddccontrol
|
||||
ddccontrol-db
|
||||
efibootmgr
|
||||
memtest86-efi
|
||||
memtest86plus
|
||||
os-prober
|
||||
sbctl
|
||||
tpm2-tools
|
||||
tpm2-tss
|
||||
winetricks
|
||||
]
|
||||
);
|
||||
|
||||
time.timeZone = cfg.timezone;
|
||||
|
||||
system.stateVersion = cfg.stateVersion;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user