summary refs log tree commit diff
path: root/src/Shader/vertex.glsl
blob: e7b9e3d778c50fdcb5bacf40e6dd81dafc1317ac (plain)
1
2
3
4
5
6
7
8
9
10
11
#version 330 core

uniform mat4 model_matrix;
uniform mat4 view_matrix;
uniform mat4 projection_matrix;

in vec3 position;

void main() {
    gl_Position = projection_matrix * view_matrix * model_matrix * vec4(position, 1.0);
}
al.Number.Bin */ .highlight .mf { color: #F0F } /* Literal.Number.Float */ .highlight .mh { color: #F0F } /* Literal.Number.Hex */ .highlight .mi { color: #F0F } /* Literal.Number.Integer */ .highlight .mo { color: #F0F } /* Literal.Number.Oct */ .highlight .sa { color: #87CEEB } /* Literal.String.Affix */ .highlight .sb { color: #87CEEB } /* Literal.String.Backtick */ .highlight .sc { color: #87CEEB } /* Literal.String.Char */ .highlight .dl { color: #87CEEB } /* Literal.String.Delimiter */ .highlight .sd { color: #87CEEB } /* Literal.String.Doc */ .highlight .s2 { color: #87CEEB } /* Literal.String.Double */ .highlight .se { color: #87CEEB } /* Literal.String.Escape */ .highlight .sh { color: #87CEEB } /* Literal.String.Heredoc */ .highlight .si { color: #87CEEB } /* Literal.String.Interpol */ .highlight .sx { color: #87CEEB } /* Literal.String.Other */ .highlight .sr { color: #87CEEB } /* Literal.String.Regex */ .highlight .s1 { color: #87CEEB } /* Literal.String.Single */ .highlight .ss { color: #87CEEB } /* Literal.String.Symbol */ .highlight .bp { color: #DDD } /* Name.Builtin.Pseudo */ .highlight .fm { color: #FF0 } /* Name.Function.Magic */ .highlight .vc { color: #EEDD82 } /* Name.Variable.Class */ .highlight .vg { color: #EEDD82 } /* Name.Variable.Global */ .highlight .vi { color: #EEDD82 } /* Name.Variable.Instance */ .highlight .vm { color: #EEDD82 } /* Name.Variable.Magic */ .highlight .il { color: #F0F } /* Literal.Number.Integer.Long */
{ config, pkgs, ... }:

{
  # boot settings
  boot = {
    loader.grub = {
      enable = true;
      devices = [ "nodev" ];
      efiSupport = true;
      useOSProber = true;
      gfxmodeEfi = "1366x768x32";
    };

    loader.efi.canTouchEfiVariables = true;

    plymouth.enable = true;
  
    initrd.systemd.enable = true; 
  };

  # swap
  swapDevices = [{
    device = "/var/swapfile";
    size = 8 * 1024;
  }];

  # internet
  networking.networkmanager.enable = true;
  
  # sound 
  sound.enable = true;
  hardware.pulseaudio.enable = false;
  security.rtkit.enable = true;
  services.pipewire = {
    enable = true;
    alsa = { enable = true; support32Bit = true; };
    pulse.enable = true;
    jack.enable = true;
  };

  # extra filesystems
  boot.supportedFilesystems = [ "ntfs" ];

  fileSystems = {
    "/run/media/mel/Duo" = {
      device = "/dev/disk/by-label/Duo";
      fsType = "ntfs-3g";
      options = [ "rw" "uid=1000" ];
    };
    "/run/media/mel/Half" = {
      device = "/dev/disk/by-label/Half";
      fsType = "ntfs-3g";
      options = [ "rw" "uid=1000" ];
    };
    "/run/media/mel/Main" = {
      device = "/dev/disk/by-label/Main";
      fsType = "ntfs-3g";
      options = [ "rw" "uid=1000" ];
    };
  };

  # printing
  services.printing = {
    enable = true;
    stateless = true;
    startWhenNeeded = true;
  };

  services.avahi.enable = false;
  #services.avahi = {
  #  enable = true;
  #  nssmdns4 = true;
  #  openFirewall = true;
  #};
}