idiosyn/nixos/module/default.nix
Mikael Voss e08b5571e1
Some checks are pending
nix flake check / check (aarch64-linux) (push) Waiting to run
nix flake check / check (x86_64-linux) (push) Waiting to run
Build with LLVM and musl
2024-11-01 12:07:09 +01:00

88 lines
1.6 KiB
Nix

{ self, catppuccin, ... }: { config, lib, pkgs, ... }: {
imports = [
catppuccin.nixosModules.catppuccin
] ++ (with self.nixosModules; [
broken
btrfs
clusters
datacow
email
ephemeral
iosched
kernel
musl
network
nix
openssh
powersupply
security
users
zram
]);
#boot.initrd.systemd.enable = true;
boot.tmp.useTmpfs = true;
catppuccin.enable = true;
documentation = {
dev.enable = true;
doc.enable = false;
info.enable = false;
man.generateCaches = false;
};
environment = {
binsh = "${pkgs.dash}${pkgs.dash.shellPath}";
shellAliases = builtins.mapAttrs (name: lib.mkOverride 999) {
ls = null;
ll = null;
l = null;
lsusb = "cyme --lsusb";
};
systemPackages = with pkgs; [
# Terminfo
kitty.terminfo
# Utilities
(lib.meta.setPrio 0 uutils-coreutils-noprefix)
# Hardware info
pciutils
cyme
];
};
hardware.block = {
defaultScheduler = "kyber";
defaultSchedulerRotational = "bfq";
scheduler = {
"mmcblk*" = "bfq";
};
};
hardware.enableRedistributableFirmware = false;
hardware.firmware = with pkgs; [
linux-firmware
#alsa-firmware
sof-firmware
];
ephemeral.enable = lib.mkDefault true;
location.provider = lib.mkIf config.hardware.graphics.enable "geoclue2";
services.dbus.implementation = "broker";
services.lvm.enable = lib.mkDefault false;
#system.etc.overlay.enable = true;
system.stateVersion = "24.11";
time.timeZone = lib.mkDefault "CET";
users.mutableUsers = false;
}