This commit is contained in:
Audrey 2025-03-16 17:41:17 -07:00
parent 11ed152b8f
commit ba31ea0950
3 changed files with 37 additions and 9 deletions

View File

@ -45,13 +45,19 @@
kdePackages.plasma-thunderbolt kdePackages.plasma-thunderbolt
]; ];
systemd.services.clear-downloads = { systemd.tmpfiles.settings.usersetup."e!"."/home/audrey/Downloads" = {
description = "Wipe downloads on boot"; user = "audrey";
group = "users";
mode = "0700";
age = "1d";
};
systemd.services.sysfs-settings = {
description = "Set desktop sysfs tunables";
script = '' script = ''
rm -rf /home/audrey/Downloads # https://bugzilla.kernel.org/show_bug.cgi?id=219112
mkdir /home/audrey/Downloads test "$(cat /sys/module/kvm/parameters/nx_huge_pages)" = "never" && exit 0 || true
chown audrey:users /home/audrey/Downloads echo "never" | tee /sys/module/kvm/parameters/nx_huge_pages
''; '';
wantedBy = [ "multi-user.target" ]; before = [ "boot-complete.target" ];
}; };
} }

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
let nixKey = "/var/lib/nix/binary-cache-key";
{ in {
imports = [ ./overlays/packages.nix ]; imports = [ ./overlays/packages.nix ];
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
@ -11,6 +11,20 @@
boot.loader.efi.efiSysMountPoint = "/boot"; boot.loader.efi.efiSysMountPoint = "/boot";
nix.settings.extra-experimental-features = "nix-command flakes"; nix.settings.extra-experimental-features = "nix-command flakes";
nix.settings.trusted-users = [ "audrey" ];
nix.settings.max-jobs = 1;
nix.settings.cores = 0;
#nix.settings.secret-key-files = [ nixKey ];
systemd.services.nix-key-setup = {
description = "Generate a nix build signing key";
script = ''
test -f ${nixKey} && test -f ${nixKey}.pub && exit 0 || true
mkdir -p "$(dirname "${nixKey}")"
${config.nix.package}/bin/nix-store --generate-binary-cache-key ${config.networking.hostName} ${nixKey} ${nixKey}.pub
'';
wantedBy = [ "multi-user.target" ];
};
# Select internationalisation properties. # Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8"; i18n.defaultLocale = "en_US.UTF-8";
@ -31,7 +45,6 @@
description = "Audrey Dutcher"; description = "Audrey Dutcher";
isNormalUser = true; isNormalUser = true;
extraGroups = [ "wheel" "docker" ]; extraGroups = [ "wheel" "docker" ];
packages = with pkgs; [ ];
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
@ -44,6 +57,7 @@
file file
stdenv.cc stdenv.cc
patchelf patchelf
meld
# language servers # language servers
nil nil

View File

@ -10,6 +10,8 @@
# fstrim is also enabled by nixos-hardware, but only runs for /boot # fstrim is also enabled by nixos-hardware, but only runs for /boot
services.fprintd.enable = true; services.fprintd.enable = true;
# fix hang on initial login
security.pam.services.login.fprintAuth = false;
networking.hostName = "daisy"; networking.hostName = "daisy";
networking.hostId = "293a1290"; networking.hostId = "293a1290";
@ -26,5 +28,11 @@
environment.systemPackages = [ environment.systemPackages = [
pkgs.idapro9 pkgs.idapro9
pkgs.qemu_kvm
(pkgs.runCommand "OVMF-fd" {} ''
mkdir -p $out/share/FV
ln -s ${pkgs.OVMF.fd}/FV/OVMF_CODE.fd $out/share/FV/OVMF_CODE.fd
'')
pkgs.OVMF.fd
]; ];
} }