Enable fprintd for fingerprints with overlay patch. Change suspend delay on lid close from 5 to 10. Tell HM to use global packages.
This commit is contained in:
parent
f368984f35
commit
45ae40c04d
|
|
@ -60,6 +60,9 @@
|
||||||
config.common.default = "*";
|
config.common.default = "*";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Home manager: make user home-manager configs use system nixpkgs
|
||||||
|
home-manager.useGlobalPkgs = true;
|
||||||
|
|
||||||
###################################
|
###################################
|
||||||
# SECTION 2: HARDWARE CONFIGURATION
|
# SECTION 2: HARDWARE CONFIGURATION
|
||||||
###################################
|
###################################
|
||||||
|
|
@ -96,7 +99,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable fingerprint reader
|
# Enable fingerprint reader
|
||||||
# services.fprintd.enable = true;
|
services.fprintd.enable = true;
|
||||||
|
|
||||||
# Enable Bluetooth.
|
# Enable Bluetooth.
|
||||||
hardware.bluetooth.enable = true;
|
hardware.bluetooth.enable = true;
|
||||||
|
|
@ -119,8 +122,10 @@
|
||||||
security.pam.services.swaylock = { };
|
security.pam.services.swaylock = { };
|
||||||
|
|
||||||
# Make sure suspend actually happens
|
# Make sure suspend actually happens
|
||||||
|
# what this does is set the time it waits before sleeping to 10 (default 30)
|
||||||
|
# default is 30 for, say, if you plug in an external monitor after shutting the lid
|
||||||
services.logind.extraConfig = ''
|
services.logind.extraConfig = ''
|
||||||
InhibitDelayMaxSec=5
|
InhibitDelayMaxSec=10
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Allow steam to run nonfree
|
# Allow steam to run nonfree
|
||||||
|
|
@ -128,6 +133,16 @@
|
||||||
# "steam" "steam-original" "steam-run" "zoom-5.16.10.668"
|
# "steam" "steam-original" "steam-run" "zoom-5.16.10.668"
|
||||||
# ];
|
# ];
|
||||||
nixpkgs.config.allowUnfreePredicate = _: true;
|
nixpkgs.config.allowUnfreePredicate = _: true;
|
||||||
|
nixpkgs.overlays = [
|
||||||
|
(final: prev: {
|
||||||
|
fprintd = prev.fprintd.overrideAttrs (old: {
|
||||||
|
mesonCheckFlags = (old.mesonCheckFlags or [ ]) ++ [
|
||||||
|
# PAM related checks are timing out
|
||||||
|
"--no-suite" "fprintd:TestPamFprintd"
|
||||||
|
];
|
||||||
|
});
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
# List packages installed in system profile. To search, run:
|
# List packages installed in system profile. To search, run:
|
||||||
# $ nix search wget
|
# $ nix search wget
|
||||||
|
|
|
||||||
|
|
@ -23,16 +23,12 @@
|
||||||
outputs = { self, nixpkgs, home-manager }:
|
outputs = { self, nixpkgs, home-manager }:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
# overlays = [ (final: prev: { xdgTerminalExec = xdg-terminal-exec.defaultPackage; }) ];
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
oyvoLaptop = nixpkgs.lib.nixosSystem {
|
oyvoLaptop = nixpkgs.lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
modules = [
|
modules = [
|
||||||
# ({pkgs, ...}: {
|
|
||||||
# nixpkgs.overlays = overlays;
|
|
||||||
# })
|
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
# nur.nixosModules.nur
|
# nur.nixosModules.nur
|
||||||
|
|
|
||||||
4
home.nix
4
home.nix
|
|
@ -105,7 +105,9 @@ in
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# programs.waybar = import ./wayland/waybar.nix { inherit config lib pkgs; };
|
home.sessionVariables = {
|
||||||
|
NIXOS_OZONE_WL = "1";
|
||||||
|
};
|
||||||
|
|
||||||
# configure fonts correctly
|
# configure fonts correctly
|
||||||
fonts.fontconfig.enable = true;
|
fonts.fontconfig.enable = true;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue