73 lines
1.8 KiB
Nix
73 lines
1.8 KiB
Nix
{ inputs, lux, ... }:
|
|
{
|
|
den.aspects.polaris = {
|
|
includes = [ lux.bundles._.local-session ];
|
|
|
|
provides.kiri = {
|
|
includes = with lux; [
|
|
bundles._.local-session-user
|
|
bitwarden
|
|
email
|
|
pim
|
|
mpv
|
|
sops-password
|
|
steam
|
|
];
|
|
};
|
|
|
|
provides.ergon = {
|
|
includes = with lux; [
|
|
sops-password
|
|
];
|
|
};
|
|
|
|
nixos =
|
|
{
|
|
config,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
imports = with inputs.nixos-hardware.nixosModules; [
|
|
common-pc
|
|
common-pc-ssd
|
|
common-cpu-amd
|
|
common-gpu-amd
|
|
];
|
|
|
|
services.hardware.openrgb.enable = true;
|
|
|
|
boot = {
|
|
loader = {
|
|
efi.canTouchEfiVariables = true;
|
|
systemd-boot = {
|
|
enable = true;
|
|
consoleMode = "auto";
|
|
configurationLimit = 5;
|
|
|
|
# Convert boot entry to a more readable name.
|
|
extraInstallCommands = ''
|
|
ENTRIES="${config.boot.loader.efi.efiSysMountPoint}/loader/entries"
|
|
PROFILES="/nix/var/nix/profiles"
|
|
|
|
for file in "$ENTRIES"/nixos-generation-*.conf; do
|
|
generation=$(${pkgs.coreutils}/bin/basename "$file" | ${pkgs.gnugrep}/bin/grep -o -E '[0-9]+')
|
|
timestamp=$(${pkgs.coreutils}/bin/stat -c %y "$PROFILES/system-$generation-link" 2>/dev/null | ${pkgs.coreutils}/bin/cut -d. -f1)
|
|
|
|
if [ -z "$timestamp" ]; then
|
|
timestamp="Unknown Date"
|
|
fi
|
|
|
|
${pkgs.gnused}/bin/sed -i "s/^version .*/version Generation $generation - $timestamp/" "$file"
|
|
done
|
|
'';
|
|
};
|
|
};
|
|
|
|
tmp.cleanOnBoot = true;
|
|
kernelPackages = pkgs.linuxPackages_latest;
|
|
};
|
|
};
|
|
};
|
|
}
|