54 lines
1.3 KiB
Nix
54 lines
1.3 KiB
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
|
imports = [ ../default.nix ];
|
|
nixpkgs.config.allowUnfreePredicate = pkg:
|
|
builtins.elem ( lib.getName pkg) [
|
|
"osu-lazer"
|
|
"steam"
|
|
"steam-original"
|
|
"steam-run"
|
|
"nvidia-x11"
|
|
"nvidia-settings"
|
|
"cudatoolkit"
|
|
];
|
|
|
|
programs = {
|
|
firefox.enable = true;
|
|
hyprland.enable = lib.mkIf( config.stitchyconf.form == "pc") true;
|
|
openvpn3.enable = lib.mkIf( config.stitchyconf.form == "pc") true;
|
|
steam = {
|
|
enable = lib.mkIf( config.stitchyconf.form == "pc") true;
|
|
remotePlay.openFirewall = true;
|
|
};
|
|
};
|
|
|
|
services = {
|
|
avahi = {
|
|
enable = false;
|
|
nssmdns4 = true;
|
|
openFirewall = true;
|
|
};
|
|
blueman.enable = true;
|
|
gnome.gnome-keyring.enable = lib.mkIf( config.stitchyconf.form == "pc") true;
|
|
pipewire = {
|
|
enable = true;
|
|
pulse.enable = true;
|
|
alsa.enable = true;
|
|
};
|
|
printing.enable = false
|
|
usbmuxd.enable = false;
|
|
xserver.enable = true;
|
|
};
|
|
|
|
security.pam.services.swaylock = {};
|
|
|
|
users.users.stitchynyan = {
|
|
isNormalUser = true;
|
|
shell = pkgs.zsh;
|
|
home = "/home/stitchynyan";
|
|
description = "Personal user";
|
|
extraGroups = [ "wheel" "networkmanager" "kvm" "libvirtd" "audio" ];
|
|
initialHashedPassword = "$y$j9T$rvySCWHYE4AO4A9J0Vf20.$x5hpBNsOWovQFtNfFUIt17OAH5MJFwFBGjxbaEIagJ3";
|
|
};
|
|
}
|