Commit 6d407e87 authored by James T. Lee's avatar James T. Lee
Browse files

network: Initial iwd configuration

parent 92aa222a
---
puppet::environment: 'network'
---
puppet::environment: 'network'
...@@ -2,5 +2,8 @@ ...@@ -2,5 +2,8 @@
nest::bootloader: systemd nest::bootloader: systemd
nest::dvorak: true nest::dvorak: true
nest::swap_alt_win: true nest::swap_alt_win: true
nest::text_scaling_factor: 2.0
nest::gui_scaling_factor: 2.0 nest::gui_scaling_factor: 2.0
nest::text_scaling_factor: 2.0
nest::wifi: true
puppet::environment: 'network'
...@@ -3,6 +3,7 @@ nest::bootloader: systemd ...@@ -3,6 +3,7 @@ nest::bootloader: systemd
nest::dvorak: true nest::dvorak: true
nest::swap_alt_win: true nest::swap_alt_win: true
nest::text_scaling_factor: 1.1 nest::text_scaling_factor: 1.1
nest::wifi: true
# Sustained load drains the battery. Reduce load from compilation by limiting # Sustained load drains the battery. Reduce load from compilation by limiting
# build jobs to the number of big cores and leaving the LITTLE cores free for # build jobs to the number of big cores and leaving the LITTLE cores free for
......
...@@ -3,6 +3,7 @@ nest::bootloader: systemd ...@@ -3,6 +3,7 @@ nest::bootloader: systemd
nest::dvorak: true nest::dvorak: true
nest::fscache: false nest::fscache: false
nest::swap_alt_win: true nest::swap_alt_win: true
nest::wifi: true
nest::package_keywords: nest::package_keywords:
# Still not fully open-source or mainlined... # Still not fully open-source or mainlined...
......
...@@ -15,6 +15,7 @@ class nest::base::network { ...@@ -15,6 +15,7 @@ class nest::base::network {
~> ~>
exec { 'systemd-networkd-reload': exec { 'systemd-networkd-reload':
command => '/bin/networkctl reload', command => '/bin/networkctl reload',
onlyif => '/bin/systemctl is-active systemd-networkd',
refreshonly => true, refreshonly => true,
} }
-> ->
...@@ -23,6 +24,42 @@ class nest::base::network { ...@@ -23,6 +24,42 @@ class nest::base::network {
} }
if $::nest::wifi {
package { 'net-wireless/iwd':
ensure => installed,
}
->
file { '/var/lib/iwd':
ensure => directory,
mode => '0600',
owner => root,
group => root,
recurse => true,
show_diff => false,
source => 'puppet:///modules/nest/private/iwd',
}
->
service { 'iwd':
enable => true,
}
} else {
service { 'iwd':
ensure => stopped,
enable => false,
}
->
package { 'net-wireless/iwd':
ensure => absent,
}
->
file { '/var/lib/iwd':
ensure => absent,
force => true,
}
}
# #
# XXX: Deprecated # XXX: Deprecated
# #
......
...@@ -24,6 +24,7 @@ class nest ( ...@@ -24,6 +24,7 @@ class nest (
Boolean $isolate_smt = false, Boolean $isolate_smt = false,
Hash[String, Nest::Kconfig] $kernel_config = {}, Hash[String, Nest::Kconfig] $kernel_config = {},
Array[String] $kernel_cmdline = [], Array[String] $kernel_cmdline = [],
Boolean $wifi = false,
# Mail settings # Mail settings
Optional[String] $gmail_username = undef, Optional[String] $gmail_username = undef,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment