add(nixos): xscreensaver for xmonad

This commit is contained in:
Léana 江 2023-12-26 18:06:36 +01:00 committed by Léana 江
parent f4beaf22cb
commit 98d0feb8f0
10 changed files with 118 additions and 34 deletions

View file

@ -1,18 +1,29 @@
{pkgs, ...}: {
{...}: {
services.xserver.enable = true;
services.xserver = {
enable = true;
autoRepeatDelay = 300;
autoRepeatInterval = 40;
};
services.xserver = {
displayManager.gdm.enable = true;
windowManager.xmonad = {
enable = true;
enableContribAndExtras = true;
extraPackages = hp: with hp; [neat-interpolation];
};
};
programs.nm-applet.enable = true;
programs.gnome-terminal.enable = true;
services.xserver.libinput = {
mouse = {
naturalScrolling = true;
accelSpeed = "-0.5";
};
touchpad = {
naturalScrolling = true;
};
};
programs.light.enable = true;
}

View file

@ -4,33 +4,39 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports = [ ];
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "usbhid" "sr_mod" ];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/ec32942b-37a7-4e9a-b9b9-27c6984bba27";
{ device = "/dev/disk/by-uuid/7810e3a3-fed9-4c2d-8a39-a6063d0863cf";
fsType = "ext4";
};
boot.initrd.luks.devices."luks-a80f77f5-9c77-4730-aa0b-2a496c32f44b".device = "/dev/disk/by-uuid/a80f77f5-9c77-4730-aa0b-2a496c32f44b";
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/4B59-BC12";
{ device = "/dev/disk/by-uuid/E63B-47B3";
fsType = "vfat";
};
swapDevices = [ ];
swapDevices =
[ { device = "/dev/disk/by-uuid/2fd42520-5c2c-4d64-82ba-613033d34799"; }
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp0s5.useDHCP = lib.mkDefault true;
# networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
hardware.parallels.enable = true;
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "prl-tools" ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View file

@ -1,4 +1,15 @@
{hostname, ...}: {
{
hostname,
pkgs,
...
}: {
networking.hostName = hostname;
networking.networkmanager.enable = true;
programs.nm-applet.enable = true;
services.openssh.enable = true;
hardware.bluetooth.enable = true;
services.blueman.enable = true;
}

View file

@ -5,11 +5,16 @@
}: {
environment.systemPackages = with pkgs; [
curl
vim
stow
git
gcc
agenix.default
];
programs.vim.defaultEditor = true;
programs.git.enable = true;
programs.gnupg.agent = {
enable = true;
pinentryFlavor = "curses";
};
}