aboutsummaryrefslogtreecommitdiff
path: root/modules/workstation/manifests/flony.pp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/workstation/manifests/flony.pp')
-rw-r--r--modules/workstation/manifests/flony.pp120
1 files changed, 120 insertions, 0 deletions
diff --git a/modules/workstation/manifests/flony.pp b/modules/workstation/manifests/flony.pp
new file mode 100644
index 0000000..c8c361d
--- /dev/null
+++ b/modules/workstation/manifests/flony.pp
@@ -0,0 +1,120 @@
1class workstation::flony {
2 ensure_resource("exec", "mkinitcpio", {
3 command => "/usr/bin/mkinitcpio -p linux",
4 refreshonly => true,
5 })
6
7 include "profile::tools"
8
9 file_line { "mkinitcpio.conf#HOOKS":
10 ensure => "present",
11 path => "/etc/mkinitcpio.conf",
12 match => "^HOOKS\=",
13 line => "HOOKS=(base udev autodetect keyboard keymap modconf block encrypt filesystems fsck)",
14 notify => Exec["mkinitcpio"],
15 }
16
17 ensure_packages(['wpa_supplicant'])
18
19 file { "/etc/wpa_supplicant/wpa_supplicant-wlp2s0.conf":
20 ensure => file,
21 source => "puppet:///modules/workstation/flony/wpa_supplicant.conf",
22 mode => "0755",
23 owner => root,
24 group => root,
25 notify => Service["wpa_supplicant@wlp2s0"],
26 }
27
28 file { "/etc/systemd/network/wlp2s0-dhcp.network":
29 ensure => file,
30 source => "puppet:///modules/workstation/flony/wlp2s0-dhcp.network",
31 mode => "0755",
32 owner => root,
33 group => root,
34 }
35
36 service { "wpa_supplicant@wlp2s0":
37 ensure => "running",
38 enable => true,
39 require => [File["/etc/wpa_supplicant/wpa_supplicant-wlp2s0.conf"], Package["wpa_supplicant"]],
40 }
41 #service { "dhcpcd@wlp2s0.service":
42 # enable => false,
43 #}
44 ensure_packages(['lxde', 'xorg-xinit', 'xorg-fonts-misc', 'xorg-fonts-100dpi', 'xorg-fonts-75dpi', 'xorg-fonts-type1', 'noto-fonts-emoji'])
45
46 ensure_packages(['firefox'])
47
48 ensure_packages(['dmidecode', 'fwupd'])
49
50 aur::package { "geteltorito": }
51
52 ensure_packages(['stack'])
53 # ensure_packages(['ghc'], {
54 # ensure => absent,
55 # uninstall_options => "-sc"
56 # })
57
58 ensure_packages(['xorg-xev', 'xorg-xset', 'xorg-xbacklight', 'slock'])
59
60 ensure_packages(['mesa', 'xf86-video-intel', 'vulkan-intel'])
61 file { "/etc/X11/xorg.conf.d/20-intel.conf":
62 ensure => file,
63 source => "puppet:///modules/workstation/flony/xorg_intel.conf",
64 mode => "0755",
65 owner => "root",
66 group => "root",
67 }
68
69 ensure_packages(['redshift', 'python-xdg', 'python-gobject'])
70
71 # xdg-open
72 ensure_packages(['xdg-utils'])
73
74 ensure_packages(['postgresql', 'postgis'])
75
76 # User
77 file { "/home/ismael/.bash_logout":
78 ensure => file,
79 content => "#\n# ~/.bash_logout\n#\n",
80 mode => "0644",
81 owner => "ismael",
82 group => "ismael",
83 }
84 file { "/home/ismael/.bashrc":
85 ensure => file,
86 source => "puppet:///modules/workstation/flony/home/bashrc",
87 mode => "0644",
88 owner => "ismael",
89 group => "ismael",
90 }
91 file { "/home/ismael/.gitconfig":
92 ensure => file,
93 source => "puppet:///modules/workstation/flony/home/gitconfig",
94 mode => "0644",
95 owner => "ismael",
96 group => "ismael",
97 }
98 file { "/home/ismael/.xinitrc":
99 ensure => file,
100 source => "puppet:///modules/workstation/flony/home/xinitrc",
101 mode => "0644",
102 owner => "ismael",
103 group => "ismael",
104 }
105
106 file { "/home/ismael/.config":
107 ensure => directory,
108 source => "puppet:///modules/workstation/flony/home/config",
109 recurse => "remote",
110 owner => "ismael",
111 group => "ismael",
112 }
113 file { "/home/ismael/.local":
114 ensure => directory,
115 source => "puppet:///modules/workstation/flony/home/local",
116 recurse => "remote",
117 owner => "ismael",
118 group => "ismael",
119 }
120}