78 lines
1.2 KiB
Nix
78 lines
1.2 KiB
Nix
{ config, lib, pkgs, inputs, username, ... }:
|
|
|
|
{
|
|
imports = [ ../modules/services/gpg.nix ];
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
programs.zsh.enable = true;
|
|
|
|
users.users.${username} = {
|
|
isNormalUser = true;
|
|
extraGroups = [ "networkmanager" "wheel" ];
|
|
shell = pkgs.zsh;
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
git
|
|
htop
|
|
lsof
|
|
tree
|
|
unzip
|
|
wget
|
|
zip
|
|
];
|
|
|
|
time.timeZone = "America/New_York";
|
|
i18n.defaultLocale = "en_US.utf8";
|
|
|
|
nix = {
|
|
package = pkgs.nixFlakes;
|
|
settings.auto-optimise-store = true;
|
|
registry.nixpkgs.flake = inputs.nixpkgs;
|
|
extraOptions = ''
|
|
experimental-features = nix-command flakes
|
|
'';
|
|
};
|
|
|
|
services = {
|
|
pipewire = {
|
|
enable = true;
|
|
alsa = {
|
|
enable = true;
|
|
support32Bit = true;
|
|
};
|
|
pulse.enable = true;
|
|
};
|
|
|
|
xserver = {
|
|
enable = true;
|
|
layout = "us";
|
|
xkbVariant = "";
|
|
libinput.enable = true;
|
|
|
|
displayManager = {
|
|
defaultSession = "xsession";
|
|
|
|
session = [{
|
|
manage = "desktop";
|
|
name = "xsession";
|
|
start = ''
|
|
exec $HOME/.xsession &
|
|
waitPID=$!
|
|
'';
|
|
}];
|
|
};
|
|
};
|
|
};
|
|
|
|
fonts.packages = [ pkgs.corefonts ];
|
|
|
|
sound.enable = true;
|
|
hardware.pulseaudio.enable = false;
|
|
|
|
modules.gpg.enable = true;
|
|
|
|
system.stateVersion = "23.05";
|
|
}
|