Tidy up config, remove lix.

This commit is contained in:
Fern Garden 2025-07-26 08:43:20 +08:00
parent daf692e9a6
commit 9339a196aa
6 changed files with 17 additions and 126 deletions

View file

@ -15,9 +15,15 @@ with lib; {
"flakes"
];
# Set $NIX_PATH.
nix.nixPath = ["nixpkgs=${inputs.nixpkgs}"];
# Enable redistributable firmware.
hardware.enableRedistributableFirmware = true;
# Enable firmware updates.
services.fwupd.enable = true;
# Set time zone.
time.timeZone = "Australia/Perth";
@ -62,10 +68,10 @@ with lib; {
# Use fish shell
programs.fish = {
enable = true;
shellAbbrs = {
nrs = "nixos-rebuild switch --use-remote-sudo --flake /home/fern/Repositories/flock/";
nrt = "nixos-rebuild test --use-remote-sudo --flake /home/fern/Repositories/flock/";
nrb = "nixos-rebuild boot --use-remote-sudo --flake /home/fern/Repositories/flock/";
shellAbbrs = let flake = "/home/fern/Repositories/flock"; in {
ns = "nh os switch --flake ${flake}";
nt = "nh os test--flake ${flake}";
nb = "nh os boot --flake ${flake}";
};
interactiveShellInit = ''
# set gruvbox theme

View file

@ -28,9 +28,6 @@ with lib; {
binfmt.emulatedSystems = ["aarch64-linux"];
};
# Enable firmware updates.
services.fwupd.enable = true;
# Enable zram swap.
zramSwap.enable = true;
@ -82,9 +79,6 @@ with lib; {
]
);
# Remove NixOS HTML manual
documentation.doc.enable = false;
# Run electron apps under wayland.
environment.sessionVariables.NIXOS_OZONE_WL = "1";
@ -136,7 +130,7 @@ with lib; {
# Enable CUPS to print documents.
services.printing = {
enable = true;
drivers = [pkgs.brlaser pkgs.cups-dymo];
drivers = [pkgs.brlaser pkgs.cups-dymo]; # Brother laser printer & Dymo label printer.
};
# https://github.com/tailscale/tailscale/issues/4432#issuecomment-1112819111

View file

@ -1,9 +1,4 @@
{
modulesPath,
lib,
...
}:
with lib; {
{modulesPath, ...}: {
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
../. # Server config.