2024-03-12 22:14:08 -04:00
|
|
|
|
# Framework Laptop 13 with AMD Ryzen 7640U, 32GB RAM, 1TB SSD.
|
2024-03-12 22:08:02 -04:00
|
|
|
|
|
2024-03-15 11:20:54 -04:00
|
|
|
|
{ config, pkgs, lib, ... }:
|
2024-03-12 22:08:02 -04:00
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
imports =
|
2024-03-16 16:01:42 -04:00
|
|
|
|
[
|
|
|
|
|
../../modules/homelab/virtualization.nix
|
2024-03-21 11:58:56 -04:00
|
|
|
|
../../modules/kde.nix
|
2024-03-14 16:04:15 -04:00
|
|
|
|
../../modules/plymouth.nix
|
2024-03-16 16:01:42 -04:00
|
|
|
|
../../modules/steam.nix
|
2024-03-16 19:26:37 -04:00
|
|
|
|
../../modules/zram_swap.nix
|
2024-03-16 16:01:42 -04:00
|
|
|
|
../../system
|
|
|
|
|
../../users/aly.nix
|
|
|
|
|
./hardware-configuration.nix # Include the results of the hardware scan.
|
2024-03-21 11:58:56 -04:00
|
|
|
|
# ../../modules/gnome
|
|
|
|
|
# ../../modules/gnome/fractional_scaling.nix
|
2024-03-12 22:08:02 -04:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
# Bootloader.
|
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
|
2024-03-12 22:17:57 -04:00
|
|
|
|
# Pull latest Linux kernel.
|
|
|
|
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
|
|
|
|
2024-03-12 22:08:02 -04:00
|
|
|
|
networking.hostName = "lavaridge"; # Define your hostname.
|
|
|
|
|
|
2024-03-15 11:20:54 -04:00
|
|
|
|
# Need to change the order pam loads its modules
|
|
|
|
|
# to get proper fingerprint behavior on GDM and the lockscreen.
|
|
|
|
|
security.pam.services.login.fprintAuth = false;
|
|
|
|
|
security.pam.services.gdm-fingerprint = lib.mkIf (config.services.fprintd.enable) {
|
|
|
|
|
text = ''
|
|
|
|
|
auth required pam_shells.so
|
|
|
|
|
auth requisite pam_nologin.so
|
|
|
|
|
auth requisite pam_faillock.so preauth
|
|
|
|
|
auth required ${pkgs.fprintd}/lib/security/pam_fprintd.so
|
|
|
|
|
auth optional pam_permit.so
|
|
|
|
|
auth required pam_env.so
|
|
|
|
|
auth [success=ok default=1] ${pkgs.gnome.gdm}/lib/security/pam_gdm.so
|
|
|
|
|
auth optional ${pkgs.gnome.gnome-keyring}/lib/security/pam_gnome_keyring.so
|
|
|
|
|
|
|
|
|
|
account include login
|
|
|
|
|
|
|
|
|
|
password required pam_deny.so
|
|
|
|
|
|
|
|
|
|
session include login
|
|
|
|
|
session optional ${pkgs.gnome.gnome-keyring}/lib/security/pam_gnome_keyring.so auto_start
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
2024-03-14 14:16:24 -04:00
|
|
|
|
services.fwupd.enable = true;
|
2024-03-14 14:14:37 -04:00
|
|
|
|
# # we need fwupd 1.9.7 to downgrade the fingerprint sensor firmware
|
|
|
|
|
# services.fwupd.package = (import (builtins.fetchTarball {
|
|
|
|
|
# url = "https://github.com/NixOS/nixpkgs/archive/bb2009ca185d97813e75736c2b8d1d8bb81bde05.tar.gz";
|
|
|
|
|
# sha256 = "sha256:003qcrsq5g5lggfrpq31gcvj82lb065xvr7bpfa8ddsw8x4dnysk";
|
|
|
|
|
# }) {
|
|
|
|
|
# inherit (pkgs) system;
|
|
|
|
|
# }).fwupd;
|
2024-03-12 22:08:02 -04:00
|
|
|
|
|
2024-03-15 10:27:46 -04:00
|
|
|
|
# nixpkgs.config.chromium.commandLineArgs = "--ozone-platform=wayland";
|
|
|
|
|
# environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
2024-03-15 00:02:03 -04:00
|
|
|
|
|
2024-03-12 22:08:02 -04:00
|
|
|
|
# This value determines the NixOS release from which the default
|
|
|
|
|
# settings for stateful data, like file locations and database versions
|
|
|
|
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
|
|
|
|
# this value at the release version of the first install of this system.
|
|
|
|
|
# Before changing this value read the documentation for this option
|
|
|
|
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
|
|
|
|
system.stateVersion = "23.11"; # Did you read the comment?
|
|
|
|
|
}
|