aboutsummaryrefslogblamecommitdiff
path: root/modules/workstation/manifests/flony.pp
blob: c8c361d0b1078da7efabcb1f437ec655e1ce8c1b (plain) (tree)























































































































                                                                                                                                             
class workstation::flony {
  ensure_resource("exec", "mkinitcpio", {
    command     => "/usr/bin/mkinitcpio -p linux",
    refreshonly => true,
  })

  include "profile::tools"

  file_line { "mkinitcpio.conf#HOOKS":
    ensure => "present",
    path   => "/etc/mkinitcpio.conf",
    match  => "^HOOKS\=",
    line   => "HOOKS=(base udev autodetect keyboard keymap modconf block encrypt filesystems fsck)",
    notify => Exec["mkinitcpio"],
  }

  ensure_packages(['wpa_supplicant'])

  file { "/etc/wpa_supplicant/wpa_supplicant-wlp2s0.conf":
    ensure => file,
    source => "puppet:///modules/workstation/flony/wpa_supplicant.conf",
    mode   => "0755",
    owner  => root,
    group  => root,
    notify => Service["wpa_supplicant@wlp2s0"],
  }

  file { "/etc/systemd/network/wlp2s0-dhcp.network":
    ensure => file,
    source => "puppet:///modules/workstation/flony/wlp2s0-dhcp.network",
    mode   => "0755",
    owner  => root,
    group  => root,
  }

  service { "wpa_supplicant@wlp2s0":
    ensure => "running",
    enable => true,
    require => [File["/etc/wpa_supplicant/wpa_supplicant-wlp2s0.conf"], Package["wpa_supplicant"]],
  }
  #service { "dhcpcd@wlp2s0.service":
  #  enable => false,
  #}
  ensure_packages(['lxde', 'xorg-xinit', 'xorg-fonts-misc', 'xorg-fonts-100dpi', 'xorg-fonts-75dpi', 'xorg-fonts-type1', 'noto-fonts-emoji'])

  ensure_packages(['firefox'])

  ensure_packages(['dmidecode', 'fwupd'])

  aur::package { "geteltorito": }

  ensure_packages(['stack'])
  # ensure_packages(['ghc'], {
  #   ensure => absent,
  #   uninstall_options => "-sc"
  # })

  ensure_packages(['xorg-xev', 'xorg-xset', 'xorg-xbacklight', 'slock'])

  ensure_packages(['mesa', 'xf86-video-intel', 'vulkan-intel'])
  file { "/etc/X11/xorg.conf.d/20-intel.conf":
    ensure => file,
    source => "puppet:///modules/workstation/flony/xorg_intel.conf",
    mode   => "0755",
    owner  => "root",
    group  => "root",
  }

  ensure_packages(['redshift', 'python-xdg', 'python-gobject'])

  # xdg-open
  ensure_packages(['xdg-utils'])

  ensure_packages(['postgresql', 'postgis'])

  # User
  file { "/home/ismael/.bash_logout":
    ensure  => file,
    content => "#\n# ~/.bash_logout\n#\n",
    mode    => "0644",
    owner   => "ismael",
    group   => "ismael",
  }
  file { "/home/ismael/.bashrc":
    ensure  => file,
    source  => "puppet:///modules/workstation/flony/home/bashrc",
    mode    => "0644",
    owner   => "ismael",
    group   => "ismael",
  }
  file { "/home/ismael/.gitconfig":
    ensure  => file,
    source  => "puppet:///modules/workstation/flony/home/gitconfig",
    mode    => "0644",
    owner   => "ismael",
    group   => "ismael",
  }
  file { "/home/ismael/.xinitrc":
    ensure  => file,
    source  => "puppet:///modules/workstation/flony/home/xinitrc",
    mode    => "0644",
    owner   => "ismael",
    group   => "ismael",
  }

  file { "/home/ismael/.config":
    ensure  => directory,
    source  => "puppet:///modules/workstation/flony/home/config",
    recurse => "remote",
    owner   => "ismael",
    group   => "ismael",
  }
  file { "/home/ismael/.local":
    ensure  => directory,
    source  => "puppet:///modules/workstation/flony/home/local",
    recurse => "remote",
    owner   => "ismael",
    group   => "ismael",
  }
}