aboutsummaryrefslogtreecommitdiff
path: root/modules/workstation/manifests/flony.pp
blob: c8c361d0b1078da7efabcb1f437ec655e1ce8c1b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
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",
  }
}