<commit_before>myopensuse.packages:
  pkg.installed:
    - pkgs:
      - htop
      - screen
      - git-core
      - zsh
      - csync
      - libcsync-plugin-sftp
      - command-not-found
      - salt-zsh-completion

git-zsh-users-history-substring-search:
  git.latest:
    - name: https://github.com/zsh-users/zsh-history-substring-search.git
    - target: /opt/zsh-users/zsh-history-substring-search
    - force_reset: True
    - require:
      - pkg: myopensuse.packages

git-zsh-users-history-syntax-highlighting:
  git.latest:
    - name: https://github.com/zsh-users/zsh-syntax-highlighting.git
    - target: /opt/zsh-users/zsh-syntax-highlighting
    - require:
      - pkg: myopensuse.packages

git-zsh-users-autosuggestions:
  git.latest:
    - name: https://github.com/tarruda/zsh-autosuggestions.git
    - target: /opt/zsh-users/zsh-autosuggestions
    - require:
      - pkg: myopensuse.packages

ilmehtar:
  user.present:
    - fullname: <NAME>
    - shell: /bin/zsh
    - home: /home/ilmehtar
    - require:
       - pkg: myopensuse.packages

root:
  user.present:
    - shell: /bin/zsh
    - require:
      - pkg: myopensuse.packages

/home/ilmehtar/.ssh/config:
  file.managed:
    - user: ilmehtar
    - group: users
    - mode: 600
    - makedirs: True
    - contents:
      - Host rootco.de
      - Port 8282
      - Host bb8.rootco.de
      - Port 8282
    - require:
      - user: ilmehtar

/home/ilmehtar/.zshrc:
  file.managed:
    - source: salt://opensuse/zshrc-user
    - user: ilmehtar
    - group: users
    - require:
      - user: ilmehtar

/root/.zshrc:
  file.managed:
    - source: salt://opensuse/zshrc-root
    - user: root
    - group: root
    - require:
      - user: root

/etc/sudoers.d/ilmehtar:
  file.managed:
    - mode: 600
    - contents:
      - 'ilmehtar ALL=(ALL) NOPASSWD: ALL'
    - require:
      - user: ilmehtar

{% if salt['grains.get']('productname', 'none') == 'rpi' %}
/etc/dracut.conf.d/raspberrypi_modules.conf:
  file.line:
    - mode: replace
    - match: '#omit_drivers+=" sdhci-iproc"'
    - content: 'omit_drivers+=" sdhci-iproc"'

/sbin/mkinitrd -f:
  cmd.wait:
    - watch:
      - file: /etc/dracut.conf.d/raspberrypi_modules.conf
{% endif %}<commit_msg>Run mkinitrd when nouveau is disabled<commit_after>myopensuse.packages:
  pkg.installed:
    - pkgs:
      - htop
      - screen
      - git-core
      - zsh
      - csync
      - libcsync-plugin-sftp
      - command-not-found
      - salt-zsh-completion

git-zsh-users-history-substring-search:
  git.latest:
    - name: https://github.com/zsh-users/zsh-history-substring-search.git
    - target: /opt/zsh-users/zsh-history-substring-search
    - force_reset: True
    - require:
      - pkg: myopensuse.packages

git-zsh-users-history-syntax-highlighting:
  git.latest:
    - name: https://github.com/zsh-users/zsh-syntax-highlighting.git
    - target: /opt/zsh-users/zsh-syntax-highlighting
    - require:
      - pkg: myopensuse.packages

git-zsh-users-autosuggestions:
  git.latest:
    - name: https://github.com/tarruda/zsh-autosuggestions.git
    - target: /opt/zsh-users/zsh-autosuggestions
    - require:
      - pkg: myopensuse.packages

ilmehtar:
  user.present:
    - fullname: <NAME>
    - shell: /bin/zsh
    - home: /home/ilmehtar
    - require:
       - pkg: myopensuse.packages

root:
  user.present:
    - shell: /bin/zsh
    - require:
      - pkg: myopensuse.packages

/home/ilmehtar/.ssh/config:
  file.managed:
    - user: ilmehtar
    - group: users
    - mode: 600
    - makedirs: True
    - contents:
      - Host rootco.de
      - Port 8282
      - Host bb8.rootco.de
      - Port 8282
    - require:
      - user: ilmehtar

/home/ilmehtar/.zshrc:
  file.managed:
    - source: salt://opensuse/zshrc-user
    - user: ilmehtar
    - group: users
    - require:
      - user: ilmehtar

/root/.zshrc:
  file.managed:
    - source: salt://opensuse/zshrc-root
    - user: root
    - group: root
    - require:
      - user: root

/etc/sudoers.d/ilmehtar:
  file.managed:
    - mode: 600
    - contents:
      - 'ilmehtar ALL=(ALL) NOPASSWD: ALL'
    - require:
      - user: ilmehtar

{% if salt['grains.get']('productname', 'none') == 'rpi' %}
/etc/dracut.conf.d/raspberrypi_modules.conf:
  file.line:
    - mode: replace
    - match: '#omit_drivers+=" sdhci-iproc"'
    - content: 'omit_drivers+=" sdhci-iproc"'
{% endif %}

/sbin/mkinitrd -f:
  cmd.wait:
    - watch:
      - file: /etc/dracut.conf.d/raspberrypi_modules.conf
      - file: /etc/modprobe.d/49-disablenouveau.conf
{'fraction_non_alphanumeric': 0.14219474497681608, 'fraction_numerical': 0.007065577390152351, 'mean_word_length': 2.0984952120383036, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1953296', 'n_tokens_mistral': 1816, 'n_tokens_neox': 1731, 'n_words': 277}