refactor: add support for Fedora desktop environment installation and update flake.lock

This commit is contained in:
2025-02-26 09:16:16 +01:00
parent 356f6d0dea
commit 3ca5bd7eca
3 changed files with 36 additions and 15 deletions

View File

@ -16,6 +16,26 @@
ansible.builtin.import_tasks: tasks/workstations/1password.yml
become: true
- name: Check if distro is Fedora (Workstation)
ansible.builtin.command: cat /etc/os-release
register: os_release
changed_when: false
failed_when: false
- name: Ensure desktop environment is installed
# dnf install switchdesk switchdesk-gui
# and
# dnf install @deepin-desktop-environment
# are required for Deepin Desktop Environment
ansible.builtin.package:
name:
- switchdesk
- switchdesk-gui
- "@deepin-desktop-environment"
state: present
when: os_release.stdout.find('Fedora Linux') != -1
become: true
- name: Ensure common packages are installed
ansible.builtin.package:
name:

View File

@ -7,11 +7,11 @@
]
},
"locked": {
"lastModified": 1736373539,
"narHash": "sha256-dinzAqCjenWDxuy+MqUQq0I4zUSfaCvN9rzuCmgMZJY=",
"lastModified": 1739757849,
"narHash": "sha256-Gs076ot1YuAAsYVcyidLKUMIc4ooOaRGO0PqTY7sBzA=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "bd65bc3cde04c16755955630b344bc9e35272c56",
"rev": "9d3d080aec2a35e05a15cedd281c2384767c2cfe",
"type": "github"
},
"original": {
@ -23,11 +23,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1739206421,
"narHash": "sha256-PwQASeL2cGVmrtQYlrBur0U20Xy07uSWVnFup2PHnDs=",
"lastModified": 1739923778,
"narHash": "sha256-BqUY8tz0AQ4to2Z4+uaKczh81zsGZSYxjgvtw+fvIfM=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "44534bc021b85c8d78e465021e21f33b856e2540",
"rev": "36864ed72f234b9540da4cf7a0c49e351d30d3f1",
"type": "github"
},
"original": {
@ -39,11 +39,11 @@
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1739214665,
"narHash": "sha256-26L8VAu3/1YRxS8MHgBOyOM8xALdo6N0I04PgorE7UM=",
"lastModified": 1739866667,
"narHash": "sha256-EO1ygNKZlsAC9avfcwHkKGMsmipUk1Uc0TbrEZpkn64=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "64e75cd44acf21c7933d61d7721e812eac1b5a0a",
"rev": "73cf49b8ad837ade2de76f87eb53fc85ed5d4680",
"type": "github"
},
"original": {