diff --git a/ansible/templates/systemd/user/kanshi.service b/ansible/templates/systemd/user/kanshi.service new file mode 100644 index 0000000..03a8240 --- /dev/null +++ b/ansible/templates/systemd/user/kanshi.service @@ -0,0 +1,12 @@ +[Unit] +Description=Kanshi +PartOf=graphical-session.target + +[Service] +Type=simple +ExecStart=kanshi +Restart=always +RestartSec=10 + +[Install] +WantedBy=sway-session.target diff --git a/ansible/workstation.yaml b/ansible/workstation.yaml index ad84abe..54c35aa 100644 --- a/ansible/workstation.yaml +++ b/ansible/workstation.yaml @@ -28,6 +28,9 @@ - name: "cliphist" enabled: true profile: all + - name: "kanshi" + enabled: true + profile: all - name: "gammastep" enabled: true profile: all @@ -64,16 +67,11 @@ - name: Init arch block: - file: - path: /home/mbess/.workstation_setup_state + path: /home/mbess/.monakhos state: touch - copy: - content: "{\"monakhos\": {\"date\": \"{{ ansible_date_time.iso8601 }}\", \"name\":\"{{ device_name }}\", \"profile\":\"{{ profile }}\"}\n" - dest: "{{ home }}/.workstation_setup_state" - - become: yes - become_user: "{{ user }}" - file: - path: "{{ home }}/.monakhos_mbess" - state: touch + content: "{\"monakhos\": {\"date\": \"{{ ansible_date_time.iso8601 }}\", \"device_name\":\"{{ device_name }}\", \"enabled_profiles\":{{ enabled_profiles | to_json }} }}\n" + dest: "{{ home }}/.monakhos" - name: Change hostname hostname: @@ -93,6 +91,12 @@ - git - openssh + - name: "Configure to auto load some kernel modules at boot" + become: true + copy: + content: "# managed by monakhos\ni2c-dev\n" + dest: "/etc/modules-load.d/auto.conf" + - name: Setup SSH client include_role: name: ssh @@ -180,6 +184,13 @@ include_role: name: dns + - name: Symbolic link to user .profile + file: + src: "{{ home }}/.profile" + dest: "{{ home }}/.dots/config/.profile" + state: link + force: true + - name: Setup config directories file: path: "{{ home }}/.config/{{ item.dir }}"