Skip to content

Commit

Permalink
refactor: fix build
Browse files Browse the repository at this point in the history
- by fixing the files/ directory migration
- and also updating the files module syntax
- and by copying configurations previously in /usr/etc/ to /etc/
  • Loading branch information
xynydev committed Aug 11, 2024
1 parent 2ff928e commit 24f7cde
Show file tree
Hide file tree
Showing 70 changed files with 13 additions and 6 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 4 additions & 3 deletions generators/config/plasma.pkl
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ plasma = new Dynamic {
}
files = (modules.Files) {
files = new Listing {
new Mapping<String, String> {
["plasma"] = "/usr"
}
(modules.FilesListingItem) {
source = "system/plasma/"
destination = "/"
}
}
}
scripts = (modules.Script) {
Expand Down
5 changes: 3 additions & 2 deletions generators/config/shared.pkl
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ shared = new Dynamic {
}
files = (modules.Files) {
files = new Listing {
new Mapping<String, String> {
["shared"] = "/usr"
(modules.FilesListingItem) {
source = "system/shared/"
destination = "/"
}
}
}
Expand Down
7 changes: 6 additions & 1 deletion generators/typing/modules.pkl
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,14 @@ class DefaultFlatpaks extends Module {
user: DefaultFlatpaksNamespace
}

class FilesListingItem {
source: String
destination: String
}

class Files extends Module {
fixed type: "files"
files: Listing<Mapping<String, String>>
files: Listing<FilesListingItem>
}

class Bling extends Module {
Expand Down

0 comments on commit 24f7cde

Please sign in to comment.