Compare commits
2 Commits
e3e78b3eb5
...
6b3bdab18b
Author | SHA1 | Date | |
---|---|---|---|
![]() |
6b3bdab18b | ||
![]() |
4d620a33b7 |
@ -36,4 +36,3 @@ cores: 16
|
|||||||
sway_conf_files:
|
sway_conf_files:
|
||||||
- rofimoji
|
- rofimoji
|
||||||
docker_storage_driver: overlay2 # alternatively zfs
|
docker_storage_driver: overlay2 # alternatively zfs
|
||||||
docker_zfs_dataset: zroot/linux/archmain/docker
|
|
||||||
|
@ -33,4 +33,4 @@ cores: 16
|
|||||||
sway_conf_files:
|
sway_conf_files:
|
||||||
- rofimoji
|
- rofimoji
|
||||||
docker_storage_driver: overlay2 # alternatively zfs
|
docker_storage_driver: overlay2 # alternatively zfs
|
||||||
docker_zfs_dataset: zroot/linux/archwork/docker
|
closed_source_vscode: true
|
||||||
|
@ -94,6 +94,14 @@
|
|||||||
- src: makepkg.conf # TODO: Is this needed or can I use the default from devtools?
|
- src: makepkg.conf # TODO: Is this needed or can I use the default from devtools?
|
||||||
dest: /etc/aurutils/
|
dest: /etc/aurutils/
|
||||||
|
|
||||||
|
- name: chown the custom package db
|
||||||
|
file:
|
||||||
|
path: "{{ item }}"
|
||||||
|
owner: "{{ build_user.name }}"
|
||||||
|
recurse: true
|
||||||
|
loop:
|
||||||
|
- /var/cache/pacman/custom/
|
||||||
|
|
||||||
- name: Create custom repo db
|
- name: Create custom repo db
|
||||||
command: repo-add --sign /var/cache/pacman/custom/custom.db.tar
|
command: repo-add --sign /var/cache/pacman/custom/custom.db.tar
|
||||||
become: true
|
become: true
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
loop:
|
loop:
|
||||||
- kubeswitch
|
- kubeswitch
|
||||||
- flux-scm
|
- flux-scm
|
||||||
- kubectl-minio
|
|
||||||
|
|
||||||
- name: Update cache
|
- name: Update cache
|
||||||
when: buildaur.changed
|
when: buildaur.changed
|
||||||
@ -23,5 +22,4 @@
|
|||||||
- stern
|
- stern
|
||||||
- kubeswitch
|
- kubeswitch
|
||||||
- flux-scm
|
- flux-scm
|
||||||
- kubectl-minio
|
|
||||||
state: present
|
state: present
|
||||||
|
2
ansible/roles/package_manager/files/freeze_kernel.conf
Normal file
2
ansible/roles/package_manager/files/freeze_kernel.conf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[options]
|
||||||
|
IgnorePkg = linux linux-headers
|
@ -52,6 +52,7 @@
|
|||||||
group: root
|
group: root
|
||||||
loop:
|
loop:
|
||||||
- freeze_firefox.conf
|
- freeze_firefox.conf
|
||||||
|
- freeze_kernel.conf
|
||||||
|
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
package:
|
package:
|
||||||
|
1
ansible/roles/vscode/defaults/main.yaml
Normal file
1
ansible/roles/vscode/defaults/main.yaml
Normal file
@ -0,0 +1 @@
|
|||||||
|
closed_source_vscode: false
|
1
ansible/roles/vscode/files/code-flags.conf
Normal file
1
ansible/roles/vscode/files/code-flags.conf
Normal file
@ -0,0 +1 @@
|
|||||||
|
--ozone-platform-hint=auto
|
192
ansible/roles/vscode/files/keybindings.json
Normal file
192
ansible/roles/vscode/files/keybindings.json
Normal file
@ -0,0 +1,192 @@
|
|||||||
|
// Place your key bindings in this file to override the defaultsauto[]
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"key": "alt+.",
|
||||||
|
"command": "editor.action.revealDefinition",
|
||||||
|
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "f12",
|
||||||
|
"command": "-editor.action.revealDefinition",
|
||||||
|
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "alt+,",
|
||||||
|
"command": "workbench.action.navigateBack",
|
||||||
|
"when": "canNavigateBack"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+alt+-",
|
||||||
|
"command": "-workbench.action.navigateBack",
|
||||||
|
"when": "canNavigateBack"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "shift+alt+/",
|
||||||
|
"command": "editor.action.goToReferences",
|
||||||
|
"when": "editorHasReferenceProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "shift+f12",
|
||||||
|
"command": "-editor.action.goToReferences",
|
||||||
|
"when": "editorHasReferenceProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+alt+.",
|
||||||
|
"command": "workbench.action.showAllSymbols"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+t",
|
||||||
|
"command": "-workbench.action.showAllSymbols"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "alt+;",
|
||||||
|
"command": "editor.action.commentLine",
|
||||||
|
"when": "editorTextFocus && !editorReadonly"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+/",
|
||||||
|
"command": "-editor.action.commentLine",
|
||||||
|
"when": "editorTextFocus && !editorReadonly"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+x",
|
||||||
|
"command": "-editor.action.clipboardCutAction"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+x",
|
||||||
|
"command": "-filesExplorer.cut",
|
||||||
|
"when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+x 3",
|
||||||
|
"command": "workbench.action.splitEditor"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+\\",
|
||||||
|
"command": "-workbench.action.splitEditor"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+x 2",
|
||||||
|
"command": "workbench.action.splitEditorDown"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+k ctrl+\\",
|
||||||
|
"command": "-workbench.action.splitEditorDown"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+x 1",
|
||||||
|
"command": "workbench.action.joinAllGroups"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+x 0",
|
||||||
|
"command": "workbench.action.closeEditorsAndGroup"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+x shift+=",
|
||||||
|
"command": "workbench.action.evenEditorWidths"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "shift+up",
|
||||||
|
"command": "workbench.action.focusAboveGroup"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+k ctrl+up",
|
||||||
|
"command": "-workbench.action.focusAboveGroup"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "shift+down",
|
||||||
|
"command": "workbench.action.focusBelowGroup"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+k ctrl+down",
|
||||||
|
"command": "-workbench.action.focusBelowGroup"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "shift+left",
|
||||||
|
"command": "workbench.action.focusLeftGroup"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+k ctrl+left",
|
||||||
|
"command": "-workbench.action.focusLeftGroup"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "shift+right",
|
||||||
|
"command": "workbench.action.focusRightGroup"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+k ctrl+right",
|
||||||
|
"command": "-workbench.action.focusRightGroup"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+x ctrl+s",
|
||||||
|
"command": "workbench.action.files.save"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+s",
|
||||||
|
"command": "-workbench.action.files.save"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "alt+g g",
|
||||||
|
"command": "workbench.action.gotoLine"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+g",
|
||||||
|
"command": "-workbench.action.gotoLine"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+space",
|
||||||
|
"command": "editor.action.setSelectionAnchor",
|
||||||
|
"when": "editorTextFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+k ctrl+b",
|
||||||
|
"command": "-editor.action.setSelectionAnchor",
|
||||||
|
"when": "editorTextFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "alt+w",
|
||||||
|
"command": "editor.action.clipboardCopyAction"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+c",
|
||||||
|
"command": "-editor.action.clipboardCopyAction"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+w",
|
||||||
|
"command": "editor.action.clipboardCutAction"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+y",
|
||||||
|
"command": "editor.action.clipboardPasteAction"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+v",
|
||||||
|
"command": "-editor.action.clipboardPasteAction"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+x ctrl+f",
|
||||||
|
"command": "workbench.action.quickOpen"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+e",
|
||||||
|
"command": "-workbench.action.quickOpen"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+a",
|
||||||
|
"command": "cursorLineStart"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+e",
|
||||||
|
"command": "cursorLineEnd"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+s",
|
||||||
|
"command": "actions.find",
|
||||||
|
"when": "editorFocus || editorIsOpen"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+f",
|
||||||
|
"command": "-actions.find",
|
||||||
|
"when": "editorFocus || editorIsOpen"
|
||||||
|
}
|
||||||
|
]
|
17
ansible/roles/vscode/files/settings.json
Normal file
17
ansible/roles/vscode/files/settings.json
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"workbench.colorTheme": "Default High Contrast",
|
||||||
|
"remote.SSH.connectTimeout": 30,
|
||||||
|
"remote.SSH.enableDynamicForwarding": false,
|
||||||
|
"remote.SSH.enableAgentForwarding": false,
|
||||||
|
"remote.SSH.enableX11Forwarding": false,
|
||||||
|
"python.analysis.inlayHints.functionReturnTypes": true,
|
||||||
|
"python.analysis.inlayHints.variableTypes": true,
|
||||||
|
"editor.minimap.enabled": false,
|
||||||
|
"editor.fontSize": 12,
|
||||||
|
"editor.cursorStyle": "block",
|
||||||
|
"editor.fontFamily": "'Cascadia Mono', 'monospace', monospace",
|
||||||
|
"workbench.colorCustomizations": {
|
||||||
|
"editorCursor.foreground": "#ccff66",
|
||||||
|
"terminalCursor.foreground": "#ccff66"
|
||||||
|
}
|
||||||
|
}
|
@ -1,4 +1,29 @@
|
|||||||
|
- name: Build aur packages
|
||||||
|
when: closed_source_vscode
|
||||||
|
register: buildaur
|
||||||
|
become_user: "{{ build_user.name }}"
|
||||||
|
command: "aurutils-sync --no-view {{ item }}"
|
||||||
|
args:
|
||||||
|
creates: "/var/cache/pacman/custom/{{ item }}-*.pkg.tar.*"
|
||||||
|
loop:
|
||||||
|
- visual-studio-code-bin
|
||||||
|
|
||||||
|
- name: Update cache
|
||||||
|
when: closed_source_vscode and buildaur.changed
|
||||||
|
pacman:
|
||||||
|
name: []
|
||||||
|
state: present
|
||||||
|
update_cache: true
|
||||||
|
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
|
when: closed_source_vscode
|
||||||
|
package:
|
||||||
|
name:
|
||||||
|
- visual-studio-code-bin
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: Install packages
|
||||||
|
when: not closed_source_vscode
|
||||||
package:
|
package:
|
||||||
name:
|
name:
|
||||||
- code
|
- code
|
||||||
|
@ -0,0 +1,61 @@
|
|||||||
|
- name: Copy files
|
||||||
|
copy:
|
||||||
|
src: "files/{{ item.src }}"
|
||||||
|
dest: "{{ account_homedir.stdout }}/{{ item.dest }}"
|
||||||
|
mode: 0600
|
||||||
|
owner: "{{ account_name.stdout }}"
|
||||||
|
group: "{{ group_name.stdout }}"
|
||||||
|
loop:
|
||||||
|
# Support wayland
|
||||||
|
- src: code-flags.conf
|
||||||
|
dest: .config/code-flags.conf
|
||||||
|
|
||||||
|
- name: Create directories
|
||||||
|
when: closed_source_vscode
|
||||||
|
file:
|
||||||
|
name: "{{ account_homedir.stdout }}/{{ item }}"
|
||||||
|
state: directory
|
||||||
|
mode: 0700
|
||||||
|
owner: "{{ account_name.stdout }}"
|
||||||
|
group: "{{ group_name.stdout }}"
|
||||||
|
loop:
|
||||||
|
- .config/Code/User
|
||||||
|
|
||||||
|
- name: Copy files
|
||||||
|
when: closed_source_vscode
|
||||||
|
copy:
|
||||||
|
src: "files/{{ item.src }}"
|
||||||
|
dest: "{{ account_homedir.stdout }}/{{ item.dest }}"
|
||||||
|
mode: 0600
|
||||||
|
owner: "{{ account_name.stdout }}"
|
||||||
|
group: "{{ group_name.stdout }}"
|
||||||
|
loop:
|
||||||
|
- src: keybindings.json
|
||||||
|
dest: .config/Code/User/keybindings.json
|
||||||
|
- src: settings.json
|
||||||
|
dest: .config/Code/User/settings.json
|
||||||
|
|
||||||
|
- name: Create directories
|
||||||
|
when: not closed_source_vscode
|
||||||
|
file:
|
||||||
|
name: "{{ account_homedir.stdout }}/{{ item }}"
|
||||||
|
state: directory
|
||||||
|
mode: 0700
|
||||||
|
owner: "{{ account_name.stdout }}"
|
||||||
|
group: "{{ group_name.stdout }}"
|
||||||
|
loop:
|
||||||
|
- .config/Code/User
|
||||||
|
|
||||||
|
- name: Copy files
|
||||||
|
when: not closed_source_vscode
|
||||||
|
copy:
|
||||||
|
src: "files/{{ item.src }}"
|
||||||
|
dest: "{{ account_homedir.stdout }}/{{ item.dest }}"
|
||||||
|
mode: 0600
|
||||||
|
owner: "{{ account_name.stdout }}"
|
||||||
|
group: "{{ group_name.stdout }}"
|
||||||
|
loop:
|
||||||
|
- src: keybindings.json
|
||||||
|
dest: .config/Code - OSS/User/keybindings.json
|
||||||
|
- src: settings.json
|
||||||
|
dest: .config/Code - OSS/User/settings.json
|
Loading…
x
Reference in New Issue
Block a user