dotfiles/modules/devices/manifests/laptop.pp

40 lines
660 B
ObjectPascal
Raw Normal View History

2018-03-21 17:03:20 +00:00
class devices::laptop {
package {[
'ethtool',
'smartmontools',
2018-03-31 18:40:05 +01:00
'tlp',
'nvidia',
'nvidia-settings',
'bumblebee',
'bbswitch'
]:
2018-03-21 17:03:20 +00:00
ensure => installed
}
-> service {'tlp':
enable => true
}
2018-04-18 13:32:59 +01:00
-> service {'tlp-sleep':
enable => true
}
2018-03-31 18:40:05 +01:00
-> user { 'Update user groups':
name => 'jake',
groups => [
'input',
'users',
'wheel',
'bumblebee'
]
}
-> service { 'bumblebeed':
enable => true
}
-> kmod::load { 'nvidia': }
2018-03-21 17:03:20 +00:00
file { 'TLP config':
ensure => file,
mode => '0644',
path => '/etc/default/tlp',
source => 'puppet:///modules/devices/tlp.conf'
}
}