93 lines
		
	
	
	
		
			2.1 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			93 lines
		
	
	
	
		
			2.1 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
{ config, pkgs, lib, ... }:
 | 
						|
 | 
						|
{
 | 
						|
  imports = [ ../default.nix ];
 | 
						|
  nixpkgs.config.allowUnfreePredicate = pkg:
 | 
						|
    builtins.elem ( lib.getName pkg) [
 | 
						|
      "cudatoolkit"
 | 
						|
      "nvidia-settings"
 | 
						|
      "nvidia-x11"
 | 
						|
      "osu-lazer"
 | 
						|
      "quartus-prime-lite"
 | 
						|
      "quartus-prime-lite-unwrapped"
 | 
						|
      "steam"
 | 
						|
      "steam-original"
 | 
						|
      "steam-run"
 | 
						|
      "steam-unwrapped"
 | 
						|
      ];
 | 
						|
  nixpkgs.config.permittedInsecurePackages = [
 | 
						|
    "olm-3.2.16"
 | 
						|
  ];
 | 
						|
 | 
						|
  hardware = {
 | 
						|
    opentabletdriver.enable = true;
 | 
						|
  };
 | 
						|
 | 
						|
  programs = {
 | 
						|
    firefox.enable = true;
 | 
						|
    hyprland.enable = true;
 | 
						|
    kdeconnect.enable = true;
 | 
						|
    steam = {
 | 
						|
      enable = true;
 | 
						|
      remotePlay.openFirewall = true;
 | 
						|
    };
 | 
						|
    wireshark.enable = true;
 | 
						|
  };
 | 
						|
 | 
						|
  security.pam.services.swaylock = {};
 | 
						|
 | 
						|
  services = {
 | 
						|
    avahi = {
 | 
						|
      enable = config.stitchyconf.form == "pc";
 | 
						|
      nssmdns4 = true;
 | 
						|
      openFirewall = true;
 | 
						|
    };
 | 
						|
    blueman.enable = true;
 | 
						|
    gnome.gnome-keyring.enable = true;
 | 
						|
    pipewire = {
 | 
						|
      alsa.enable = true;
 | 
						|
      enable = true;
 | 
						|
      pulse.enable = true;
 | 
						|
    };
 | 
						|
    printing.enable = true;
 | 
						|
    usbmuxd.enable = true;
 | 
						|
    xserver.enable = true;
 | 
						|
  };
 | 
						|
 | 
						|
  sops.secrets."password-hash/stitchynyan" = {
 | 
						|
    neededForUsers = true;
 | 
						|
    sopsFile = ../../secrets/stitchynyan/secrets.yaml;
 | 
						|
  };
 | 
						|
 | 
						|
  users.users.stitchynyan = {
 | 
						|
    description = "Personal user";
 | 
						|
    extraGroups = [ "audio" "dialout" "docker" "kvm" "libvirtd" "networkmanager" "plugdev" "wireshark" "wheel" ];
 | 
						|
    home = "/home/stitchynyan";
 | 
						|
    hashedPasswordFile = config.sops.secrets."password-hash/stitchynyan".path;
 | 
						|
    isNormalUser = true;
 | 
						|
    shell = pkgs.zsh;
 | 
						|
  };
 | 
						|
 | 
						|
  i18n = {
 | 
						|
    defaultLocale = "ja_JP.UTF-8";
 | 
						|
    inputMethod = {
 | 
						|
      enable = true;
 | 
						|
      type = "fcitx5";
 | 
						|
      fcitx5 = {
 | 
						|
        waylandFrontend = true;
 | 
						|
        settings.addons =  {
 | 
						|
          classicui.globalSection = {
 | 
						|
            Theme = "FluentLight";
 | 
						|
            DarkTheme = "FluentDark";
 | 
						|
            UseDarkTheme = "True";
 | 
						|
            UseAccentColor = "True";
 | 
						|
          };
 | 
						|
        };
 | 
						|
        addons = with pkgs; [
 | 
						|
          fcitx5-mozc
 | 
						|
          fcitx5-fluent
 | 
						|
        ];
 | 
						|
      };
 | 
						|
    };
 | 
						|
  };
 | 
						|
}
 |