2022-11-08 19:08:54 -08:00
|
|
|
|
# Edit this configuration file to define what should be installed on
|
|
|
|
|
# your system. Help is available in the configuration.nix(5) man page
|
|
|
|
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
|
|
|
|
|
|
|
|
|
{ config, lib, pkgs, user, inputs, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
2023-01-14 15:58:59 -08:00
|
|
|
|
|
2023-02-16 12:57:57 -08:00
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
|
|
|
|
|
|
security.pam.services.kwallet = {
|
|
|
|
|
name = "kdewallet";
|
|
|
|
|
enableKwallet = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
services.xserver = {
|
|
|
|
|
enable = true;
|
|
|
|
|
layout = "us";
|
|
|
|
|
xkbOptions = "caps:super";
|
|
|
|
|
|
|
|
|
|
desktopManager.plasma5.enable = true;
|
2023-02-18 08:53:06 -08:00
|
|
|
|
displayManager.defaultSession = "plasma";
|
2023-02-16 17:25:48 -08:00
|
|
|
|
windowManager.awesome = {
|
|
|
|
|
enable = true;
|
|
|
|
|
luaModules = with pkgs.luaPackages; [
|
2023-02-18 08:53:06 -08:00
|
|
|
|
vicious
|
2023-02-16 17:25:48 -08:00
|
|
|
|
luarocks # is the package manager for Lua modules
|
|
|
|
|
];
|
|
|
|
|
};
|
2022-11-08 19:08:54 -08:00
|
|
|
|
|
2023-02-16 12:57:57 -08:00
|
|
|
|
displayManager = {
|
|
|
|
|
sddm.enable = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
libinput = {
|
|
|
|
|
enable = true;
|
|
|
|
|
touchpad = {
|
|
|
|
|
tapping = true;
|
|
|
|
|
naturalScrolling = true;
|
|
|
|
|
disableWhileTyping = true;
|
|
|
|
|
tappingDragLock = true;
|
|
|
|
|
|
|
|
|
|
additionalOptions = ''
|
|
|
|
|
Option "TappingButtonMap" "lmr"
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
boot.supportedFilesystems = [ "nfts" ];
|
2022-11-08 19:08:54 -08:00
|
|
|
|
boot.loader.systemd-boot.configurationLimit = 5;
|
|
|
|
|
|
|
|
|
|
nix.settings.auto-optimise-store = true;
|
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
|
nix.gc = {
|
|
|
|
|
automatic = true;
|
|
|
|
|
options = "--delete-generations 8d";
|
|
|
|
|
};
|
|
|
|
|
|
2023-01-14 15:58:59 -08:00
|
|
|
|
programs.zsh.enable = true;
|
2022-11-08 19:08:54 -08:00
|
|
|
|
users.users.${user} = {
|
|
|
|
|
isNormalUser = true;
|
2023-04-15 18:53:32 -07:00
|
|
|
|
extraGroups = [ "wheel" "video" "audio" "networkmanager" "lp" "scanner" "input" "uinput" "cdrom"];
|
2022-11-08 19:08:54 -08:00
|
|
|
|
shell = pkgs.zsh;
|
|
|
|
|
password = "password";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fonts.fonts = with pkgs; [
|
2023-04-24 16:39:18 -07:00
|
|
|
|
(nerdfonts.override { fonts = ["DejaVuSansMono"]; })
|
2022-11-08 19:08:54 -08:00
|
|
|
|
dejavu_fonts
|
2022-12-04 15:15:50 -08:00
|
|
|
|
xkcd-font
|
2022-11-08 19:08:54 -08:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
time.timeZone = "America/Los_Angeles";
|
|
|
|
|
|
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
|
console = {
|
|
|
|
|
font = "Lat2-Terminus16";
|
|
|
|
|
useXkbConfig = true; # use xkbOptions in tty.
|
|
|
|
|
};
|
|
|
|
|
|
2023-03-17 17:43:12 -07:00
|
|
|
|
hardware = {
|
|
|
|
|
opentabletdriver.enable = true;
|
|
|
|
|
steam-hardware.enable = true;
|
|
|
|
|
};
|
|
|
|
|
|
2022-12-08 20:51:16 -08:00
|
|
|
|
|
2022-11-08 19:08:54 -08:00
|
|
|
|
sound = {
|
2022-12-08 20:51:16 -08:00
|
|
|
|
enable = false;
|
2022-11-08 19:08:54 -08:00
|
|
|
|
mediaKeys.enable = true;
|
|
|
|
|
};
|
|
|
|
|
|
2022-12-08 20:51:16 -08:00
|
|
|
|
security.rtkit.enable = true;
|
|
|
|
|
services.pipewire = {
|
|
|
|
|
enable = true;
|
|
|
|
|
alsa.enable = true;
|
|
|
|
|
alsa.support32Bit = true;
|
|
|
|
|
pulse.enable = true;
|
|
|
|
|
#jack.enable = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
2022-11-08 19:08:54 -08:00
|
|
|
|
# Enable CUPS to print documents.
|
|
|
|
|
services.printing.enable = true;
|
|
|
|
|
|
|
|
|
|
nix = {
|
|
|
|
|
package = pkgs.nixVersions.stable;
|
|
|
|
|
extraOptions = "experimental-features = nix-command flakes";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# 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 = "22.05"; # Did you read the comment?
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|