61 lines
1.3 KiB
Nix
61 lines
1.3 KiB
Nix
# This is your system's configuration file.
|
|
# Use this to configure your system environment (it replaces /etc/nixos/configuration.nix)
|
|
{ outputs, lib, config, pkgs, ... }:
|
|
|
|
{
|
|
# Set hostname
|
|
networking.hostName = "puter";
|
|
security = {
|
|
polkit.enable = true;
|
|
rtkit.enable = true;
|
|
};
|
|
environment.etc = {
|
|
"xdg/gtk-2.0/gtkrc".text = "gtk-error-bell=0";
|
|
"xdg/gtk-3.0/settings.ini".text = ''
|
|
[Settings]
|
|
gtk-error-bell=false
|
|
'';
|
|
"xdg/gtk-4.0/settings.ini".text = ''
|
|
[Settings]
|
|
gtk-error-bell=false
|
|
'';
|
|
};
|
|
services = {
|
|
xserver.displayManager.sessionPackages = [ pkgs.sway ];
|
|
printing = {
|
|
enable = true;
|
|
browsing = true;
|
|
browsedConf = ''
|
|
BrowseDNSSDSubTypes _cups,_print
|
|
BrowseLocalProtocols all
|
|
BrowseRemoteProtocols all
|
|
CreateIPPPrinterQueues All
|
|
|
|
BrowseProtocols all
|
|
'';
|
|
};
|
|
pipewire = {
|
|
enable = true;
|
|
alsa = {
|
|
enable = true;
|
|
support32Bit = true;
|
|
};
|
|
pulse.enable = true;
|
|
jack.enable = true;
|
|
};
|
|
};
|
|
programs = {
|
|
light.enable = true;
|
|
};
|
|
boot.kernelParams = [ "i915.force_probe=9a49" ];
|
|
hardware = {
|
|
opengl = {
|
|
enable = true;
|
|
driSupport32Bit = true;
|
|
};
|
|
};
|
|
|
|
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
|
system.stateVersion = "23.05";
|
|
}
|