1 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
2 |
DENIED
|
moderate
|
App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-edit-system-files"
+title: "NixOS - edit system files"
+url: null
+body: """
Hello,\n
\n
I’m experiencing with NixOS and would like to know what would be the nicest way to add a specific line to a system file.\n
\n
As an example, how would you configure NixOS so the line \n
`auth sufficient pam_fprintd.so` \n
is added to the /etc/pam.d/doas file? As a bonus, it would be nice to know how to change an option (and not add an entire line) to a system file for which there is no NixOS default extraConfig/extraRules support for.\n
\n
This would allow me to add this line or not depending on the machine NixOS will be installed on.\n
\n
Thanks in advance for your suggestions.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 21
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728229373 {#2410
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32698
-titleTs: "'edit':2 'file':4 'nixo':1 'system':3"
-bodyTs: "'/etc/pam.d/doas':45 'ad':42 'add':19,63,86 'advanc':102 'allow':83 'auth':38 'bonus':49 'chang':58 'configur':33 'default':77 'depend':91 'entir':65 'exampl':29 'experienc':4 'extraconfig/extrarules':78 'file':26,46,70 'hello':1 'instal':98 'know':11,55 'like':9 'line':22,37,66,88 'm':3 'machin':94 'nice':53 'nicest':16 'nixo':6,34,76,95 'option':60 'pam_fprintd.so':40 'specif':21 'suffici':39 'suggest':105 'support':79 'system':25,69 'thank':100 'way':17 'would':8,13,31,51,82"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706116825
+visibility: "visible "
+apId: "https://lemmy.ml/post/10948730"
+editedAt: DateTimeImmutable @1728073520 {#1850
date: 2024-10-04 22:25:20.0 +02:00
}
+createdAt: DateTimeImmutable @1706044825 {#2420
date: 2024-01-23 22:20:25.0 +01:00
}
} |
|
Show voter details
|
3 |
DENIED
|
edit
|
App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-edit-system-files"
+title: "NixOS - edit system files"
+url: null
+body: """
Hello,\n
\n
I’m experiencing with NixOS and would like to know what would be the nicest way to add a specific line to a system file.\n
\n
As an example, how would you configure NixOS so the line \n
`auth sufficient pam_fprintd.so` \n
is added to the /etc/pam.d/doas file? As a bonus, it would be nice to know how to change an option (and not add an entire line) to a system file for which there is no NixOS default extraConfig/extraRules support for.\n
\n
This would allow me to add this line or not depending on the machine NixOS will be installed on.\n
\n
Thanks in advance for your suggestions.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 21
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728229373 {#2410
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32698
-titleTs: "'edit':2 'file':4 'nixo':1 'system':3"
-bodyTs: "'/etc/pam.d/doas':45 'ad':42 'add':19,63,86 'advanc':102 'allow':83 'auth':38 'bonus':49 'chang':58 'configur':33 'default':77 'depend':91 'entir':65 'exampl':29 'experienc':4 'extraconfig/extrarules':78 'file':26,46,70 'hello':1 'instal':98 'know':11,55 'like':9 'line':22,37,66,88 'm':3 'machin':94 'nice':53 'nicest':16 'nixo':6,34,76,95 'option':60 'pam_fprintd.so':40 'specif':21 'suffici':39 'suggest':105 'support':79 'system':25,69 'thank':100 'way':17 'would':8,13,31,51,82"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706116825
+visibility: "visible "
+apId: "https://lemmy.ml/post/10948730"
+editedAt: DateTimeImmutable @1728073520 {#1850
date: 2024-10-04 22:25:20.0 +02:00
}
+createdAt: DateTimeImmutable @1706044825 {#2420
date: 2024-01-23 22:20:25.0 +01:00
}
} |
|
Show voter details
|
4 |
DENIED
|
moderate
|
App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-edit-system-files"
+title: "NixOS - edit system files"
+url: null
+body: """
Hello,\n
\n
I’m experiencing with NixOS and would like to know what would be the nicest way to add a specific line to a system file.\n
\n
As an example, how would you configure NixOS so the line \n
`auth sufficient pam_fprintd.so` \n
is added to the /etc/pam.d/doas file? As a bonus, it would be nice to know how to change an option (and not add an entire line) to a system file for which there is no NixOS default extraConfig/extraRules support for.\n
\n
This would allow me to add this line or not depending on the machine NixOS will be installed on.\n
\n
Thanks in advance for your suggestions.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 21
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728229373 {#2410
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32698
-titleTs: "'edit':2 'file':4 'nixo':1 'system':3"
-bodyTs: "'/etc/pam.d/doas':45 'ad':42 'add':19,63,86 'advanc':102 'allow':83 'auth':38 'bonus':49 'chang':58 'configur':33 'default':77 'depend':91 'entir':65 'exampl':29 'experienc':4 'extraconfig/extrarules':78 'file':26,46,70 'hello':1 'instal':98 'know':11,55 'like':9 'line':22,37,66,88 'm':3 'machin':94 'nice':53 'nicest':16 'nixo':6,34,76,95 'option':60 'pam_fprintd.so':40 'specif':21 'suffici':39 'suggest':105 'support':79 'system':25,69 'thank':100 'way':17 'would':8,13,31,51,82"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706116825
+visibility: "visible "
+apId: "https://lemmy.ml/post/10948730"
+editedAt: DateTimeImmutable @1728073520 {#1850
date: 2024-10-04 22:25:20.0 +02:00
}
+createdAt: DateTimeImmutable @1706044825 {#2420
date: 2024-01-23 22:20:25.0 +01:00
}
} |
|
Show voter details
|
5 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
6 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4039
+user: App\Entity\User {#3987 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-edit-system-files"
+title: "NixOS - edit system files"
+url: null
+body: """
Hello,\n
\n
I’m experiencing with NixOS and would like to know what would be the nicest way to add a specific line to a system file.\n
\n
As an example, how would you configure NixOS so the line \n
`auth sufficient pam_fprintd.so` \n
is added to the /etc/pam.d/doas file? As a bonus, it would be nice to know how to change an option (and not add an entire line) to a system file for which there is no NixOS default extraConfig/extraRules support for.\n
\n
This would allow me to add this line or not depending on the machine NixOS will be installed on.\n
\n
Thanks in advance for your suggestions.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 21
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728229373 {#2410
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32698
-titleTs: "'edit':2 'file':4 'nixo':1 'system':3"
-bodyTs: "'/etc/pam.d/doas':45 'ad':42 'add':19,63,86 'advanc':102 'allow':83 'auth':38 'bonus':49 'chang':58 'configur':33 'default':77 'depend':91 'entir':65 'exampl':29 'experienc':4 'extraconfig/extrarules':78 'file':26,46,70 'hello':1 'instal':98 'know':11,55 'like':9 'line':22,37,66,88 'm':3 'machin':94 'nice':53 'nicest':16 'nixo':6,34,76,95 'option':60 'pam_fprintd.so':40 'specif':21 'suffici':39 'suggest':105 'support':79 'system':25,69 'thank':100 'way':17 'would':8,13,31,51,82"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706116825
+visibility: "visible "
+apId: "https://lemmy.ml/post/10948730"
+editedAt: DateTimeImmutable @1728073520 {#1850
date: 2024-10-04 22:25:20.0 +02:00
}
+createdAt: DateTimeImmutable @1706044825 {#2420
date: 2024-01-23 22:20:25.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
I did some digging around in the manual, and I tested this option which seems to work:\n
\n
```\n
\n
<span style="color:#323232;">security.pam.services.doas.fprintAuth = true;\n
</span>\n
```\n
\n
On my machine that adds this line to `/etc/pam.d/doas`:\n
\n
```\n
\n
<span style="color:#323232;">auth sufficient /nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so # fprintd (order 11400)\n
</span>\n
```\n
\n
**Edit:** Note that the NixOS option puts in the full path to `pam_fprintd.so`. That’s necessary because NixOS doesn’t put `so` files in search paths.\n
\n
Without doing more research I don’t know how to add arbitrary options to pam files in case you run into something that isn’t mapped to a NixOS option yet. The implementation for the pam options is [here](https://github.com/NixOS/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix); there might be something in there that would work.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 11
+score: 0
+lastActive: DateTime @1728229373 {#4049
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+tags: [
"323232"
]
+mentions: [
"@wwwgem@lemmy.ml"
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4037 …}
+nested: Doctrine\ORM\PersistentCollection {#4035 …}
+votes: Doctrine\ORM\PersistentCollection {#4033 …}
+reports: Doctrine\ORM\PersistentCollection {#4031 …}
+favourites: Doctrine\ORM\PersistentCollection {#3999 …}
+notifications: Doctrine\ORM\PersistentCollection {#4003 …}
-id: 335247
-bodyTs: "'/etc/pam.d/doas':28 '/nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so':31 '/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':102 '11400':34 'add':24,71 'arbitrari':72 'around':5 'auth':29 'case':78 'dig':4 'doesn':53 'edit':35 'file':57,76 'fprintd':32 'full':44 'github.com':101 'github.com/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':100 'implement':93 'isn':84 'know':68 'line':26 'machin':22 'manual':8 'map':86 'might':104 'necessari':50 'nixo':39,52,89 'note':36 'option':13,40,73,90,97 'order':33 'pam':75,96 'pam_fprintd.so':47 'path':45,60 'put':41,55 'research':64 'run':80 'search':59 'security.pam.services.doas.fprintauth':18 'seem':15 'someth':82,106 'suffici':30 'test':11 'true':19 'without':61 'work':17,111 'would':110 'yet':91"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/2189342"
+editedAt: DateTimeImmutable @1728075318 {#3985
date: 2024-10-04 22:55:18.0 +02:00
}
+createdAt: DateTimeImmutable @1706046595 {#4048
date: 2024-01-23 22:49:55.0 +01:00
}
} |
|
Show voter details
|
7 |
DENIED
|
edit
|
App\Entity\EntryComment {#4039
+user: App\Entity\User {#3987 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-edit-system-files"
+title: "NixOS - edit system files"
+url: null
+body: """
Hello,\n
\n
I’m experiencing with NixOS and would like to know what would be the nicest way to add a specific line to a system file.\n
\n
As an example, how would you configure NixOS so the line \n
`auth sufficient pam_fprintd.so` \n
is added to the /etc/pam.d/doas file? As a bonus, it would be nice to know how to change an option (and not add an entire line) to a system file for which there is no NixOS default extraConfig/extraRules support for.\n
\n
This would allow me to add this line or not depending on the machine NixOS will be installed on.\n
\n
Thanks in advance for your suggestions.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 21
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728229373 {#2410
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32698
-titleTs: "'edit':2 'file':4 'nixo':1 'system':3"
-bodyTs: "'/etc/pam.d/doas':45 'ad':42 'add':19,63,86 'advanc':102 'allow':83 'auth':38 'bonus':49 'chang':58 'configur':33 'default':77 'depend':91 'entir':65 'exampl':29 'experienc':4 'extraconfig/extrarules':78 'file':26,46,70 'hello':1 'instal':98 'know':11,55 'like':9 'line':22,37,66,88 'm':3 'machin':94 'nice':53 'nicest':16 'nixo':6,34,76,95 'option':60 'pam_fprintd.so':40 'specif':21 'suffici':39 'suggest':105 'support':79 'system':25,69 'thank':100 'way':17 'would':8,13,31,51,82"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706116825
+visibility: "visible "
+apId: "https://lemmy.ml/post/10948730"
+editedAt: DateTimeImmutable @1728073520 {#1850
date: 2024-10-04 22:25:20.0 +02:00
}
+createdAt: DateTimeImmutable @1706044825 {#2420
date: 2024-01-23 22:20:25.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
I did some digging around in the manual, and I tested this option which seems to work:\n
\n
```\n
\n
<span style="color:#323232;">security.pam.services.doas.fprintAuth = true;\n
</span>\n
```\n
\n
On my machine that adds this line to `/etc/pam.d/doas`:\n
\n
```\n
\n
<span style="color:#323232;">auth sufficient /nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so # fprintd (order 11400)\n
</span>\n
```\n
\n
**Edit:** Note that the NixOS option puts in the full path to `pam_fprintd.so`. That’s necessary because NixOS doesn’t put `so` files in search paths.\n
\n
Without doing more research I don’t know how to add arbitrary options to pam files in case you run into something that isn’t mapped to a NixOS option yet. The implementation for the pam options is [here](https://github.com/NixOS/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix); there might be something in there that would work.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 11
+score: 0
+lastActive: DateTime @1728229373 {#4049
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+tags: [
"323232"
]
+mentions: [
"@wwwgem@lemmy.ml"
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4037 …}
+nested: Doctrine\ORM\PersistentCollection {#4035 …}
+votes: Doctrine\ORM\PersistentCollection {#4033 …}
+reports: Doctrine\ORM\PersistentCollection {#4031 …}
+favourites: Doctrine\ORM\PersistentCollection {#3999 …}
+notifications: Doctrine\ORM\PersistentCollection {#4003 …}
-id: 335247
-bodyTs: "'/etc/pam.d/doas':28 '/nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so':31 '/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':102 '11400':34 'add':24,71 'arbitrari':72 'around':5 'auth':29 'case':78 'dig':4 'doesn':53 'edit':35 'file':57,76 'fprintd':32 'full':44 'github.com':101 'github.com/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':100 'implement':93 'isn':84 'know':68 'line':26 'machin':22 'manual':8 'map':86 'might':104 'necessari':50 'nixo':39,52,89 'note':36 'option':13,40,73,90,97 'order':33 'pam':75,96 'pam_fprintd.so':47 'path':45,60 'put':41,55 'research':64 'run':80 'search':59 'security.pam.services.doas.fprintauth':18 'seem':15 'someth':82,106 'suffici':30 'test':11 'true':19 'without':61 'work':17,111 'would':110 'yet':91"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/2189342"
+editedAt: DateTimeImmutable @1728075318 {#3985
date: 2024-10-04 22:55:18.0 +02:00
}
+createdAt: DateTimeImmutable @1706046595 {#4048
date: 2024-01-23 22:49:55.0 +01:00
}
} |
|
Show voter details
|
8 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4039
+user: App\Entity\User {#3987 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-edit-system-files"
+title: "NixOS - edit system files"
+url: null
+body: """
Hello,\n
\n
I’m experiencing with NixOS and would like to know what would be the nicest way to add a specific line to a system file.\n
\n
As an example, how would you configure NixOS so the line \n
`auth sufficient pam_fprintd.so` \n
is added to the /etc/pam.d/doas file? As a bonus, it would be nice to know how to change an option (and not add an entire line) to a system file for which there is no NixOS default extraConfig/extraRules support for.\n
\n
This would allow me to add this line or not depending on the machine NixOS will be installed on.\n
\n
Thanks in advance for your suggestions.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 21
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728229373 {#2410
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32698
-titleTs: "'edit':2 'file':4 'nixo':1 'system':3"
-bodyTs: "'/etc/pam.d/doas':45 'ad':42 'add':19,63,86 'advanc':102 'allow':83 'auth':38 'bonus':49 'chang':58 'configur':33 'default':77 'depend':91 'entir':65 'exampl':29 'experienc':4 'extraconfig/extrarules':78 'file':26,46,70 'hello':1 'instal':98 'know':11,55 'like':9 'line':22,37,66,88 'm':3 'machin':94 'nice':53 'nicest':16 'nixo':6,34,76,95 'option':60 'pam_fprintd.so':40 'specif':21 'suffici':39 'suggest':105 'support':79 'system':25,69 'thank':100 'way':17 'would':8,13,31,51,82"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706116825
+visibility: "visible "
+apId: "https://lemmy.ml/post/10948730"
+editedAt: DateTimeImmutable @1728073520 {#1850
date: 2024-10-04 22:25:20.0 +02:00
}
+createdAt: DateTimeImmutable @1706044825 {#2420
date: 2024-01-23 22:20:25.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
I did some digging around in the manual, and I tested this option which seems to work:\n
\n
```\n
\n
<span style="color:#323232;">security.pam.services.doas.fprintAuth = true;\n
</span>\n
```\n
\n
On my machine that adds this line to `/etc/pam.d/doas`:\n
\n
```\n
\n
<span style="color:#323232;">auth sufficient /nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so # fprintd (order 11400)\n
</span>\n
```\n
\n
**Edit:** Note that the NixOS option puts in the full path to `pam_fprintd.so`. That’s necessary because NixOS doesn’t put `so` files in search paths.\n
\n
Without doing more research I don’t know how to add arbitrary options to pam files in case you run into something that isn’t mapped to a NixOS option yet. The implementation for the pam options is [here](https://github.com/NixOS/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix); there might be something in there that would work.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 11
+score: 0
+lastActive: DateTime @1728229373 {#4049
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+tags: [
"323232"
]
+mentions: [
"@wwwgem@lemmy.ml"
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4037 …}
+nested: Doctrine\ORM\PersistentCollection {#4035 …}
+votes: Doctrine\ORM\PersistentCollection {#4033 …}
+reports: Doctrine\ORM\PersistentCollection {#4031 …}
+favourites: Doctrine\ORM\PersistentCollection {#3999 …}
+notifications: Doctrine\ORM\PersistentCollection {#4003 …}
-id: 335247
-bodyTs: "'/etc/pam.d/doas':28 '/nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so':31 '/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':102 '11400':34 'add':24,71 'arbitrari':72 'around':5 'auth':29 'case':78 'dig':4 'doesn':53 'edit':35 'file':57,76 'fprintd':32 'full':44 'github.com':101 'github.com/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':100 'implement':93 'isn':84 'know':68 'line':26 'machin':22 'manual':8 'map':86 'might':104 'necessari':50 'nixo':39,52,89 'note':36 'option':13,40,73,90,97 'order':33 'pam':75,96 'pam_fprintd.so':47 'path':45,60 'put':41,55 'research':64 'run':80 'search':59 'security.pam.services.doas.fprintauth':18 'seem':15 'someth':82,106 'suffici':30 'test':11 'true':19 'without':61 'work':17,111 'would':110 'yet':91"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/2189342"
+editedAt: DateTimeImmutable @1728075318 {#3985
date: 2024-10-04 22:55:18.0 +02:00
}
+createdAt: DateTimeImmutable @1706046595 {#4048
date: 2024-01-23 22:49:55.0 +01:00
}
} |
|
Show voter details
|
9 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
10 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4056
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-edit-system-files"
+title: "NixOS - edit system files"
+url: null
+body: """
Hello,\n
\n
I’m experiencing with NixOS and would like to know what would be the nicest way to add a specific line to a system file.\n
\n
As an example, how would you configure NixOS so the line \n
`auth sufficient pam_fprintd.so` \n
is added to the /etc/pam.d/doas file? As a bonus, it would be nice to know how to change an option (and not add an entire line) to a system file for which there is no NixOS default extraConfig/extraRules support for.\n
\n
This would allow me to add this line or not depending on the machine NixOS will be installed on.\n
\n
Thanks in advance for your suggestions.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 21
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728229373 {#2410
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32698
-titleTs: "'edit':2 'file':4 'nixo':1 'system':3"
-bodyTs: "'/etc/pam.d/doas':45 'ad':42 'add':19,63,86 'advanc':102 'allow':83 'auth':38 'bonus':49 'chang':58 'configur':33 'default':77 'depend':91 'entir':65 'exampl':29 'experienc':4 'extraconfig/extrarules':78 'file':26,46,70 'hello':1 'instal':98 'know':11,55 'like':9 'line':22,37,66,88 'm':3 'machin':94 'nice':53 'nicest':16 'nixo':6,34,76,95 'option':60 'pam_fprintd.so':40 'specif':21 'suffici':39 'suggest':105 'support':79 'system':25,69 'thank':100 'way':17 'would':8,13,31,51,82"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706116825
+visibility: "visible "
+apId: "https://lemmy.ml/post/10948730"
+editedAt: DateTimeImmutable @1728073520 {#1850
date: 2024-10-04 22:25:20.0 +02:00
}
+createdAt: DateTimeImmutable @1706044825 {#2420
date: 2024-01-23 22:20:25.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4039
+user: App\Entity\User {#3987 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
I did some digging around in the manual, and I tested this option which seems to work:\n
\n
```\n
\n
<span style="color:#323232;">security.pam.services.doas.fprintAuth = true;\n
</span>\n
```\n
\n
On my machine that adds this line to `/etc/pam.d/doas`:\n
\n
```\n
\n
<span style="color:#323232;">auth sufficient /nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so # fprintd (order 11400)\n
</span>\n
```\n
\n
**Edit:** Note that the NixOS option puts in the full path to `pam_fprintd.so`. That’s necessary because NixOS doesn’t put `so` files in search paths.\n
\n
Without doing more research I don’t know how to add arbitrary options to pam files in case you run into something that isn’t mapped to a NixOS option yet. The implementation for the pam options is [here](https://github.com/NixOS/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix); there might be something in there that would work.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 11
+score: 0
+lastActive: DateTime @1728229373 {#4049
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+tags: [
"323232"
]
+mentions: [
"@wwwgem@lemmy.ml"
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4037 …}
+nested: Doctrine\ORM\PersistentCollection {#4035 …}
+votes: Doctrine\ORM\PersistentCollection {#4033 …}
+reports: Doctrine\ORM\PersistentCollection {#4031 …}
+favourites: Doctrine\ORM\PersistentCollection {#3999 …}
+notifications: Doctrine\ORM\PersistentCollection {#4003 …}
-id: 335247
-bodyTs: "'/etc/pam.d/doas':28 '/nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so':31 '/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':102 '11400':34 'add':24,71 'arbitrari':72 'around':5 'auth':29 'case':78 'dig':4 'doesn':53 'edit':35 'file':57,76 'fprintd':32 'full':44 'github.com':101 'github.com/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':100 'implement':93 'isn':84 'know':68 'line':26 'machin':22 'manual':8 'map':86 'might':104 'necessari':50 'nixo':39,52,89 'note':36 'option':13,40,73,90,97 'order':33 'pam':75,96 'pam_fprintd.so':47 'path':45,60 'put':41,55 'research':64 'run':80 'search':59 'security.pam.services.doas.fprintauth':18 'seem':15 'someth':82,106 'suffici':30 'test':11 'true':19 'without':61 'work':17,111 'would':110 'yet':91"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/2189342"
+editedAt: DateTimeImmutable @1728075318 {#3985
date: 2024-10-04 22:55:18.0 +02:00
}
+createdAt: DateTimeImmutable @1706046595 {#4048
date: 2024-01-23 22:49:55.0 +01:00
}
}
+root: App\Entity\EntryComment {#4039}
+body: "Thanks very much. That’s exactly what I needed. I’m still not used to the diversity of NixOS documentation and was not aware of this one."
+lang: "en"
+isAdult: false
+favouriteCount: 8
+score: 0
+lastActive: DateTime @1706047826 {#4061
date: 2024-01-23 23:10:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@hallettj@beehaw.org"
]
+children: Doctrine\ORM\PersistentCollection {#4064 …}
+nested: Doctrine\ORM\PersistentCollection {#4070 …}
+votes: Doctrine\ORM\PersistentCollection {#4067 …}
+reports: Doctrine\ORM\PersistentCollection {#4055 …}
+favourites: Doctrine\ORM\PersistentCollection {#4053 …}
+notifications: Doctrine\ORM\PersistentCollection {#4051 …}
-id: 335296
-bodyTs: "'awar':24 'divers':17 'document':20 'exact':6 'm':11 'much':3 'need':9 'nixo':19 'one':27 'still':12 'thank':1 'use':14"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7661857"
+editedAt: null
+createdAt: DateTimeImmutable @1706047826 {#4058
date: 2024-01-23 23:10:26.0 +01:00
}
} |
|
Show voter details
|
11 |
DENIED
|
edit
|
App\Entity\EntryComment {#4056
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-edit-system-files"
+title: "NixOS - edit system files"
+url: null
+body: """
Hello,\n
\n
I’m experiencing with NixOS and would like to know what would be the nicest way to add a specific line to a system file.\n
\n
As an example, how would you configure NixOS so the line \n
`auth sufficient pam_fprintd.so` \n
is added to the /etc/pam.d/doas file? As a bonus, it would be nice to know how to change an option (and not add an entire line) to a system file for which there is no NixOS default extraConfig/extraRules support for.\n
\n
This would allow me to add this line or not depending on the machine NixOS will be installed on.\n
\n
Thanks in advance for your suggestions.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 21
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728229373 {#2410
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32698
-titleTs: "'edit':2 'file':4 'nixo':1 'system':3"
-bodyTs: "'/etc/pam.d/doas':45 'ad':42 'add':19,63,86 'advanc':102 'allow':83 'auth':38 'bonus':49 'chang':58 'configur':33 'default':77 'depend':91 'entir':65 'exampl':29 'experienc':4 'extraconfig/extrarules':78 'file':26,46,70 'hello':1 'instal':98 'know':11,55 'like':9 'line':22,37,66,88 'm':3 'machin':94 'nice':53 'nicest':16 'nixo':6,34,76,95 'option':60 'pam_fprintd.so':40 'specif':21 'suffici':39 'suggest':105 'support':79 'system':25,69 'thank':100 'way':17 'would':8,13,31,51,82"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706116825
+visibility: "visible "
+apId: "https://lemmy.ml/post/10948730"
+editedAt: DateTimeImmutable @1728073520 {#1850
date: 2024-10-04 22:25:20.0 +02:00
}
+createdAt: DateTimeImmutable @1706044825 {#2420
date: 2024-01-23 22:20:25.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4039
+user: App\Entity\User {#3987 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
I did some digging around in the manual, and I tested this option which seems to work:\n
\n
```\n
\n
<span style="color:#323232;">security.pam.services.doas.fprintAuth = true;\n
</span>\n
```\n
\n
On my machine that adds this line to `/etc/pam.d/doas`:\n
\n
```\n
\n
<span style="color:#323232;">auth sufficient /nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so # fprintd (order 11400)\n
</span>\n
```\n
\n
**Edit:** Note that the NixOS option puts in the full path to `pam_fprintd.so`. That’s necessary because NixOS doesn’t put `so` files in search paths.\n
\n
Without doing more research I don’t know how to add arbitrary options to pam files in case you run into something that isn’t mapped to a NixOS option yet. The implementation for the pam options is [here](https://github.com/NixOS/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix); there might be something in there that would work.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 11
+score: 0
+lastActive: DateTime @1728229373 {#4049
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+tags: [
"323232"
]
+mentions: [
"@wwwgem@lemmy.ml"
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4037 …}
+nested: Doctrine\ORM\PersistentCollection {#4035 …}
+votes: Doctrine\ORM\PersistentCollection {#4033 …}
+reports: Doctrine\ORM\PersistentCollection {#4031 …}
+favourites: Doctrine\ORM\PersistentCollection {#3999 …}
+notifications: Doctrine\ORM\PersistentCollection {#4003 …}
-id: 335247
-bodyTs: "'/etc/pam.d/doas':28 '/nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so':31 '/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':102 '11400':34 'add':24,71 'arbitrari':72 'around':5 'auth':29 'case':78 'dig':4 'doesn':53 'edit':35 'file':57,76 'fprintd':32 'full':44 'github.com':101 'github.com/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':100 'implement':93 'isn':84 'know':68 'line':26 'machin':22 'manual':8 'map':86 'might':104 'necessari':50 'nixo':39,52,89 'note':36 'option':13,40,73,90,97 'order':33 'pam':75,96 'pam_fprintd.so':47 'path':45,60 'put':41,55 'research':64 'run':80 'search':59 'security.pam.services.doas.fprintauth':18 'seem':15 'someth':82,106 'suffici':30 'test':11 'true':19 'without':61 'work':17,111 'would':110 'yet':91"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/2189342"
+editedAt: DateTimeImmutable @1728075318 {#3985
date: 2024-10-04 22:55:18.0 +02:00
}
+createdAt: DateTimeImmutable @1706046595 {#4048
date: 2024-01-23 22:49:55.0 +01:00
}
}
+root: App\Entity\EntryComment {#4039}
+body: "Thanks very much. That’s exactly what I needed. I’m still not used to the diversity of NixOS documentation and was not aware of this one."
+lang: "en"
+isAdult: false
+favouriteCount: 8
+score: 0
+lastActive: DateTime @1706047826 {#4061
date: 2024-01-23 23:10:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@hallettj@beehaw.org"
]
+children: Doctrine\ORM\PersistentCollection {#4064 …}
+nested: Doctrine\ORM\PersistentCollection {#4070 …}
+votes: Doctrine\ORM\PersistentCollection {#4067 …}
+reports: Doctrine\ORM\PersistentCollection {#4055 …}
+favourites: Doctrine\ORM\PersistentCollection {#4053 …}
+notifications: Doctrine\ORM\PersistentCollection {#4051 …}
-id: 335296
-bodyTs: "'awar':24 'divers':17 'document':20 'exact':6 'm':11 'much':3 'need':9 'nixo':19 'one':27 'still':12 'thank':1 'use':14"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7661857"
+editedAt: null
+createdAt: DateTimeImmutable @1706047826 {#4058
date: 2024-01-23 23:10:26.0 +01:00
}
} |
|
Show voter details
|
12 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4056
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-edit-system-files"
+title: "NixOS - edit system files"
+url: null
+body: """
Hello,\n
\n
I’m experiencing with NixOS and would like to know what would be the nicest way to add a specific line to a system file.\n
\n
As an example, how would you configure NixOS so the line \n
`auth sufficient pam_fprintd.so` \n
is added to the /etc/pam.d/doas file? As a bonus, it would be nice to know how to change an option (and not add an entire line) to a system file for which there is no NixOS default extraConfig/extraRules support for.\n
\n
This would allow me to add this line or not depending on the machine NixOS will be installed on.\n
\n
Thanks in advance for your suggestions.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 21
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728229373 {#2410
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32698
-titleTs: "'edit':2 'file':4 'nixo':1 'system':3"
-bodyTs: "'/etc/pam.d/doas':45 'ad':42 'add':19,63,86 'advanc':102 'allow':83 'auth':38 'bonus':49 'chang':58 'configur':33 'default':77 'depend':91 'entir':65 'exampl':29 'experienc':4 'extraconfig/extrarules':78 'file':26,46,70 'hello':1 'instal':98 'know':11,55 'like':9 'line':22,37,66,88 'm':3 'machin':94 'nice':53 'nicest':16 'nixo':6,34,76,95 'option':60 'pam_fprintd.so':40 'specif':21 'suffici':39 'suggest':105 'support':79 'system':25,69 'thank':100 'way':17 'would':8,13,31,51,82"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706116825
+visibility: "visible "
+apId: "https://lemmy.ml/post/10948730"
+editedAt: DateTimeImmutable @1728073520 {#1850
date: 2024-10-04 22:25:20.0 +02:00
}
+createdAt: DateTimeImmutable @1706044825 {#2420
date: 2024-01-23 22:20:25.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4039
+user: App\Entity\User {#3987 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
I did some digging around in the manual, and I tested this option which seems to work:\n
\n
```\n
\n
<span style="color:#323232;">security.pam.services.doas.fprintAuth = true;\n
</span>\n
```\n
\n
On my machine that adds this line to `/etc/pam.d/doas`:\n
\n
```\n
\n
<span style="color:#323232;">auth sufficient /nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so # fprintd (order 11400)\n
</span>\n
```\n
\n
**Edit:** Note that the NixOS option puts in the full path to `pam_fprintd.so`. That’s necessary because NixOS doesn’t put `so` files in search paths.\n
\n
Without doing more research I don’t know how to add arbitrary options to pam files in case you run into something that isn’t mapped to a NixOS option yet. The implementation for the pam options is [here](https://github.com/NixOS/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix); there might be something in there that would work.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 11
+score: 0
+lastActive: DateTime @1728229373 {#4049
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+tags: [
"323232"
]
+mentions: [
"@wwwgem@lemmy.ml"
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4037 …}
+nested: Doctrine\ORM\PersistentCollection {#4035 …}
+votes: Doctrine\ORM\PersistentCollection {#4033 …}
+reports: Doctrine\ORM\PersistentCollection {#4031 …}
+favourites: Doctrine\ORM\PersistentCollection {#3999 …}
+notifications: Doctrine\ORM\PersistentCollection {#4003 …}
-id: 335247
-bodyTs: "'/etc/pam.d/doas':28 '/nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so':31 '/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':102 '11400':34 'add':24,71 'arbitrari':72 'around':5 'auth':29 'case':78 'dig':4 'doesn':53 'edit':35 'file':57,76 'fprintd':32 'full':44 'github.com':101 'github.com/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':100 'implement':93 'isn':84 'know':68 'line':26 'machin':22 'manual':8 'map':86 'might':104 'necessari':50 'nixo':39,52,89 'note':36 'option':13,40,73,90,97 'order':33 'pam':75,96 'pam_fprintd.so':47 'path':45,60 'put':41,55 'research':64 'run':80 'search':59 'security.pam.services.doas.fprintauth':18 'seem':15 'someth':82,106 'suffici':30 'test':11 'true':19 'without':61 'work':17,111 'would':110 'yet':91"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/2189342"
+editedAt: DateTimeImmutable @1728075318 {#3985
date: 2024-10-04 22:55:18.0 +02:00
}
+createdAt: DateTimeImmutable @1706046595 {#4048
date: 2024-01-23 22:49:55.0 +01:00
}
}
+root: App\Entity\EntryComment {#4039}
+body: "Thanks very much. That’s exactly what I needed. I’m still not used to the diversity of NixOS documentation and was not aware of this one."
+lang: "en"
+isAdult: false
+favouriteCount: 8
+score: 0
+lastActive: DateTime @1706047826 {#4061
date: 2024-01-23 23:10:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@hallettj@beehaw.org"
]
+children: Doctrine\ORM\PersistentCollection {#4064 …}
+nested: Doctrine\ORM\PersistentCollection {#4070 …}
+votes: Doctrine\ORM\PersistentCollection {#4067 …}
+reports: Doctrine\ORM\PersistentCollection {#4055 …}
+favourites: Doctrine\ORM\PersistentCollection {#4053 …}
+notifications: Doctrine\ORM\PersistentCollection {#4051 …}
-id: 335296
-bodyTs: "'awar':24 'divers':17 'document':20 'exact':6 'm':11 'much':3 'need':9 'nixo':19 'one':27 'still':12 'thank':1 'use':14"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7661857"
+editedAt: null
+createdAt: DateTimeImmutable @1706047826 {#4058
date: 2024-01-23 23:10:26.0 +01:00
}
} |
|
Show voter details
|
13 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
14 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4164
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-edit-system-files"
+title: "NixOS - edit system files"
+url: null
+body: """
Hello,\n
\n
I’m experiencing with NixOS and would like to know what would be the nicest way to add a specific line to a system file.\n
\n
As an example, how would you configure NixOS so the line \n
`auth sufficient pam_fprintd.so` \n
is added to the /etc/pam.d/doas file? As a bonus, it would be nice to know how to change an option (and not add an entire line) to a system file for which there is no NixOS default extraConfig/extraRules support for.\n
\n
This would allow me to add this line or not depending on the machine NixOS will be installed on.\n
\n
Thanks in advance for your suggestions.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 21
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728229373 {#2410
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32698
-titleTs: "'edit':2 'file':4 'nixo':1 'system':3"
-bodyTs: "'/etc/pam.d/doas':45 'ad':42 'add':19,63,86 'advanc':102 'allow':83 'auth':38 'bonus':49 'chang':58 'configur':33 'default':77 'depend':91 'entir':65 'exampl':29 'experienc':4 'extraconfig/extrarules':78 'file':26,46,70 'hello':1 'instal':98 'know':11,55 'like':9 'line':22,37,66,88 'm':3 'machin':94 'nice':53 'nicest':16 'nixo':6,34,76,95 'option':60 'pam_fprintd.so':40 'specif':21 'suffici':39 'suggest':105 'support':79 'system':25,69 'thank':100 'way':17 'would':8,13,31,51,82"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706116825
+visibility: "visible "
+apId: "https://lemmy.ml/post/10948730"
+editedAt: DateTimeImmutable @1728073520 {#1850
date: 2024-10-04 22:25:20.0 +02:00
}
+createdAt: DateTimeImmutable @1706044825 {#2420
date: 2024-01-23 22:20:25.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4056
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4039
+user: App\Entity\User {#3987 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
I did some digging around in the manual, and I tested this option which seems to work:\n
\n
```\n
\n
<span style="color:#323232;">security.pam.services.doas.fprintAuth = true;\n
</span>\n
```\n
\n
On my machine that adds this line to `/etc/pam.d/doas`:\n
\n
```\n
\n
<span style="color:#323232;">auth sufficient /nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so # fprintd (order 11400)\n
</span>\n
```\n
\n
**Edit:** Note that the NixOS option puts in the full path to `pam_fprintd.so`. That’s necessary because NixOS doesn’t put `so` files in search paths.\n
\n
Without doing more research I don’t know how to add arbitrary options to pam files in case you run into something that isn’t mapped to a NixOS option yet. The implementation for the pam options is [here](https://github.com/NixOS/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix); there might be something in there that would work.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 11
+score: 0
+lastActive: DateTime @1728229373 {#4049
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+tags: [
"323232"
]
+mentions: [
"@wwwgem@lemmy.ml"
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4037 …}
+nested: Doctrine\ORM\PersistentCollection {#4035 …}
+votes: Doctrine\ORM\PersistentCollection {#4033 …}
+reports: Doctrine\ORM\PersistentCollection {#4031 …}
+favourites: Doctrine\ORM\PersistentCollection {#3999 …}
+notifications: Doctrine\ORM\PersistentCollection {#4003 …}
-id: 335247
-bodyTs: "'/etc/pam.d/doas':28 '/nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so':31 '/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':102 '11400':34 'add':24,71 'arbitrari':72 'around':5 'auth':29 'case':78 'dig':4 'doesn':53 'edit':35 'file':57,76 'fprintd':32 'full':44 'github.com':101 'github.com/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':100 'implement':93 'isn':84 'know':68 'line':26 'machin':22 'manual':8 'map':86 'might':104 'necessari':50 'nixo':39,52,89 'note':36 'option':13,40,73,90,97 'order':33 'pam':75,96 'pam_fprintd.so':47 'path':45,60 'put':41,55 'research':64 'run':80 'search':59 'security.pam.services.doas.fprintauth':18 'seem':15 'someth':82,106 'suffici':30 'test':11 'true':19 'without':61 'work':17,111 'would':110 'yet':91"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/2189342"
+editedAt: DateTimeImmutable @1728075318 {#3985
date: 2024-10-04 22:55:18.0 +02:00
}
+createdAt: DateTimeImmutable @1706046595 {#4048
date: 2024-01-23 22:49:55.0 +01:00
}
}
+root: App\Entity\EntryComment {#4039}
+body: "Thanks very much. That’s exactly what I needed. I’m still not used to the diversity of NixOS documentation and was not aware of this one."
+lang: "en"
+isAdult: false
+favouriteCount: 8
+score: 0
+lastActive: DateTime @1706047826 {#4061
date: 2024-01-23 23:10:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@hallettj@beehaw.org"
]
+children: Doctrine\ORM\PersistentCollection {#4064 …}
+nested: Doctrine\ORM\PersistentCollection {#4070 …}
+votes: Doctrine\ORM\PersistentCollection {#4067 …}
+reports: Doctrine\ORM\PersistentCollection {#4055 …}
+favourites: Doctrine\ORM\PersistentCollection {#4053 …}
+notifications: Doctrine\ORM\PersistentCollection {#4051 …}
-id: 335296
-bodyTs: "'awar':24 'divers':17 'document':20 'exact':6 'm':11 'much':3 'need':9 'nixo':19 'one':27 'still':12 'thank':1 'use':14"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7661857"
+editedAt: null
+createdAt: DateTimeImmutable @1706047826 {#4058
date: 2024-01-23 23:10:26.0 +01:00
}
}
+root: App\Entity\EntryComment {#4039}
+body: "Just realized that I had this line in my config already but the change was not applied until I reboot. 😳"
+lang: "en"
+isAdult: false
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1706052608 {#4162
date: 2024-01-24 00:30:08.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@hallettj@beehaw.org"
]
+children: Doctrine\ORM\PersistentCollection {#4165 …}
+nested: Doctrine\ORM\PersistentCollection {#4167 …}
+votes: Doctrine\ORM\PersistentCollection {#4169 …}
+reports: Doctrine\ORM\PersistentCollection {#4171 …}
+favourites: Doctrine\ORM\PersistentCollection {#4173 …}
+notifications: Doctrine\ORM\PersistentCollection {#4175 …}
-id: 335467
-bodyTs: "'alreadi':11 'appli':17 'chang':14 'config':10 'line':7 'realiz':2 'reboot':20"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7663651"
+editedAt: null
+createdAt: DateTimeImmutable @1706052608 {#4163
date: 2024-01-24 00:30:08.0 +01:00
}
} |
|
Show voter details
|
15 |
DENIED
|
edit
|
App\Entity\EntryComment {#4164
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-edit-system-files"
+title: "NixOS - edit system files"
+url: null
+body: """
Hello,\n
\n
I’m experiencing with NixOS and would like to know what would be the nicest way to add a specific line to a system file.\n
\n
As an example, how would you configure NixOS so the line \n
`auth sufficient pam_fprintd.so` \n
is added to the /etc/pam.d/doas file? As a bonus, it would be nice to know how to change an option (and not add an entire line) to a system file for which there is no NixOS default extraConfig/extraRules support for.\n
\n
This would allow me to add this line or not depending on the machine NixOS will be installed on.\n
\n
Thanks in advance for your suggestions.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 21
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728229373 {#2410
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32698
-titleTs: "'edit':2 'file':4 'nixo':1 'system':3"
-bodyTs: "'/etc/pam.d/doas':45 'ad':42 'add':19,63,86 'advanc':102 'allow':83 'auth':38 'bonus':49 'chang':58 'configur':33 'default':77 'depend':91 'entir':65 'exampl':29 'experienc':4 'extraconfig/extrarules':78 'file':26,46,70 'hello':1 'instal':98 'know':11,55 'like':9 'line':22,37,66,88 'm':3 'machin':94 'nice':53 'nicest':16 'nixo':6,34,76,95 'option':60 'pam_fprintd.so':40 'specif':21 'suffici':39 'suggest':105 'support':79 'system':25,69 'thank':100 'way':17 'would':8,13,31,51,82"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706116825
+visibility: "visible "
+apId: "https://lemmy.ml/post/10948730"
+editedAt: DateTimeImmutable @1728073520 {#1850
date: 2024-10-04 22:25:20.0 +02:00
}
+createdAt: DateTimeImmutable @1706044825 {#2420
date: 2024-01-23 22:20:25.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4056
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4039
+user: App\Entity\User {#3987 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
I did some digging around in the manual, and I tested this option which seems to work:\n
\n
```\n
\n
<span style="color:#323232;">security.pam.services.doas.fprintAuth = true;\n
</span>\n
```\n
\n
On my machine that adds this line to `/etc/pam.d/doas`:\n
\n
```\n
\n
<span style="color:#323232;">auth sufficient /nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so # fprintd (order 11400)\n
</span>\n
```\n
\n
**Edit:** Note that the NixOS option puts in the full path to `pam_fprintd.so`. That’s necessary because NixOS doesn’t put `so` files in search paths.\n
\n
Without doing more research I don’t know how to add arbitrary options to pam files in case you run into something that isn’t mapped to a NixOS option yet. The implementation for the pam options is [here](https://github.com/NixOS/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix); there might be something in there that would work.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 11
+score: 0
+lastActive: DateTime @1728229373 {#4049
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+tags: [
"323232"
]
+mentions: [
"@wwwgem@lemmy.ml"
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4037 …}
+nested: Doctrine\ORM\PersistentCollection {#4035 …}
+votes: Doctrine\ORM\PersistentCollection {#4033 …}
+reports: Doctrine\ORM\PersistentCollection {#4031 …}
+favourites: Doctrine\ORM\PersistentCollection {#3999 …}
+notifications: Doctrine\ORM\PersistentCollection {#4003 …}
-id: 335247
-bodyTs: "'/etc/pam.d/doas':28 '/nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so':31 '/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':102 '11400':34 'add':24,71 'arbitrari':72 'around':5 'auth':29 'case':78 'dig':4 'doesn':53 'edit':35 'file':57,76 'fprintd':32 'full':44 'github.com':101 'github.com/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':100 'implement':93 'isn':84 'know':68 'line':26 'machin':22 'manual':8 'map':86 'might':104 'necessari':50 'nixo':39,52,89 'note':36 'option':13,40,73,90,97 'order':33 'pam':75,96 'pam_fprintd.so':47 'path':45,60 'put':41,55 'research':64 'run':80 'search':59 'security.pam.services.doas.fprintauth':18 'seem':15 'someth':82,106 'suffici':30 'test':11 'true':19 'without':61 'work':17,111 'would':110 'yet':91"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/2189342"
+editedAt: DateTimeImmutable @1728075318 {#3985
date: 2024-10-04 22:55:18.0 +02:00
}
+createdAt: DateTimeImmutable @1706046595 {#4048
date: 2024-01-23 22:49:55.0 +01:00
}
}
+root: App\Entity\EntryComment {#4039}
+body: "Thanks very much. That’s exactly what I needed. I’m still not used to the diversity of NixOS documentation and was not aware of this one."
+lang: "en"
+isAdult: false
+favouriteCount: 8
+score: 0
+lastActive: DateTime @1706047826 {#4061
date: 2024-01-23 23:10:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@hallettj@beehaw.org"
]
+children: Doctrine\ORM\PersistentCollection {#4064 …}
+nested: Doctrine\ORM\PersistentCollection {#4070 …}
+votes: Doctrine\ORM\PersistentCollection {#4067 …}
+reports: Doctrine\ORM\PersistentCollection {#4055 …}
+favourites: Doctrine\ORM\PersistentCollection {#4053 …}
+notifications: Doctrine\ORM\PersistentCollection {#4051 …}
-id: 335296
-bodyTs: "'awar':24 'divers':17 'document':20 'exact':6 'm':11 'much':3 'need':9 'nixo':19 'one':27 'still':12 'thank':1 'use':14"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7661857"
+editedAt: null
+createdAt: DateTimeImmutable @1706047826 {#4058
date: 2024-01-23 23:10:26.0 +01:00
}
}
+root: App\Entity\EntryComment {#4039}
+body: "Just realized that I had this line in my config already but the change was not applied until I reboot. 😳"
+lang: "en"
+isAdult: false
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1706052608 {#4162
date: 2024-01-24 00:30:08.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@hallettj@beehaw.org"
]
+children: Doctrine\ORM\PersistentCollection {#4165 …}
+nested: Doctrine\ORM\PersistentCollection {#4167 …}
+votes: Doctrine\ORM\PersistentCollection {#4169 …}
+reports: Doctrine\ORM\PersistentCollection {#4171 …}
+favourites: Doctrine\ORM\PersistentCollection {#4173 …}
+notifications: Doctrine\ORM\PersistentCollection {#4175 …}
-id: 335467
-bodyTs: "'alreadi':11 'appli':17 'chang':14 'config':10 'line':7 'realiz':2 'reboot':20"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7663651"
+editedAt: null
+createdAt: DateTimeImmutable @1706052608 {#4163
date: 2024-01-24 00:30:08.0 +01:00
}
} |
|
Show voter details
|
16 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4164
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-edit-system-files"
+title: "NixOS - edit system files"
+url: null
+body: """
Hello,\n
\n
I’m experiencing with NixOS and would like to know what would be the nicest way to add a specific line to a system file.\n
\n
As an example, how would you configure NixOS so the line \n
`auth sufficient pam_fprintd.so` \n
is added to the /etc/pam.d/doas file? As a bonus, it would be nice to know how to change an option (and not add an entire line) to a system file for which there is no NixOS default extraConfig/extraRules support for.\n
\n
This would allow me to add this line or not depending on the machine NixOS will be installed on.\n
\n
Thanks in advance for your suggestions.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 21
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728229373 {#2410
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32698
-titleTs: "'edit':2 'file':4 'nixo':1 'system':3"
-bodyTs: "'/etc/pam.d/doas':45 'ad':42 'add':19,63,86 'advanc':102 'allow':83 'auth':38 'bonus':49 'chang':58 'configur':33 'default':77 'depend':91 'entir':65 'exampl':29 'experienc':4 'extraconfig/extrarules':78 'file':26,46,70 'hello':1 'instal':98 'know':11,55 'like':9 'line':22,37,66,88 'm':3 'machin':94 'nice':53 'nicest':16 'nixo':6,34,76,95 'option':60 'pam_fprintd.so':40 'specif':21 'suffici':39 'suggest':105 'support':79 'system':25,69 'thank':100 'way':17 'would':8,13,31,51,82"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706116825
+visibility: "visible "
+apId: "https://lemmy.ml/post/10948730"
+editedAt: DateTimeImmutable @1728073520 {#1850
date: 2024-10-04 22:25:20.0 +02:00
}
+createdAt: DateTimeImmutable @1706044825 {#2420
date: 2024-01-23 22:20:25.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4056
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4039
+user: App\Entity\User {#3987 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
I did some digging around in the manual, and I tested this option which seems to work:\n
\n
```\n
\n
<span style="color:#323232;">security.pam.services.doas.fprintAuth = true;\n
</span>\n
```\n
\n
On my machine that adds this line to `/etc/pam.d/doas`:\n
\n
```\n
\n
<span style="color:#323232;">auth sufficient /nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so # fprintd (order 11400)\n
</span>\n
```\n
\n
**Edit:** Note that the NixOS option puts in the full path to `pam_fprintd.so`. That’s necessary because NixOS doesn’t put `so` files in search paths.\n
\n
Without doing more research I don’t know how to add arbitrary options to pam files in case you run into something that isn’t mapped to a NixOS option yet. The implementation for the pam options is [here](https://github.com/NixOS/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix); there might be something in there that would work.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 11
+score: 0
+lastActive: DateTime @1728229373 {#4049
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+tags: [
"323232"
]
+mentions: [
"@wwwgem@lemmy.ml"
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4037 …}
+nested: Doctrine\ORM\PersistentCollection {#4035 …}
+votes: Doctrine\ORM\PersistentCollection {#4033 …}
+reports: Doctrine\ORM\PersistentCollection {#4031 …}
+favourites: Doctrine\ORM\PersistentCollection {#3999 …}
+notifications: Doctrine\ORM\PersistentCollection {#4003 …}
-id: 335247
-bodyTs: "'/etc/pam.d/doas':28 '/nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so':31 '/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':102 '11400':34 'add':24,71 'arbitrari':72 'around':5 'auth':29 'case':78 'dig':4 'doesn':53 'edit':35 'file':57,76 'fprintd':32 'full':44 'github.com':101 'github.com/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':100 'implement':93 'isn':84 'know':68 'line':26 'machin':22 'manual':8 'map':86 'might':104 'necessari':50 'nixo':39,52,89 'note':36 'option':13,40,73,90,97 'order':33 'pam':75,96 'pam_fprintd.so':47 'path':45,60 'put':41,55 'research':64 'run':80 'search':59 'security.pam.services.doas.fprintauth':18 'seem':15 'someth':82,106 'suffici':30 'test':11 'true':19 'without':61 'work':17,111 'would':110 'yet':91"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/2189342"
+editedAt: DateTimeImmutable @1728075318 {#3985
date: 2024-10-04 22:55:18.0 +02:00
}
+createdAt: DateTimeImmutable @1706046595 {#4048
date: 2024-01-23 22:49:55.0 +01:00
}
}
+root: App\Entity\EntryComment {#4039}
+body: "Thanks very much. That’s exactly what I needed. I’m still not used to the diversity of NixOS documentation and was not aware of this one."
+lang: "en"
+isAdult: false
+favouriteCount: 8
+score: 0
+lastActive: DateTime @1706047826 {#4061
date: 2024-01-23 23:10:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@hallettj@beehaw.org"
]
+children: Doctrine\ORM\PersistentCollection {#4064 …}
+nested: Doctrine\ORM\PersistentCollection {#4070 …}
+votes: Doctrine\ORM\PersistentCollection {#4067 …}
+reports: Doctrine\ORM\PersistentCollection {#4055 …}
+favourites: Doctrine\ORM\PersistentCollection {#4053 …}
+notifications: Doctrine\ORM\PersistentCollection {#4051 …}
-id: 335296
-bodyTs: "'awar':24 'divers':17 'document':20 'exact':6 'm':11 'much':3 'need':9 'nixo':19 'one':27 'still':12 'thank':1 'use':14"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7661857"
+editedAt: null
+createdAt: DateTimeImmutable @1706047826 {#4058
date: 2024-01-23 23:10:26.0 +01:00
}
}
+root: App\Entity\EntryComment {#4039}
+body: "Just realized that I had this line in my config already but the change was not applied until I reboot. 😳"
+lang: "en"
+isAdult: false
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1706052608 {#4162
date: 2024-01-24 00:30:08.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@hallettj@beehaw.org"
]
+children: Doctrine\ORM\PersistentCollection {#4165 …}
+nested: Doctrine\ORM\PersistentCollection {#4167 …}
+votes: Doctrine\ORM\PersistentCollection {#4169 …}
+reports: Doctrine\ORM\PersistentCollection {#4171 …}
+favourites: Doctrine\ORM\PersistentCollection {#4173 …}
+notifications: Doctrine\ORM\PersistentCollection {#4175 …}
-id: 335467
-bodyTs: "'alreadi':11 'appli':17 'chang':14 'config':10 'line':7 'realiz':2 'reboot':20"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7663651"
+editedAt: null
+createdAt: DateTimeImmutable @1706052608 {#4163
date: 2024-01-24 00:30:08.0 +01:00
}
} |
|
Show voter details
|
17 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
18 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4111
+user: Proxies\__CG__\App\Entity\User {#4112 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-edit-system-files"
+title: "NixOS - edit system files"
+url: null
+body: """
Hello,\n
\n
I’m experiencing with NixOS and would like to know what would be the nicest way to add a specific line to a system file.\n
\n
As an example, how would you configure NixOS so the line \n
`auth sufficient pam_fprintd.so` \n
is added to the /etc/pam.d/doas file? As a bonus, it would be nice to know how to change an option (and not add an entire line) to a system file for which there is no NixOS default extraConfig/extraRules support for.\n
\n
This would allow me to add this line or not depending on the machine NixOS will be installed on.\n
\n
Thanks in advance for your suggestions.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 21
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728229373 {#2410
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32698
-titleTs: "'edit':2 'file':4 'nixo':1 'system':3"
-bodyTs: "'/etc/pam.d/doas':45 'ad':42 'add':19,63,86 'advanc':102 'allow':83 'auth':38 'bonus':49 'chang':58 'configur':33 'default':77 'depend':91 'entir':65 'exampl':29 'experienc':4 'extraconfig/extrarules':78 'file':26,46,70 'hello':1 'instal':98 'know':11,55 'like':9 'line':22,37,66,88 'm':3 'machin':94 'nice':53 'nicest':16 'nixo':6,34,76,95 'option':60 'pam_fprintd.so':40 'specif':21 'suffici':39 'suggest':105 'support':79 'system':25,69 'thank':100 'way':17 'would':8,13,31,51,82"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706116825
+visibility: "visible "
+apId: "https://lemmy.ml/post/10948730"
+editedAt: DateTimeImmutable @1728073520 {#1850
date: 2024-10-04 22:25:20.0 +02:00
}
+createdAt: DateTimeImmutable @1706044825 {#2420
date: 2024-01-23 22:20:25.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4039
+user: App\Entity\User {#3987 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
I did some digging around in the manual, and I tested this option which seems to work:\n
\n
```\n
\n
<span style="color:#323232;">security.pam.services.doas.fprintAuth = true;\n
</span>\n
```\n
\n
On my machine that adds this line to `/etc/pam.d/doas`:\n
\n
```\n
\n
<span style="color:#323232;">auth sufficient /nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so # fprintd (order 11400)\n
</span>\n
```\n
\n
**Edit:** Note that the NixOS option puts in the full path to `pam_fprintd.so`. That’s necessary because NixOS doesn’t put `so` files in search paths.\n
\n
Without doing more research I don’t know how to add arbitrary options to pam files in case you run into something that isn’t mapped to a NixOS option yet. The implementation for the pam options is [here](https://github.com/NixOS/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix); there might be something in there that would work.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 11
+score: 0
+lastActive: DateTime @1728229373 {#4049
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+tags: [
"323232"
]
+mentions: [
"@wwwgem@lemmy.ml"
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4037 …}
+nested: Doctrine\ORM\PersistentCollection {#4035 …}
+votes: Doctrine\ORM\PersistentCollection {#4033 …}
+reports: Doctrine\ORM\PersistentCollection {#4031 …}
+favourites: Doctrine\ORM\PersistentCollection {#3999 …}
+notifications: Doctrine\ORM\PersistentCollection {#4003 …}
-id: 335247
-bodyTs: "'/etc/pam.d/doas':28 '/nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so':31 '/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':102 '11400':34 'add':24,71 'arbitrari':72 'around':5 'auth':29 'case':78 'dig':4 'doesn':53 'edit':35 'file':57,76 'fprintd':32 'full':44 'github.com':101 'github.com/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':100 'implement':93 'isn':84 'know':68 'line':26 'machin':22 'manual':8 'map':86 'might':104 'necessari':50 'nixo':39,52,89 'note':36 'option':13,40,73,90,97 'order':33 'pam':75,96 'pam_fprintd.so':47 'path':45,60 'put':41,55 'research':64 'run':80 'search':59 'security.pam.services.doas.fprintauth':18 'seem':15 'someth':82,106 'suffici':30 'test':11 'true':19 'without':61 'work':17,111 'would':110 'yet':91"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/2189342"
+editedAt: DateTimeImmutable @1728075318 {#3985
date: 2024-10-04 22:55:18.0 +02:00
}
+createdAt: DateTimeImmutable @1706046595 {#4048
date: 2024-01-23 22:49:55.0 +01:00
}
}
+root: App\Entity\EntryComment {#4039}
+body: """
Arbitrary options are internal so are not shown in the options search. They’re at security.pam.services.<name>.rules.\n
\n
Here’s the options that get added using the public options including fprintAuth: [github.com/NixOS/nixpkgs/blob/…/pam.nix#L621](https://github.com/NixOS/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#L621)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 7
+score: 0
+lastActive: DateTime @1706047327 {#4110
date: 2024-01-23 23:02:07.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@hallettj@beehaw.org"
]
+children: Doctrine\ORM\PersistentCollection {#4113 …}
+nested: Doctrine\ORM\PersistentCollection {#4115 …}
+votes: Doctrine\ORM\PersistentCollection {#4117 …}
+reports: Doctrine\ORM\PersistentCollection {#4119 …}
+favourites: Doctrine\ORM\PersistentCollection {#4121 …}
+notifications: Doctrine\ORM\PersistentCollection {#4123 …}
-id: 335271
-bodyTs: "'/nixos/nixpkgs/blob/':34 '/nixos/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#l621)':39 '/pam.nix':35 'ad':25 'arbitrari':1 'fprintauth':31 'get':24 'github.com':33,38 'github.com/nixos/nixpkgs/blob/':32 'github.com/nixos/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#l621)':37 'includ':30 'intern':4 'l621':36 'name':17 'option':2,11,22,29 'public':28 're':14 'rule':18 'search':12 'security.pam.services':16 'shown':8 'use':26"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://discuss.tchncs.de/comment/6750552"
+editedAt: null
+createdAt: DateTimeImmutable @1706047327 {#4109
date: 2024-01-23 23:02:07.0 +01:00
}
} |
|
Show voter details
|
19 |
DENIED
|
edit
|
App\Entity\EntryComment {#4111
+user: Proxies\__CG__\App\Entity\User {#4112 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-edit-system-files"
+title: "NixOS - edit system files"
+url: null
+body: """
Hello,\n
\n
I’m experiencing with NixOS and would like to know what would be the nicest way to add a specific line to a system file.\n
\n
As an example, how would you configure NixOS so the line \n
`auth sufficient pam_fprintd.so` \n
is added to the /etc/pam.d/doas file? As a bonus, it would be nice to know how to change an option (and not add an entire line) to a system file for which there is no NixOS default extraConfig/extraRules support for.\n
\n
This would allow me to add this line or not depending on the machine NixOS will be installed on.\n
\n
Thanks in advance for your suggestions.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 21
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728229373 {#2410
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32698
-titleTs: "'edit':2 'file':4 'nixo':1 'system':3"
-bodyTs: "'/etc/pam.d/doas':45 'ad':42 'add':19,63,86 'advanc':102 'allow':83 'auth':38 'bonus':49 'chang':58 'configur':33 'default':77 'depend':91 'entir':65 'exampl':29 'experienc':4 'extraconfig/extrarules':78 'file':26,46,70 'hello':1 'instal':98 'know':11,55 'like':9 'line':22,37,66,88 'm':3 'machin':94 'nice':53 'nicest':16 'nixo':6,34,76,95 'option':60 'pam_fprintd.so':40 'specif':21 'suffici':39 'suggest':105 'support':79 'system':25,69 'thank':100 'way':17 'would':8,13,31,51,82"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706116825
+visibility: "visible "
+apId: "https://lemmy.ml/post/10948730"
+editedAt: DateTimeImmutable @1728073520 {#1850
date: 2024-10-04 22:25:20.0 +02:00
}
+createdAt: DateTimeImmutable @1706044825 {#2420
date: 2024-01-23 22:20:25.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4039
+user: App\Entity\User {#3987 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
I did some digging around in the manual, and I tested this option which seems to work:\n
\n
```\n
\n
<span style="color:#323232;">security.pam.services.doas.fprintAuth = true;\n
</span>\n
```\n
\n
On my machine that adds this line to `/etc/pam.d/doas`:\n
\n
```\n
\n
<span style="color:#323232;">auth sufficient /nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so # fprintd (order 11400)\n
</span>\n
```\n
\n
**Edit:** Note that the NixOS option puts in the full path to `pam_fprintd.so`. That’s necessary because NixOS doesn’t put `so` files in search paths.\n
\n
Without doing more research I don’t know how to add arbitrary options to pam files in case you run into something that isn’t mapped to a NixOS option yet. The implementation for the pam options is [here](https://github.com/NixOS/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix); there might be something in there that would work.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 11
+score: 0
+lastActive: DateTime @1728229373 {#4049
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+tags: [
"323232"
]
+mentions: [
"@wwwgem@lemmy.ml"
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4037 …}
+nested: Doctrine\ORM\PersistentCollection {#4035 …}
+votes: Doctrine\ORM\PersistentCollection {#4033 …}
+reports: Doctrine\ORM\PersistentCollection {#4031 …}
+favourites: Doctrine\ORM\PersistentCollection {#3999 …}
+notifications: Doctrine\ORM\PersistentCollection {#4003 …}
-id: 335247
-bodyTs: "'/etc/pam.d/doas':28 '/nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so':31 '/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':102 '11400':34 'add':24,71 'arbitrari':72 'around':5 'auth':29 'case':78 'dig':4 'doesn':53 'edit':35 'file':57,76 'fprintd':32 'full':44 'github.com':101 'github.com/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':100 'implement':93 'isn':84 'know':68 'line':26 'machin':22 'manual':8 'map':86 'might':104 'necessari':50 'nixo':39,52,89 'note':36 'option':13,40,73,90,97 'order':33 'pam':75,96 'pam_fprintd.so':47 'path':45,60 'put':41,55 'research':64 'run':80 'search':59 'security.pam.services.doas.fprintauth':18 'seem':15 'someth':82,106 'suffici':30 'test':11 'true':19 'without':61 'work':17,111 'would':110 'yet':91"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/2189342"
+editedAt: DateTimeImmutable @1728075318 {#3985
date: 2024-10-04 22:55:18.0 +02:00
}
+createdAt: DateTimeImmutable @1706046595 {#4048
date: 2024-01-23 22:49:55.0 +01:00
}
}
+root: App\Entity\EntryComment {#4039}
+body: """
Arbitrary options are internal so are not shown in the options search. They’re at security.pam.services.<name>.rules.\n
\n
Here’s the options that get added using the public options including fprintAuth: [github.com/NixOS/nixpkgs/blob/…/pam.nix#L621](https://github.com/NixOS/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#L621)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 7
+score: 0
+lastActive: DateTime @1706047327 {#4110
date: 2024-01-23 23:02:07.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@hallettj@beehaw.org"
]
+children: Doctrine\ORM\PersistentCollection {#4113 …}
+nested: Doctrine\ORM\PersistentCollection {#4115 …}
+votes: Doctrine\ORM\PersistentCollection {#4117 …}
+reports: Doctrine\ORM\PersistentCollection {#4119 …}
+favourites: Doctrine\ORM\PersistentCollection {#4121 …}
+notifications: Doctrine\ORM\PersistentCollection {#4123 …}
-id: 335271
-bodyTs: "'/nixos/nixpkgs/blob/':34 '/nixos/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#l621)':39 '/pam.nix':35 'ad':25 'arbitrari':1 'fprintauth':31 'get':24 'github.com':33,38 'github.com/nixos/nixpkgs/blob/':32 'github.com/nixos/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#l621)':37 'includ':30 'intern':4 'l621':36 'name':17 'option':2,11,22,29 'public':28 're':14 'rule':18 'search':12 'security.pam.services':16 'shown':8 'use':26"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://discuss.tchncs.de/comment/6750552"
+editedAt: null
+createdAt: DateTimeImmutable @1706047327 {#4109
date: 2024-01-23 23:02:07.0 +01:00
}
} |
|
Show voter details
|
20 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4111
+user: Proxies\__CG__\App\Entity\User {#4112 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-edit-system-files"
+title: "NixOS - edit system files"
+url: null
+body: """
Hello,\n
\n
I’m experiencing with NixOS and would like to know what would be the nicest way to add a specific line to a system file.\n
\n
As an example, how would you configure NixOS so the line \n
`auth sufficient pam_fprintd.so` \n
is added to the /etc/pam.d/doas file? As a bonus, it would be nice to know how to change an option (and not add an entire line) to a system file for which there is no NixOS default extraConfig/extraRules support for.\n
\n
This would allow me to add this line or not depending on the machine NixOS will be installed on.\n
\n
Thanks in advance for your suggestions.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 21
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728229373 {#2410
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32698
-titleTs: "'edit':2 'file':4 'nixo':1 'system':3"
-bodyTs: "'/etc/pam.d/doas':45 'ad':42 'add':19,63,86 'advanc':102 'allow':83 'auth':38 'bonus':49 'chang':58 'configur':33 'default':77 'depend':91 'entir':65 'exampl':29 'experienc':4 'extraconfig/extrarules':78 'file':26,46,70 'hello':1 'instal':98 'know':11,55 'like':9 'line':22,37,66,88 'm':3 'machin':94 'nice':53 'nicest':16 'nixo':6,34,76,95 'option':60 'pam_fprintd.so':40 'specif':21 'suffici':39 'suggest':105 'support':79 'system':25,69 'thank':100 'way':17 'would':8,13,31,51,82"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706116825
+visibility: "visible "
+apId: "https://lemmy.ml/post/10948730"
+editedAt: DateTimeImmutable @1728073520 {#1850
date: 2024-10-04 22:25:20.0 +02:00
}
+createdAt: DateTimeImmutable @1706044825 {#2420
date: 2024-01-23 22:20:25.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4039
+user: App\Entity\User {#3987 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
I did some digging around in the manual, and I tested this option which seems to work:\n
\n
```\n
\n
<span style="color:#323232;">security.pam.services.doas.fprintAuth = true;\n
</span>\n
```\n
\n
On my machine that adds this line to `/etc/pam.d/doas`:\n
\n
```\n
\n
<span style="color:#323232;">auth sufficient /nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so # fprintd (order 11400)\n
</span>\n
```\n
\n
**Edit:** Note that the NixOS option puts in the full path to `pam_fprintd.so`. That’s necessary because NixOS doesn’t put `so` files in search paths.\n
\n
Without doing more research I don’t know how to add arbitrary options to pam files in case you run into something that isn’t mapped to a NixOS option yet. The implementation for the pam options is [here](https://github.com/NixOS/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix); there might be something in there that would work.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 11
+score: 0
+lastActive: DateTime @1728229373 {#4049
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+tags: [
"323232"
]
+mentions: [
"@wwwgem@lemmy.ml"
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4037 …}
+nested: Doctrine\ORM\PersistentCollection {#4035 …}
+votes: Doctrine\ORM\PersistentCollection {#4033 …}
+reports: Doctrine\ORM\PersistentCollection {#4031 …}
+favourites: Doctrine\ORM\PersistentCollection {#3999 …}
+notifications: Doctrine\ORM\PersistentCollection {#4003 …}
-id: 335247
-bodyTs: "'/etc/pam.d/doas':28 '/nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so':31 '/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':102 '11400':34 'add':24,71 'arbitrari':72 'around':5 'auth':29 'case':78 'dig':4 'doesn':53 'edit':35 'file':57,76 'fprintd':32 'full':44 'github.com':101 'github.com/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':100 'implement':93 'isn':84 'know':68 'line':26 'machin':22 'manual':8 'map':86 'might':104 'necessari':50 'nixo':39,52,89 'note':36 'option':13,40,73,90,97 'order':33 'pam':75,96 'pam_fprintd.so':47 'path':45,60 'put':41,55 'research':64 'run':80 'search':59 'security.pam.services.doas.fprintauth':18 'seem':15 'someth':82,106 'suffici':30 'test':11 'true':19 'without':61 'work':17,111 'would':110 'yet':91"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/2189342"
+editedAt: DateTimeImmutable @1728075318 {#3985
date: 2024-10-04 22:55:18.0 +02:00
}
+createdAt: DateTimeImmutable @1706046595 {#4048
date: 2024-01-23 22:49:55.0 +01:00
}
}
+root: App\Entity\EntryComment {#4039}
+body: """
Arbitrary options are internal so are not shown in the options search. They’re at security.pam.services.<name>.rules.\n
\n
Here’s the options that get added using the public options including fprintAuth: [github.com/NixOS/nixpkgs/blob/…/pam.nix#L621](https://github.com/NixOS/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#L621)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 7
+score: 0
+lastActive: DateTime @1706047327 {#4110
date: 2024-01-23 23:02:07.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@hallettj@beehaw.org"
]
+children: Doctrine\ORM\PersistentCollection {#4113 …}
+nested: Doctrine\ORM\PersistentCollection {#4115 …}
+votes: Doctrine\ORM\PersistentCollection {#4117 …}
+reports: Doctrine\ORM\PersistentCollection {#4119 …}
+favourites: Doctrine\ORM\PersistentCollection {#4121 …}
+notifications: Doctrine\ORM\PersistentCollection {#4123 …}
-id: 335271
-bodyTs: "'/nixos/nixpkgs/blob/':34 '/nixos/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#l621)':39 '/pam.nix':35 'ad':25 'arbitrari':1 'fprintauth':31 'get':24 'github.com':33,38 'github.com/nixos/nixpkgs/blob/':32 'github.com/nixos/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#l621)':37 'includ':30 'intern':4 'l621':36 'name':17 'option':2,11,22,29 'public':28 're':14 'rule':18 'search':12 'security.pam.services':16 'shown':8 'use':26"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://discuss.tchncs.de/comment/6750552"
+editedAt: null
+createdAt: DateTimeImmutable @1706047327 {#4109
date: 2024-01-23 23:02:07.0 +01:00
}
} |
|
Show voter details
|
21 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
22 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4126
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-edit-system-files"
+title: "NixOS - edit system files"
+url: null
+body: """
Hello,\n
\n
I’m experiencing with NixOS and would like to know what would be the nicest way to add a specific line to a system file.\n
\n
As an example, how would you configure NixOS so the line \n
`auth sufficient pam_fprintd.so` \n
is added to the /etc/pam.d/doas file? As a bonus, it would be nice to know how to change an option (and not add an entire line) to a system file for which there is no NixOS default extraConfig/extraRules support for.\n
\n
This would allow me to add this line or not depending on the machine NixOS will be installed on.\n
\n
Thanks in advance for your suggestions.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 21
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728229373 {#2410
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32698
-titleTs: "'edit':2 'file':4 'nixo':1 'system':3"
-bodyTs: "'/etc/pam.d/doas':45 'ad':42 'add':19,63,86 'advanc':102 'allow':83 'auth':38 'bonus':49 'chang':58 'configur':33 'default':77 'depend':91 'entir':65 'exampl':29 'experienc':4 'extraconfig/extrarules':78 'file':26,46,70 'hello':1 'instal':98 'know':11,55 'like':9 'line':22,37,66,88 'm':3 'machin':94 'nice':53 'nicest':16 'nixo':6,34,76,95 'option':60 'pam_fprintd.so':40 'specif':21 'suffici':39 'suggest':105 'support':79 'system':25,69 'thank':100 'way':17 'would':8,13,31,51,82"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706116825
+visibility: "visible "
+apId: "https://lemmy.ml/post/10948730"
+editedAt: DateTimeImmutable @1728073520 {#1850
date: 2024-10-04 22:25:20.0 +02:00
}
+createdAt: DateTimeImmutable @1706044825 {#2420
date: 2024-01-23 22:20:25.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4111
+user: Proxies\__CG__\App\Entity\User {#4112 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4039
+user: App\Entity\User {#3987 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
I did some digging around in the manual, and I tested this option which seems to work:\n
\n
```\n
\n
<span style="color:#323232;">security.pam.services.doas.fprintAuth = true;\n
</span>\n
```\n
\n
On my machine that adds this line to `/etc/pam.d/doas`:\n
\n
```\n
\n
<span style="color:#323232;">auth sufficient /nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so # fprintd (order 11400)\n
</span>\n
```\n
\n
**Edit:** Note that the NixOS option puts in the full path to `pam_fprintd.so`. That’s necessary because NixOS doesn’t put `so` files in search paths.\n
\n
Without doing more research I don’t know how to add arbitrary options to pam files in case you run into something that isn’t mapped to a NixOS option yet. The implementation for the pam options is [here](https://github.com/NixOS/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix); there might be something in there that would work.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 11
+score: 0
+lastActive: DateTime @1728229373 {#4049
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+tags: [
"323232"
]
+mentions: [
"@wwwgem@lemmy.ml"
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4037 …}
+nested: Doctrine\ORM\PersistentCollection {#4035 …}
+votes: Doctrine\ORM\PersistentCollection {#4033 …}
+reports: Doctrine\ORM\PersistentCollection {#4031 …}
+favourites: Doctrine\ORM\PersistentCollection {#3999 …}
+notifications: Doctrine\ORM\PersistentCollection {#4003 …}
-id: 335247
-bodyTs: "'/etc/pam.d/doas':28 '/nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so':31 '/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':102 '11400':34 'add':24,71 'arbitrari':72 'around':5 'auth':29 'case':78 'dig':4 'doesn':53 'edit':35 'file':57,76 'fprintd':32 'full':44 'github.com':101 'github.com/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':100 'implement':93 'isn':84 'know':68 'line':26 'machin':22 'manual':8 'map':86 'might':104 'necessari':50 'nixo':39,52,89 'note':36 'option':13,40,73,90,97 'order':33 'pam':75,96 'pam_fprintd.so':47 'path':45,60 'put':41,55 'research':64 'run':80 'search':59 'security.pam.services.doas.fprintauth':18 'seem':15 'someth':82,106 'suffici':30 'test':11 'true':19 'without':61 'work':17,111 'would':110 'yet':91"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/2189342"
+editedAt: DateTimeImmutable @1728075318 {#3985
date: 2024-10-04 22:55:18.0 +02:00
}
+createdAt: DateTimeImmutable @1706046595 {#4048
date: 2024-01-23 22:49:55.0 +01:00
}
}
+root: App\Entity\EntryComment {#4039}
+body: """
Arbitrary options are internal so are not shown in the options search. They’re at security.pam.services.<name>.rules.\n
\n
Here’s the options that get added using the public options including fprintAuth: [github.com/NixOS/nixpkgs/blob/…/pam.nix#L621](https://github.com/NixOS/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#L621)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 7
+score: 0
+lastActive: DateTime @1706047327 {#4110
date: 2024-01-23 23:02:07.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@hallettj@beehaw.org"
]
+children: Doctrine\ORM\PersistentCollection {#4113 …}
+nested: Doctrine\ORM\PersistentCollection {#4115 …}
+votes: Doctrine\ORM\PersistentCollection {#4117 …}
+reports: Doctrine\ORM\PersistentCollection {#4119 …}
+favourites: Doctrine\ORM\PersistentCollection {#4121 …}
+notifications: Doctrine\ORM\PersistentCollection {#4123 …}
-id: 335271
-bodyTs: "'/nixos/nixpkgs/blob/':34 '/nixos/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#l621)':39 '/pam.nix':35 'ad':25 'arbitrari':1 'fprintauth':31 'get':24 'github.com':33,38 'github.com/nixos/nixpkgs/blob/':32 'github.com/nixos/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#l621)':37 'includ':30 'intern':4 'l621':36 'name':17 'option':2,11,22,29 'public':28 're':14 'rule':18 'search':12 'security.pam.services':16 'shown':8 'use':26"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://discuss.tchncs.de/comment/6750552"
+editedAt: null
+createdAt: DateTimeImmutable @1706047327 {#4109
date: 2024-01-23 23:02:07.0 +01:00
}
}
+root: App\Entity\EntryComment {#4039}
+body: "Thanks! I’m still not used to the diversity of all the NixOS documentarian and was not aware that arbitrary options can be found there."
+lang: "en"
+isAdult: false
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1706047925 {#4131
date: 2024-01-23 23:12:05.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@hallettj@beehaw.org"
"@2xsaiko@discuss.tchncs.de"
]
+children: Doctrine\ORM\PersistentCollection {#4134 …}
+nested: Doctrine\ORM\PersistentCollection {#4138 …}
+votes: Doctrine\ORM\PersistentCollection {#4140 …}
+reports: Doctrine\ORM\PersistentCollection {#4141 …}
+favourites: Doctrine\ORM\PersistentCollection {#4143 …}
+notifications: Doctrine\ORM\PersistentCollection {#4145 …}
-id: 335302
-bodyTs: "'arbitrari':20 'awar':18 'divers':9 'documentarian':14 'found':24 'm':3 'nixo':13 'option':21 'still':4 'thank':1 'use':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7661898"
+editedAt: null
+createdAt: DateTimeImmutable @1706047925 {#4128
date: 2024-01-23 23:12:05.0 +01:00
}
} |
|
Show voter details
|
23 |
DENIED
|
edit
|
App\Entity\EntryComment {#4126
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-edit-system-files"
+title: "NixOS - edit system files"
+url: null
+body: """
Hello,\n
\n
I’m experiencing with NixOS and would like to know what would be the nicest way to add a specific line to a system file.\n
\n
As an example, how would you configure NixOS so the line \n
`auth sufficient pam_fprintd.so` \n
is added to the /etc/pam.d/doas file? As a bonus, it would be nice to know how to change an option (and not add an entire line) to a system file for which there is no NixOS default extraConfig/extraRules support for.\n
\n
This would allow me to add this line or not depending on the machine NixOS will be installed on.\n
\n
Thanks in advance for your suggestions.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 21
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728229373 {#2410
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32698
-titleTs: "'edit':2 'file':4 'nixo':1 'system':3"
-bodyTs: "'/etc/pam.d/doas':45 'ad':42 'add':19,63,86 'advanc':102 'allow':83 'auth':38 'bonus':49 'chang':58 'configur':33 'default':77 'depend':91 'entir':65 'exampl':29 'experienc':4 'extraconfig/extrarules':78 'file':26,46,70 'hello':1 'instal':98 'know':11,55 'like':9 'line':22,37,66,88 'm':3 'machin':94 'nice':53 'nicest':16 'nixo':6,34,76,95 'option':60 'pam_fprintd.so':40 'specif':21 'suffici':39 'suggest':105 'support':79 'system':25,69 'thank':100 'way':17 'would':8,13,31,51,82"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706116825
+visibility: "visible "
+apId: "https://lemmy.ml/post/10948730"
+editedAt: DateTimeImmutable @1728073520 {#1850
date: 2024-10-04 22:25:20.0 +02:00
}
+createdAt: DateTimeImmutable @1706044825 {#2420
date: 2024-01-23 22:20:25.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4111
+user: Proxies\__CG__\App\Entity\User {#4112 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4039
+user: App\Entity\User {#3987 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
I did some digging around in the manual, and I tested this option which seems to work:\n
\n
```\n
\n
<span style="color:#323232;">security.pam.services.doas.fprintAuth = true;\n
</span>\n
```\n
\n
On my machine that adds this line to `/etc/pam.d/doas`:\n
\n
```\n
\n
<span style="color:#323232;">auth sufficient /nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so # fprintd (order 11400)\n
</span>\n
```\n
\n
**Edit:** Note that the NixOS option puts in the full path to `pam_fprintd.so`. That’s necessary because NixOS doesn’t put `so` files in search paths.\n
\n
Without doing more research I don’t know how to add arbitrary options to pam files in case you run into something that isn’t mapped to a NixOS option yet. The implementation for the pam options is [here](https://github.com/NixOS/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix); there might be something in there that would work.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 11
+score: 0
+lastActive: DateTime @1728229373 {#4049
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+tags: [
"323232"
]
+mentions: [
"@wwwgem@lemmy.ml"
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4037 …}
+nested: Doctrine\ORM\PersistentCollection {#4035 …}
+votes: Doctrine\ORM\PersistentCollection {#4033 …}
+reports: Doctrine\ORM\PersistentCollection {#4031 …}
+favourites: Doctrine\ORM\PersistentCollection {#3999 …}
+notifications: Doctrine\ORM\PersistentCollection {#4003 …}
-id: 335247
-bodyTs: "'/etc/pam.d/doas':28 '/nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so':31 '/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':102 '11400':34 'add':24,71 'arbitrari':72 'around':5 'auth':29 'case':78 'dig':4 'doesn':53 'edit':35 'file':57,76 'fprintd':32 'full':44 'github.com':101 'github.com/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':100 'implement':93 'isn':84 'know':68 'line':26 'machin':22 'manual':8 'map':86 'might':104 'necessari':50 'nixo':39,52,89 'note':36 'option':13,40,73,90,97 'order':33 'pam':75,96 'pam_fprintd.so':47 'path':45,60 'put':41,55 'research':64 'run':80 'search':59 'security.pam.services.doas.fprintauth':18 'seem':15 'someth':82,106 'suffici':30 'test':11 'true':19 'without':61 'work':17,111 'would':110 'yet':91"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/2189342"
+editedAt: DateTimeImmutable @1728075318 {#3985
date: 2024-10-04 22:55:18.0 +02:00
}
+createdAt: DateTimeImmutable @1706046595 {#4048
date: 2024-01-23 22:49:55.0 +01:00
}
}
+root: App\Entity\EntryComment {#4039}
+body: """
Arbitrary options are internal so are not shown in the options search. They’re at security.pam.services.<name>.rules.\n
\n
Here’s the options that get added using the public options including fprintAuth: [github.com/NixOS/nixpkgs/blob/…/pam.nix#L621](https://github.com/NixOS/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#L621)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 7
+score: 0
+lastActive: DateTime @1706047327 {#4110
date: 2024-01-23 23:02:07.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@hallettj@beehaw.org"
]
+children: Doctrine\ORM\PersistentCollection {#4113 …}
+nested: Doctrine\ORM\PersistentCollection {#4115 …}
+votes: Doctrine\ORM\PersistentCollection {#4117 …}
+reports: Doctrine\ORM\PersistentCollection {#4119 …}
+favourites: Doctrine\ORM\PersistentCollection {#4121 …}
+notifications: Doctrine\ORM\PersistentCollection {#4123 …}
-id: 335271
-bodyTs: "'/nixos/nixpkgs/blob/':34 '/nixos/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#l621)':39 '/pam.nix':35 'ad':25 'arbitrari':1 'fprintauth':31 'get':24 'github.com':33,38 'github.com/nixos/nixpkgs/blob/':32 'github.com/nixos/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#l621)':37 'includ':30 'intern':4 'l621':36 'name':17 'option':2,11,22,29 'public':28 're':14 'rule':18 'search':12 'security.pam.services':16 'shown':8 'use':26"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://discuss.tchncs.de/comment/6750552"
+editedAt: null
+createdAt: DateTimeImmutable @1706047327 {#4109
date: 2024-01-23 23:02:07.0 +01:00
}
}
+root: App\Entity\EntryComment {#4039}
+body: "Thanks! I’m still not used to the diversity of all the NixOS documentarian and was not aware that arbitrary options can be found there."
+lang: "en"
+isAdult: false
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1706047925 {#4131
date: 2024-01-23 23:12:05.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@hallettj@beehaw.org"
"@2xsaiko@discuss.tchncs.de"
]
+children: Doctrine\ORM\PersistentCollection {#4134 …}
+nested: Doctrine\ORM\PersistentCollection {#4138 …}
+votes: Doctrine\ORM\PersistentCollection {#4140 …}
+reports: Doctrine\ORM\PersistentCollection {#4141 …}
+favourites: Doctrine\ORM\PersistentCollection {#4143 …}
+notifications: Doctrine\ORM\PersistentCollection {#4145 …}
-id: 335302
-bodyTs: "'arbitrari':20 'awar':18 'divers':9 'documentarian':14 'found':24 'm':3 'nixo':13 'option':21 'still':4 'thank':1 'use':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7661898"
+editedAt: null
+createdAt: DateTimeImmutable @1706047925 {#4128
date: 2024-01-23 23:12:05.0 +01:00
}
} |
|
Show voter details
|
24 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4126
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-edit-system-files"
+title: "NixOS - edit system files"
+url: null
+body: """
Hello,\n
\n
I’m experiencing with NixOS and would like to know what would be the nicest way to add a specific line to a system file.\n
\n
As an example, how would you configure NixOS so the line \n
`auth sufficient pam_fprintd.so` \n
is added to the /etc/pam.d/doas file? As a bonus, it would be nice to know how to change an option (and not add an entire line) to a system file for which there is no NixOS default extraConfig/extraRules support for.\n
\n
This would allow me to add this line or not depending on the machine NixOS will be installed on.\n
\n
Thanks in advance for your suggestions.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 21
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728229373 {#2410
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32698
-titleTs: "'edit':2 'file':4 'nixo':1 'system':3"
-bodyTs: "'/etc/pam.d/doas':45 'ad':42 'add':19,63,86 'advanc':102 'allow':83 'auth':38 'bonus':49 'chang':58 'configur':33 'default':77 'depend':91 'entir':65 'exampl':29 'experienc':4 'extraconfig/extrarules':78 'file':26,46,70 'hello':1 'instal':98 'know':11,55 'like':9 'line':22,37,66,88 'm':3 'machin':94 'nice':53 'nicest':16 'nixo':6,34,76,95 'option':60 'pam_fprintd.so':40 'specif':21 'suffici':39 'suggest':105 'support':79 'system':25,69 'thank':100 'way':17 'would':8,13,31,51,82"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706116825
+visibility: "visible "
+apId: "https://lemmy.ml/post/10948730"
+editedAt: DateTimeImmutable @1728073520 {#1850
date: 2024-10-04 22:25:20.0 +02:00
}
+createdAt: DateTimeImmutable @1706044825 {#2420
date: 2024-01-23 22:20:25.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4111
+user: Proxies\__CG__\App\Entity\User {#4112 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4039
+user: App\Entity\User {#3987 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
I did some digging around in the manual, and I tested this option which seems to work:\n
\n
```\n
\n
<span style="color:#323232;">security.pam.services.doas.fprintAuth = true;\n
</span>\n
```\n
\n
On my machine that adds this line to `/etc/pam.d/doas`:\n
\n
```\n
\n
<span style="color:#323232;">auth sufficient /nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so # fprintd (order 11400)\n
</span>\n
```\n
\n
**Edit:** Note that the NixOS option puts in the full path to `pam_fprintd.so`. That’s necessary because NixOS doesn’t put `so` files in search paths.\n
\n
Without doing more research I don’t know how to add arbitrary options to pam files in case you run into something that isn’t mapped to a NixOS option yet. The implementation for the pam options is [here](https://github.com/NixOS/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix); there might be something in there that would work.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 11
+score: 0
+lastActive: DateTime @1728229373 {#4049
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+tags: [
"323232"
]
+mentions: [
"@wwwgem@lemmy.ml"
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4037 …}
+nested: Doctrine\ORM\PersistentCollection {#4035 …}
+votes: Doctrine\ORM\PersistentCollection {#4033 …}
+reports: Doctrine\ORM\PersistentCollection {#4031 …}
+favourites: Doctrine\ORM\PersistentCollection {#3999 …}
+notifications: Doctrine\ORM\PersistentCollection {#4003 …}
-id: 335247
-bodyTs: "'/etc/pam.d/doas':28 '/nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so':31 '/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':102 '11400':34 'add':24,71 'arbitrari':72 'around':5 'auth':29 'case':78 'dig':4 'doesn':53 'edit':35 'file':57,76 'fprintd':32 'full':44 'github.com':101 'github.com/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':100 'implement':93 'isn':84 'know':68 'line':26 'machin':22 'manual':8 'map':86 'might':104 'necessari':50 'nixo':39,52,89 'note':36 'option':13,40,73,90,97 'order':33 'pam':75,96 'pam_fprintd.so':47 'path':45,60 'put':41,55 'research':64 'run':80 'search':59 'security.pam.services.doas.fprintauth':18 'seem':15 'someth':82,106 'suffici':30 'test':11 'true':19 'without':61 'work':17,111 'would':110 'yet':91"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/2189342"
+editedAt: DateTimeImmutable @1728075318 {#3985
date: 2024-10-04 22:55:18.0 +02:00
}
+createdAt: DateTimeImmutable @1706046595 {#4048
date: 2024-01-23 22:49:55.0 +01:00
}
}
+root: App\Entity\EntryComment {#4039}
+body: """
Arbitrary options are internal so are not shown in the options search. They’re at security.pam.services.<name>.rules.\n
\n
Here’s the options that get added using the public options including fprintAuth: [github.com/NixOS/nixpkgs/blob/…/pam.nix#L621](https://github.com/NixOS/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#L621)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 7
+score: 0
+lastActive: DateTime @1706047327 {#4110
date: 2024-01-23 23:02:07.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@hallettj@beehaw.org"
]
+children: Doctrine\ORM\PersistentCollection {#4113 …}
+nested: Doctrine\ORM\PersistentCollection {#4115 …}
+votes: Doctrine\ORM\PersistentCollection {#4117 …}
+reports: Doctrine\ORM\PersistentCollection {#4119 …}
+favourites: Doctrine\ORM\PersistentCollection {#4121 …}
+notifications: Doctrine\ORM\PersistentCollection {#4123 …}
-id: 335271
-bodyTs: "'/nixos/nixpkgs/blob/':34 '/nixos/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#l621)':39 '/pam.nix':35 'ad':25 'arbitrari':1 'fprintauth':31 'get':24 'github.com':33,38 'github.com/nixos/nixpkgs/blob/':32 'github.com/nixos/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#l621)':37 'includ':30 'intern':4 'l621':36 'name':17 'option':2,11,22,29 'public':28 're':14 'rule':18 'search':12 'security.pam.services':16 'shown':8 'use':26"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://discuss.tchncs.de/comment/6750552"
+editedAt: null
+createdAt: DateTimeImmutable @1706047327 {#4109
date: 2024-01-23 23:02:07.0 +01:00
}
}
+root: App\Entity\EntryComment {#4039}
+body: "Thanks! I’m still not used to the diversity of all the NixOS documentarian and was not aware that arbitrary options can be found there."
+lang: "en"
+isAdult: false
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1706047925 {#4131
date: 2024-01-23 23:12:05.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@hallettj@beehaw.org"
"@2xsaiko@discuss.tchncs.de"
]
+children: Doctrine\ORM\PersistentCollection {#4134 …}
+nested: Doctrine\ORM\PersistentCollection {#4138 …}
+votes: Doctrine\ORM\PersistentCollection {#4140 …}
+reports: Doctrine\ORM\PersistentCollection {#4141 …}
+favourites: Doctrine\ORM\PersistentCollection {#4143 …}
+notifications: Doctrine\ORM\PersistentCollection {#4145 …}
-id: 335302
-bodyTs: "'arbitrari':20 'awar':18 'divers':9 'documentarian':14 'found':24 'm':3 'nixo':13 'option':21 'still':4 'thank':1 'use':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7661898"
+editedAt: null
+createdAt: DateTimeImmutable @1706047925 {#4128
date: 2024-01-23 23:12:05.0 +01:00
}
} |
|
Show voter details
|
25 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
26 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4149
+user: App\Entity\User {#3987 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-edit-system-files"
+title: "NixOS - edit system files"
+url: null
+body: """
Hello,\n
\n
I’m experiencing with NixOS and would like to know what would be the nicest way to add a specific line to a system file.\n
\n
As an example, how would you configure NixOS so the line \n
`auth sufficient pam_fprintd.so` \n
is added to the /etc/pam.d/doas file? As a bonus, it would be nice to know how to change an option (and not add an entire line) to a system file for which there is no NixOS default extraConfig/extraRules support for.\n
\n
This would allow me to add this line or not depending on the machine NixOS will be installed on.\n
\n
Thanks in advance for your suggestions.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 21
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728229373 {#2410
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32698
-titleTs: "'edit':2 'file':4 'nixo':1 'system':3"
-bodyTs: "'/etc/pam.d/doas':45 'ad':42 'add':19,63,86 'advanc':102 'allow':83 'auth':38 'bonus':49 'chang':58 'configur':33 'default':77 'depend':91 'entir':65 'exampl':29 'experienc':4 'extraconfig/extrarules':78 'file':26,46,70 'hello':1 'instal':98 'know':11,55 'like':9 'line':22,37,66,88 'm':3 'machin':94 'nice':53 'nicest':16 'nixo':6,34,76,95 'option':60 'pam_fprintd.so':40 'specif':21 'suffici':39 'suggest':105 'support':79 'system':25,69 'thank':100 'way':17 'would':8,13,31,51,82"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706116825
+visibility: "visible "
+apId: "https://lemmy.ml/post/10948730"
+editedAt: DateTimeImmutable @1728073520 {#1850
date: 2024-10-04 22:25:20.0 +02:00
}
+createdAt: DateTimeImmutable @1706044825 {#2420
date: 2024-01-23 22:20:25.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4111
+user: Proxies\__CG__\App\Entity\User {#4112 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4039
+user: App\Entity\User {#3987 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
I did some digging around in the manual, and I tested this option which seems to work:\n
\n
```\n
\n
<span style="color:#323232;">security.pam.services.doas.fprintAuth = true;\n
</span>\n
```\n
\n
On my machine that adds this line to `/etc/pam.d/doas`:\n
\n
```\n
\n
<span style="color:#323232;">auth sufficient /nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so # fprintd (order 11400)\n
</span>\n
```\n
\n
**Edit:** Note that the NixOS option puts in the full path to `pam_fprintd.so`. That’s necessary because NixOS doesn’t put `so` files in search paths.\n
\n
Without doing more research I don’t know how to add arbitrary options to pam files in case you run into something that isn’t mapped to a NixOS option yet. The implementation for the pam options is [here](https://github.com/NixOS/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix); there might be something in there that would work.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 11
+score: 0
+lastActive: DateTime @1728229373 {#4049
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+tags: [
"323232"
]
+mentions: [
"@wwwgem@lemmy.ml"
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4037 …}
+nested: Doctrine\ORM\PersistentCollection {#4035 …}
+votes: Doctrine\ORM\PersistentCollection {#4033 …}
+reports: Doctrine\ORM\PersistentCollection {#4031 …}
+favourites: Doctrine\ORM\PersistentCollection {#3999 …}
+notifications: Doctrine\ORM\PersistentCollection {#4003 …}
-id: 335247
-bodyTs: "'/etc/pam.d/doas':28 '/nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so':31 '/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':102 '11400':34 'add':24,71 'arbitrari':72 'around':5 'auth':29 'case':78 'dig':4 'doesn':53 'edit':35 'file':57,76 'fprintd':32 'full':44 'github.com':101 'github.com/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':100 'implement':93 'isn':84 'know':68 'line':26 'machin':22 'manual':8 'map':86 'might':104 'necessari':50 'nixo':39,52,89 'note':36 'option':13,40,73,90,97 'order':33 'pam':75,96 'pam_fprintd.so':47 'path':45,60 'put':41,55 'research':64 'run':80 'search':59 'security.pam.services.doas.fprintauth':18 'seem':15 'someth':82,106 'suffici':30 'test':11 'true':19 'without':61 'work':17,111 'would':110 'yet':91"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/2189342"
+editedAt: DateTimeImmutable @1728075318 {#3985
date: 2024-10-04 22:55:18.0 +02:00
}
+createdAt: DateTimeImmutable @1706046595 {#4048
date: 2024-01-23 22:49:55.0 +01:00
}
}
+root: App\Entity\EntryComment {#4039}
+body: """
Arbitrary options are internal so are not shown in the options search. They’re at security.pam.services.<name>.rules.\n
\n
Here’s the options that get added using the public options including fprintAuth: [github.com/NixOS/nixpkgs/blob/…/pam.nix#L621](https://github.com/NixOS/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#L621)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 7
+score: 0
+lastActive: DateTime @1706047327 {#4110
date: 2024-01-23 23:02:07.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@hallettj@beehaw.org"
]
+children: Doctrine\ORM\PersistentCollection {#4113 …}
+nested: Doctrine\ORM\PersistentCollection {#4115 …}
+votes: Doctrine\ORM\PersistentCollection {#4117 …}
+reports: Doctrine\ORM\PersistentCollection {#4119 …}
+favourites: Doctrine\ORM\PersistentCollection {#4121 …}
+notifications: Doctrine\ORM\PersistentCollection {#4123 …}
-id: 335271
-bodyTs: "'/nixos/nixpkgs/blob/':34 '/nixos/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#l621)':39 '/pam.nix':35 'ad':25 'arbitrari':1 'fprintauth':31 'get':24 'github.com':33,38 'github.com/nixos/nixpkgs/blob/':32 'github.com/nixos/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#l621)':37 'includ':30 'intern':4 'l621':36 'name':17 'option':2,11,22,29 'public':28 're':14 'rule':18 'search':12 'security.pam.services':16 'shown':8 'use':26"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://discuss.tchncs.de/comment/6750552"
+editedAt: null
+createdAt: DateTimeImmutable @1706047327 {#4109
date: 2024-01-23 23:02:07.0 +01:00
}
}
+root: App\Entity\EntryComment {#4039}
+body: """
Although they’re not in the search, they are in the [manual](https://nixos.org/manual/nixos/stable/options) so you can find them searching that page. This one is listed as,\n
\n
```\n
\n
<span style="color:#323232;">security.pam.services..fprintAuth\n
</span>\n
```\n
\n
But it does take some inferences to find this, and to realize that you can put `doas` in place of ``
"""
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1706053485 {#4147
date: 2024-01-24 00:44:45.0 +01:00
}
+ip: null
+tags: [
"323232"
]
+mentions: [
"@wwwgem@lemmy.ml"
"@hallettj@beehaw.org"
"@2xsaiko@discuss.tchncs.de"
]
+children: Doctrine\ORM\PersistentCollection {#4150 …}
+nested: Doctrine\ORM\PersistentCollection {#4152 …}
+votes: Doctrine\ORM\PersistentCollection {#4154 …}
+reports: Doctrine\ORM\PersistentCollection {#4156 …}
+favourites: Doctrine\ORM\PersistentCollection {#4158 …}
+notifications: Doctrine\ORM\PersistentCollection {#4160 …}
-id: 335491
-bodyTs: "'/manual/nixos/stable/options)':15 'although':1 'doa':47 'find':19,38 'fprintauth':30 'infer':36 'list':27 'manual':12 'nixos.org':14 'nixos.org/manual/nixos/stable/options)':13 'one':25 'page':23 'place':49 'put':46 're':3 'realiz':42 'search':7,21 'security.pam.services':29 'take':34"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/2189959"
+editedAt: null
+createdAt: DateTimeImmutable @1706053485 {#4148
date: 2024-01-24 00:44:45.0 +01:00
}
} |
|
Show voter details
|
27 |
DENIED
|
edit
|
App\Entity\EntryComment {#4149
+user: App\Entity\User {#3987 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-edit-system-files"
+title: "NixOS - edit system files"
+url: null
+body: """
Hello,\n
\n
I’m experiencing with NixOS and would like to know what would be the nicest way to add a specific line to a system file.\n
\n
As an example, how would you configure NixOS so the line \n
`auth sufficient pam_fprintd.so` \n
is added to the /etc/pam.d/doas file? As a bonus, it would be nice to know how to change an option (and not add an entire line) to a system file for which there is no NixOS default extraConfig/extraRules support for.\n
\n
This would allow me to add this line or not depending on the machine NixOS will be installed on.\n
\n
Thanks in advance for your suggestions.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 21
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728229373 {#2410
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32698
-titleTs: "'edit':2 'file':4 'nixo':1 'system':3"
-bodyTs: "'/etc/pam.d/doas':45 'ad':42 'add':19,63,86 'advanc':102 'allow':83 'auth':38 'bonus':49 'chang':58 'configur':33 'default':77 'depend':91 'entir':65 'exampl':29 'experienc':4 'extraconfig/extrarules':78 'file':26,46,70 'hello':1 'instal':98 'know':11,55 'like':9 'line':22,37,66,88 'm':3 'machin':94 'nice':53 'nicest':16 'nixo':6,34,76,95 'option':60 'pam_fprintd.so':40 'specif':21 'suffici':39 'suggest':105 'support':79 'system':25,69 'thank':100 'way':17 'would':8,13,31,51,82"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706116825
+visibility: "visible "
+apId: "https://lemmy.ml/post/10948730"
+editedAt: DateTimeImmutable @1728073520 {#1850
date: 2024-10-04 22:25:20.0 +02:00
}
+createdAt: DateTimeImmutable @1706044825 {#2420
date: 2024-01-23 22:20:25.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4111
+user: Proxies\__CG__\App\Entity\User {#4112 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4039
+user: App\Entity\User {#3987 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
I did some digging around in the manual, and I tested this option which seems to work:\n
\n
```\n
\n
<span style="color:#323232;">security.pam.services.doas.fprintAuth = true;\n
</span>\n
```\n
\n
On my machine that adds this line to `/etc/pam.d/doas`:\n
\n
```\n
\n
<span style="color:#323232;">auth sufficient /nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so # fprintd (order 11400)\n
</span>\n
```\n
\n
**Edit:** Note that the NixOS option puts in the full path to `pam_fprintd.so`. That’s necessary because NixOS doesn’t put `so` files in search paths.\n
\n
Without doing more research I don’t know how to add arbitrary options to pam files in case you run into something that isn’t mapped to a NixOS option yet. The implementation for the pam options is [here](https://github.com/NixOS/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix); there might be something in there that would work.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 11
+score: 0
+lastActive: DateTime @1728229373 {#4049
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+tags: [
"323232"
]
+mentions: [
"@wwwgem@lemmy.ml"
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4037 …}
+nested: Doctrine\ORM\PersistentCollection {#4035 …}
+votes: Doctrine\ORM\PersistentCollection {#4033 …}
+reports: Doctrine\ORM\PersistentCollection {#4031 …}
+favourites: Doctrine\ORM\PersistentCollection {#3999 …}
+notifications: Doctrine\ORM\PersistentCollection {#4003 …}
-id: 335247
-bodyTs: "'/etc/pam.d/doas':28 '/nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so':31 '/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':102 '11400':34 'add':24,71 'arbitrari':72 'around':5 'auth':29 'case':78 'dig':4 'doesn':53 'edit':35 'file':57,76 'fprintd':32 'full':44 'github.com':101 'github.com/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':100 'implement':93 'isn':84 'know':68 'line':26 'machin':22 'manual':8 'map':86 'might':104 'necessari':50 'nixo':39,52,89 'note':36 'option':13,40,73,90,97 'order':33 'pam':75,96 'pam_fprintd.so':47 'path':45,60 'put':41,55 'research':64 'run':80 'search':59 'security.pam.services.doas.fprintauth':18 'seem':15 'someth':82,106 'suffici':30 'test':11 'true':19 'without':61 'work':17,111 'would':110 'yet':91"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/2189342"
+editedAt: DateTimeImmutable @1728075318 {#3985
date: 2024-10-04 22:55:18.0 +02:00
}
+createdAt: DateTimeImmutable @1706046595 {#4048
date: 2024-01-23 22:49:55.0 +01:00
}
}
+root: App\Entity\EntryComment {#4039}
+body: """
Arbitrary options are internal so are not shown in the options search. They’re at security.pam.services.<name>.rules.\n
\n
Here’s the options that get added using the public options including fprintAuth: [github.com/NixOS/nixpkgs/blob/…/pam.nix#L621](https://github.com/NixOS/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#L621)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 7
+score: 0
+lastActive: DateTime @1706047327 {#4110
date: 2024-01-23 23:02:07.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@hallettj@beehaw.org"
]
+children: Doctrine\ORM\PersistentCollection {#4113 …}
+nested: Doctrine\ORM\PersistentCollection {#4115 …}
+votes: Doctrine\ORM\PersistentCollection {#4117 …}
+reports: Doctrine\ORM\PersistentCollection {#4119 …}
+favourites: Doctrine\ORM\PersistentCollection {#4121 …}
+notifications: Doctrine\ORM\PersistentCollection {#4123 …}
-id: 335271
-bodyTs: "'/nixos/nixpkgs/blob/':34 '/nixos/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#l621)':39 '/pam.nix':35 'ad':25 'arbitrari':1 'fprintauth':31 'get':24 'github.com':33,38 'github.com/nixos/nixpkgs/blob/':32 'github.com/nixos/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#l621)':37 'includ':30 'intern':4 'l621':36 'name':17 'option':2,11,22,29 'public':28 're':14 'rule':18 'search':12 'security.pam.services':16 'shown':8 'use':26"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://discuss.tchncs.de/comment/6750552"
+editedAt: null
+createdAt: DateTimeImmutable @1706047327 {#4109
date: 2024-01-23 23:02:07.0 +01:00
}
}
+root: App\Entity\EntryComment {#4039}
+body: """
Although they’re not in the search, they are in the [manual](https://nixos.org/manual/nixos/stable/options) so you can find them searching that page. This one is listed as,\n
\n
```\n
\n
<span style="color:#323232;">security.pam.services..fprintAuth\n
</span>\n
```\n
\n
But it does take some inferences to find this, and to realize that you can put `doas` in place of ``
"""
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1706053485 {#4147
date: 2024-01-24 00:44:45.0 +01:00
}
+ip: null
+tags: [
"323232"
]
+mentions: [
"@wwwgem@lemmy.ml"
"@hallettj@beehaw.org"
"@2xsaiko@discuss.tchncs.de"
]
+children: Doctrine\ORM\PersistentCollection {#4150 …}
+nested: Doctrine\ORM\PersistentCollection {#4152 …}
+votes: Doctrine\ORM\PersistentCollection {#4154 …}
+reports: Doctrine\ORM\PersistentCollection {#4156 …}
+favourites: Doctrine\ORM\PersistentCollection {#4158 …}
+notifications: Doctrine\ORM\PersistentCollection {#4160 …}
-id: 335491
-bodyTs: "'/manual/nixos/stable/options)':15 'although':1 'doa':47 'find':19,38 'fprintauth':30 'infer':36 'list':27 'manual':12 'nixos.org':14 'nixos.org/manual/nixos/stable/options)':13 'one':25 'page':23 'place':49 'put':46 're':3 'realiz':42 'search':7,21 'security.pam.services':29 'take':34"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/2189959"
+editedAt: null
+createdAt: DateTimeImmutable @1706053485 {#4148
date: 2024-01-24 00:44:45.0 +01:00
}
} |
|
Show voter details
|
28 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4149
+user: App\Entity\User {#3987 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-edit-system-files"
+title: "NixOS - edit system files"
+url: null
+body: """
Hello,\n
\n
I’m experiencing with NixOS and would like to know what would be the nicest way to add a specific line to a system file.\n
\n
As an example, how would you configure NixOS so the line \n
`auth sufficient pam_fprintd.so` \n
is added to the /etc/pam.d/doas file? As a bonus, it would be nice to know how to change an option (and not add an entire line) to a system file for which there is no NixOS default extraConfig/extraRules support for.\n
\n
This would allow me to add this line or not depending on the machine NixOS will be installed on.\n
\n
Thanks in advance for your suggestions.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 21
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728229373 {#2410
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32698
-titleTs: "'edit':2 'file':4 'nixo':1 'system':3"
-bodyTs: "'/etc/pam.d/doas':45 'ad':42 'add':19,63,86 'advanc':102 'allow':83 'auth':38 'bonus':49 'chang':58 'configur':33 'default':77 'depend':91 'entir':65 'exampl':29 'experienc':4 'extraconfig/extrarules':78 'file':26,46,70 'hello':1 'instal':98 'know':11,55 'like':9 'line':22,37,66,88 'm':3 'machin':94 'nice':53 'nicest':16 'nixo':6,34,76,95 'option':60 'pam_fprintd.so':40 'specif':21 'suffici':39 'suggest':105 'support':79 'system':25,69 'thank':100 'way':17 'would':8,13,31,51,82"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706116825
+visibility: "visible "
+apId: "https://lemmy.ml/post/10948730"
+editedAt: DateTimeImmutable @1728073520 {#1850
date: 2024-10-04 22:25:20.0 +02:00
}
+createdAt: DateTimeImmutable @1706044825 {#2420
date: 2024-01-23 22:20:25.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4111
+user: Proxies\__CG__\App\Entity\User {#4112 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4039
+user: App\Entity\User {#3987 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
I did some digging around in the manual, and I tested this option which seems to work:\n
\n
```\n
\n
<span style="color:#323232;">security.pam.services.doas.fprintAuth = true;\n
</span>\n
```\n
\n
On my machine that adds this line to `/etc/pam.d/doas`:\n
\n
```\n
\n
<span style="color:#323232;">auth sufficient /nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so # fprintd (order 11400)\n
</span>\n
```\n
\n
**Edit:** Note that the NixOS option puts in the full path to `pam_fprintd.so`. That’s necessary because NixOS doesn’t put `so` files in search paths.\n
\n
Without doing more research I don’t know how to add arbitrary options to pam files in case you run into something that isn’t mapped to a NixOS option yet. The implementation for the pam options is [here](https://github.com/NixOS/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix); there might be something in there that would work.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 11
+score: 0
+lastActive: DateTime @1728229373 {#4049
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+tags: [
"323232"
]
+mentions: [
"@wwwgem@lemmy.ml"
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4037 …}
+nested: Doctrine\ORM\PersistentCollection {#4035 …}
+votes: Doctrine\ORM\PersistentCollection {#4033 …}
+reports: Doctrine\ORM\PersistentCollection {#4031 …}
+favourites: Doctrine\ORM\PersistentCollection {#3999 …}
+notifications: Doctrine\ORM\PersistentCollection {#4003 …}
-id: 335247
-bodyTs: "'/etc/pam.d/doas':28 '/nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so':31 '/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':102 '11400':34 'add':24,71 'arbitrari':72 'around':5 'auth':29 'case':78 'dig':4 'doesn':53 'edit':35 'file':57,76 'fprintd':32 'full':44 'github.com':101 'github.com/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':100 'implement':93 'isn':84 'know':68 'line':26 'machin':22 'manual':8 'map':86 'might':104 'necessari':50 'nixo':39,52,89 'note':36 'option':13,40,73,90,97 'order':33 'pam':75,96 'pam_fprintd.so':47 'path':45,60 'put':41,55 'research':64 'run':80 'search':59 'security.pam.services.doas.fprintauth':18 'seem':15 'someth':82,106 'suffici':30 'test':11 'true':19 'without':61 'work':17,111 'would':110 'yet':91"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/2189342"
+editedAt: DateTimeImmutable @1728075318 {#3985
date: 2024-10-04 22:55:18.0 +02:00
}
+createdAt: DateTimeImmutable @1706046595 {#4048
date: 2024-01-23 22:49:55.0 +01:00
}
}
+root: App\Entity\EntryComment {#4039}
+body: """
Arbitrary options are internal so are not shown in the options search. They’re at security.pam.services.<name>.rules.\n
\n
Here’s the options that get added using the public options including fprintAuth: [github.com/NixOS/nixpkgs/blob/…/pam.nix#L621](https://github.com/NixOS/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#L621)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 7
+score: 0
+lastActive: DateTime @1706047327 {#4110
date: 2024-01-23 23:02:07.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@hallettj@beehaw.org"
]
+children: Doctrine\ORM\PersistentCollection {#4113 …}
+nested: Doctrine\ORM\PersistentCollection {#4115 …}
+votes: Doctrine\ORM\PersistentCollection {#4117 …}
+reports: Doctrine\ORM\PersistentCollection {#4119 …}
+favourites: Doctrine\ORM\PersistentCollection {#4121 …}
+notifications: Doctrine\ORM\PersistentCollection {#4123 …}
-id: 335271
-bodyTs: "'/nixos/nixpkgs/blob/':34 '/nixos/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#l621)':39 '/pam.nix':35 'ad':25 'arbitrari':1 'fprintauth':31 'get':24 'github.com':33,38 'github.com/nixos/nixpkgs/blob/':32 'github.com/nixos/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#l621)':37 'includ':30 'intern':4 'l621':36 'name':17 'option':2,11,22,29 'public':28 're':14 'rule':18 'search':12 'security.pam.services':16 'shown':8 'use':26"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://discuss.tchncs.de/comment/6750552"
+editedAt: null
+createdAt: DateTimeImmutable @1706047327 {#4109
date: 2024-01-23 23:02:07.0 +01:00
}
}
+root: App\Entity\EntryComment {#4039}
+body: """
Although they’re not in the search, they are in the [manual](https://nixos.org/manual/nixos/stable/options) so you can find them searching that page. This one is listed as,\n
\n
```\n
\n
<span style="color:#323232;">security.pam.services..fprintAuth\n
</span>\n
```\n
\n
But it does take some inferences to find this, and to realize that you can put `doas` in place of ``
"""
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1706053485 {#4147
date: 2024-01-24 00:44:45.0 +01:00
}
+ip: null
+tags: [
"323232"
]
+mentions: [
"@wwwgem@lemmy.ml"
"@hallettj@beehaw.org"
"@2xsaiko@discuss.tchncs.de"
]
+children: Doctrine\ORM\PersistentCollection {#4150 …}
+nested: Doctrine\ORM\PersistentCollection {#4152 …}
+votes: Doctrine\ORM\PersistentCollection {#4154 …}
+reports: Doctrine\ORM\PersistentCollection {#4156 …}
+favourites: Doctrine\ORM\PersistentCollection {#4158 …}
+notifications: Doctrine\ORM\PersistentCollection {#4160 …}
-id: 335491
-bodyTs: "'/manual/nixos/stable/options)':15 'although':1 'doa':47 'find':19,38 'fprintauth':30 'infer':36 'list':27 'manual':12 'nixos.org':14 'nixos.org/manual/nixos/stable/options)':13 'one':25 'page':23 'place':49 'put':46 're':3 'realiz':42 'search':7,21 'security.pam.services':29 'take':34"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/2189959"
+editedAt: null
+createdAt: DateTimeImmutable @1706053485 {#4148
date: 2024-01-24 00:44:45.0 +01:00
}
} |
|
Show voter details
|
29 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
30 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4187
+user: Proxies\__CG__\App\Entity\User {#4112 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-edit-system-files"
+title: "NixOS - edit system files"
+url: null
+body: """
Hello,\n
\n
I’m experiencing with NixOS and would like to know what would be the nicest way to add a specific line to a system file.\n
\n
As an example, how would you configure NixOS so the line \n
`auth sufficient pam_fprintd.so` \n
is added to the /etc/pam.d/doas file? As a bonus, it would be nice to know how to change an option (and not add an entire line) to a system file for which there is no NixOS default extraConfig/extraRules support for.\n
\n
This would allow me to add this line or not depending on the machine NixOS will be installed on.\n
\n
Thanks in advance for your suggestions.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 21
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728229373 {#2410
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32698
-titleTs: "'edit':2 'file':4 'nixo':1 'system':3"
-bodyTs: "'/etc/pam.d/doas':45 'ad':42 'add':19,63,86 'advanc':102 'allow':83 'auth':38 'bonus':49 'chang':58 'configur':33 'default':77 'depend':91 'entir':65 'exampl':29 'experienc':4 'extraconfig/extrarules':78 'file':26,46,70 'hello':1 'instal':98 'know':11,55 'like':9 'line':22,37,66,88 'm':3 'machin':94 'nice':53 'nicest':16 'nixo':6,34,76,95 'option':60 'pam_fprintd.so':40 'specif':21 'suffici':39 'suggest':105 'support':79 'system':25,69 'thank':100 'way':17 'would':8,13,31,51,82"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706116825
+visibility: "visible "
+apId: "https://lemmy.ml/post/10948730"
+editedAt: DateTimeImmutable @1728073520 {#1850
date: 2024-10-04 22:25:20.0 +02:00
}
+createdAt: DateTimeImmutable @1706044825 {#2420
date: 2024-01-23 22:20:25.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4149
+user: App\Entity\User {#3987 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4111
+user: Proxies\__CG__\App\Entity\User {#4112 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4039
+user: App\Entity\User {#3987 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
I did some digging around in the manual, and I tested this option which seems to work:\n
\n
```\n
\n
<span style="color:#323232;">security.pam.services.doas.fprintAuth = true;\n
</span>\n
```\n
\n
On my machine that adds this line to `/etc/pam.d/doas`:\n
\n
```\n
\n
<span style="color:#323232;">auth sufficient /nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so # fprintd (order 11400)\n
</span>\n
```\n
\n
**Edit:** Note that the NixOS option puts in the full path to `pam_fprintd.so`. That’s necessary because NixOS doesn’t put `so` files in search paths.\n
\n
Without doing more research I don’t know how to add arbitrary options to pam files in case you run into something that isn’t mapped to a NixOS option yet. The implementation for the pam options is [here](https://github.com/NixOS/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix); there might be something in there that would work.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 11
+score: 0
+lastActive: DateTime @1728229373 {#4049
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+tags: [
"323232"
]
+mentions: [
"@wwwgem@lemmy.ml"
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4037 …}
+nested: Doctrine\ORM\PersistentCollection {#4035 …}
+votes: Doctrine\ORM\PersistentCollection {#4033 …}
+reports: Doctrine\ORM\PersistentCollection {#4031 …}
+favourites: Doctrine\ORM\PersistentCollection {#3999 …}
+notifications: Doctrine\ORM\PersistentCollection {#4003 …}
-id: 335247
-bodyTs: "'/etc/pam.d/doas':28 '/nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so':31 '/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':102 '11400':34 'add':24,71 'arbitrari':72 'around':5 'auth':29 'case':78 'dig':4 'doesn':53 'edit':35 'file':57,76 'fprintd':32 'full':44 'github.com':101 'github.com/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':100 'implement':93 'isn':84 'know':68 'line':26 'machin':22 'manual':8 'map':86 'might':104 'necessari':50 'nixo':39,52,89 'note':36 'option':13,40,73,90,97 'order':33 'pam':75,96 'pam_fprintd.so':47 'path':45,60 'put':41,55 'research':64 'run':80 'search':59 'security.pam.services.doas.fprintauth':18 'seem':15 'someth':82,106 'suffici':30 'test':11 'true':19 'without':61 'work':17,111 'would':110 'yet':91"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/2189342"
+editedAt: DateTimeImmutable @1728075318 {#3985
date: 2024-10-04 22:55:18.0 +02:00
}
+createdAt: DateTimeImmutable @1706046595 {#4048
date: 2024-01-23 22:49:55.0 +01:00
}
}
+root: App\Entity\EntryComment {#4039}
+body: """
Arbitrary options are internal so are not shown in the options search. They’re at security.pam.services.<name>.rules.\n
\n
Here’s the options that get added using the public options including fprintAuth: [github.com/NixOS/nixpkgs/blob/…/pam.nix#L621](https://github.com/NixOS/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#L621)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 7
+score: 0
+lastActive: DateTime @1706047327 {#4110
date: 2024-01-23 23:02:07.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@hallettj@beehaw.org"
]
+children: Doctrine\ORM\PersistentCollection {#4113 …}
+nested: Doctrine\ORM\PersistentCollection {#4115 …}
+votes: Doctrine\ORM\PersistentCollection {#4117 …}
+reports: Doctrine\ORM\PersistentCollection {#4119 …}
+favourites: Doctrine\ORM\PersistentCollection {#4121 …}
+notifications: Doctrine\ORM\PersistentCollection {#4123 …}
-id: 335271
-bodyTs: "'/nixos/nixpkgs/blob/':34 '/nixos/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#l621)':39 '/pam.nix':35 'ad':25 'arbitrari':1 'fprintauth':31 'get':24 'github.com':33,38 'github.com/nixos/nixpkgs/blob/':32 'github.com/nixos/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#l621)':37 'includ':30 'intern':4 'l621':36 'name':17 'option':2,11,22,29 'public':28 're':14 'rule':18 'search':12 'security.pam.services':16 'shown':8 'use':26"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://discuss.tchncs.de/comment/6750552"
+editedAt: null
+createdAt: DateTimeImmutable @1706047327 {#4109
date: 2024-01-23 23:02:07.0 +01:00
}
}
+root: App\Entity\EntryComment {#4039}
+body: """
Although they’re not in the search, they are in the [manual](https://nixos.org/manual/nixos/stable/options) so you can find them searching that page. This one is listed as,\n
\n
```\n
\n
<span style="color:#323232;">security.pam.services..fprintAuth\n
</span>\n
```\n
\n
But it does take some inferences to find this, and to realize that you can put `doas` in place of ``
"""
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1706053485 {#4147
date: 2024-01-24 00:44:45.0 +01:00
}
+ip: null
+tags: [
"323232"
]
+mentions: [
"@wwwgem@lemmy.ml"
"@hallettj@beehaw.org"
"@2xsaiko@discuss.tchncs.de"
]
+children: Doctrine\ORM\PersistentCollection {#4150 …}
+nested: Doctrine\ORM\PersistentCollection {#4152 …}
+votes: Doctrine\ORM\PersistentCollection {#4154 …}
+reports: Doctrine\ORM\PersistentCollection {#4156 …}
+favourites: Doctrine\ORM\PersistentCollection {#4158 …}
+notifications: Doctrine\ORM\PersistentCollection {#4160 …}
-id: 335491
-bodyTs: "'/manual/nixos/stable/options)':15 'although':1 'doa':47 'find':19,38 'fprintauth':30 'infer':36 'list':27 'manual':12 'nixos.org':14 'nixos.org/manual/nixos/stable/options)':13 'one':25 'page':23 'place':49 'put':46 're':3 'realiz':42 'search':7,21 'security.pam.services':29 'take':34"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/2189959"
+editedAt: null
+createdAt: DateTimeImmutable @1706053485 {#4148
date: 2024-01-24 00:44:45.0 +01:00
}
}
+root: App\Entity\EntryComment {#4039}
+body: """
No, that one is in the search as well. It’s a normal option. [search.nixos.org/options?show=security.pam.servic…](https://search.nixos.org/options?show=security.pam.services.%3Cname%3E.fprintAuth)\n
\n
What isn’t and also isn’t in the manual is the `rules` options. Those are all internal.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706079111 {#4188
date: 2024-01-24 07:51:51.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@hallettj@beehaw.org"
"@2xsaiko@discuss.tchncs.de"
]
+children: Doctrine\ORM\PersistentCollection {#4184 …}
+nested: Doctrine\ORM\PersistentCollection {#4180 …}
+votes: Doctrine\ORM\PersistentCollection {#4178 …}
+reports: Doctrine\ORM\PersistentCollection {#4193 …}
+favourites: Doctrine\ORM\PersistentCollection {#4195 …}
+notifications: Doctrine\ORM\PersistentCollection {#4197 …}
-id: 336109
-bodyTs: "'/options?show=security.pam.servic':17 '/options?show=security.pam.services.%3cname%3e.fprintauth)':20 'also':25 'intern':38 'isn':22,26 'manual':30 'normal':13 'one':3 'option':14,34 'rule':33 'search':7 'search.nixos.org':16,19 'search.nixos.org/options?show=security.pam.servic':15 'search.nixos.org/options?show=security.pam.services.%3cname%3e.fprintauth)':18 'well':9"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://discuss.tchncs.de/comment/6765553"
+editedAt: null
+createdAt: DateTimeImmutable @1706079111 {#4191
date: 2024-01-24 07:51:51.0 +01:00
}
} |
|
Show voter details
|
31 |
DENIED
|
edit
|
App\Entity\EntryComment {#4187
+user: Proxies\__CG__\App\Entity\User {#4112 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-edit-system-files"
+title: "NixOS - edit system files"
+url: null
+body: """
Hello,\n
\n
I’m experiencing with NixOS and would like to know what would be the nicest way to add a specific line to a system file.\n
\n
As an example, how would you configure NixOS so the line \n
`auth sufficient pam_fprintd.so` \n
is added to the /etc/pam.d/doas file? As a bonus, it would be nice to know how to change an option (and not add an entire line) to a system file for which there is no NixOS default extraConfig/extraRules support for.\n
\n
This would allow me to add this line or not depending on the machine NixOS will be installed on.\n
\n
Thanks in advance for your suggestions.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 21
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728229373 {#2410
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32698
-titleTs: "'edit':2 'file':4 'nixo':1 'system':3"
-bodyTs: "'/etc/pam.d/doas':45 'ad':42 'add':19,63,86 'advanc':102 'allow':83 'auth':38 'bonus':49 'chang':58 'configur':33 'default':77 'depend':91 'entir':65 'exampl':29 'experienc':4 'extraconfig/extrarules':78 'file':26,46,70 'hello':1 'instal':98 'know':11,55 'like':9 'line':22,37,66,88 'm':3 'machin':94 'nice':53 'nicest':16 'nixo':6,34,76,95 'option':60 'pam_fprintd.so':40 'specif':21 'suffici':39 'suggest':105 'support':79 'system':25,69 'thank':100 'way':17 'would':8,13,31,51,82"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706116825
+visibility: "visible "
+apId: "https://lemmy.ml/post/10948730"
+editedAt: DateTimeImmutable @1728073520 {#1850
date: 2024-10-04 22:25:20.0 +02:00
}
+createdAt: DateTimeImmutable @1706044825 {#2420
date: 2024-01-23 22:20:25.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4149
+user: App\Entity\User {#3987 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4111
+user: Proxies\__CG__\App\Entity\User {#4112 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4039
+user: App\Entity\User {#3987 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
I did some digging around in the manual, and I tested this option which seems to work:\n
\n
```\n
\n
<span style="color:#323232;">security.pam.services.doas.fprintAuth = true;\n
</span>\n
```\n
\n
On my machine that adds this line to `/etc/pam.d/doas`:\n
\n
```\n
\n
<span style="color:#323232;">auth sufficient /nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so # fprintd (order 11400)\n
</span>\n
```\n
\n
**Edit:** Note that the NixOS option puts in the full path to `pam_fprintd.so`. That’s necessary because NixOS doesn’t put `so` files in search paths.\n
\n
Without doing more research I don’t know how to add arbitrary options to pam files in case you run into something that isn’t mapped to a NixOS option yet. The implementation for the pam options is [here](https://github.com/NixOS/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix); there might be something in there that would work.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 11
+score: 0
+lastActive: DateTime @1728229373 {#4049
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+tags: [
"323232"
]
+mentions: [
"@wwwgem@lemmy.ml"
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4037 …}
+nested: Doctrine\ORM\PersistentCollection {#4035 …}
+votes: Doctrine\ORM\PersistentCollection {#4033 …}
+reports: Doctrine\ORM\PersistentCollection {#4031 …}
+favourites: Doctrine\ORM\PersistentCollection {#3999 …}
+notifications: Doctrine\ORM\PersistentCollection {#4003 …}
-id: 335247
-bodyTs: "'/etc/pam.d/doas':28 '/nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so':31 '/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':102 '11400':34 'add':24,71 'arbitrari':72 'around':5 'auth':29 'case':78 'dig':4 'doesn':53 'edit':35 'file':57,76 'fprintd':32 'full':44 'github.com':101 'github.com/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':100 'implement':93 'isn':84 'know':68 'line':26 'machin':22 'manual':8 'map':86 'might':104 'necessari':50 'nixo':39,52,89 'note':36 'option':13,40,73,90,97 'order':33 'pam':75,96 'pam_fprintd.so':47 'path':45,60 'put':41,55 'research':64 'run':80 'search':59 'security.pam.services.doas.fprintauth':18 'seem':15 'someth':82,106 'suffici':30 'test':11 'true':19 'without':61 'work':17,111 'would':110 'yet':91"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/2189342"
+editedAt: DateTimeImmutable @1728075318 {#3985
date: 2024-10-04 22:55:18.0 +02:00
}
+createdAt: DateTimeImmutable @1706046595 {#4048
date: 2024-01-23 22:49:55.0 +01:00
}
}
+root: App\Entity\EntryComment {#4039}
+body: """
Arbitrary options are internal so are not shown in the options search. They’re at security.pam.services.<name>.rules.\n
\n
Here’s the options that get added using the public options including fprintAuth: [github.com/NixOS/nixpkgs/blob/…/pam.nix#L621](https://github.com/NixOS/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#L621)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 7
+score: 0
+lastActive: DateTime @1706047327 {#4110
date: 2024-01-23 23:02:07.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@hallettj@beehaw.org"
]
+children: Doctrine\ORM\PersistentCollection {#4113 …}
+nested: Doctrine\ORM\PersistentCollection {#4115 …}
+votes: Doctrine\ORM\PersistentCollection {#4117 …}
+reports: Doctrine\ORM\PersistentCollection {#4119 …}
+favourites: Doctrine\ORM\PersistentCollection {#4121 …}
+notifications: Doctrine\ORM\PersistentCollection {#4123 …}
-id: 335271
-bodyTs: "'/nixos/nixpkgs/blob/':34 '/nixos/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#l621)':39 '/pam.nix':35 'ad':25 'arbitrari':1 'fprintauth':31 'get':24 'github.com':33,38 'github.com/nixos/nixpkgs/blob/':32 'github.com/nixos/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#l621)':37 'includ':30 'intern':4 'l621':36 'name':17 'option':2,11,22,29 'public':28 're':14 'rule':18 'search':12 'security.pam.services':16 'shown':8 'use':26"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://discuss.tchncs.de/comment/6750552"
+editedAt: null
+createdAt: DateTimeImmutable @1706047327 {#4109
date: 2024-01-23 23:02:07.0 +01:00
}
}
+root: App\Entity\EntryComment {#4039}
+body: """
Although they’re not in the search, they are in the [manual](https://nixos.org/manual/nixos/stable/options) so you can find them searching that page. This one is listed as,\n
\n
```\n
\n
<span style="color:#323232;">security.pam.services..fprintAuth\n
</span>\n
```\n
\n
But it does take some inferences to find this, and to realize that you can put `doas` in place of ``
"""
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1706053485 {#4147
date: 2024-01-24 00:44:45.0 +01:00
}
+ip: null
+tags: [
"323232"
]
+mentions: [
"@wwwgem@lemmy.ml"
"@hallettj@beehaw.org"
"@2xsaiko@discuss.tchncs.de"
]
+children: Doctrine\ORM\PersistentCollection {#4150 …}
+nested: Doctrine\ORM\PersistentCollection {#4152 …}
+votes: Doctrine\ORM\PersistentCollection {#4154 …}
+reports: Doctrine\ORM\PersistentCollection {#4156 …}
+favourites: Doctrine\ORM\PersistentCollection {#4158 …}
+notifications: Doctrine\ORM\PersistentCollection {#4160 …}
-id: 335491
-bodyTs: "'/manual/nixos/stable/options)':15 'although':1 'doa':47 'find':19,38 'fprintauth':30 'infer':36 'list':27 'manual':12 'nixos.org':14 'nixos.org/manual/nixos/stable/options)':13 'one':25 'page':23 'place':49 'put':46 're':3 'realiz':42 'search':7,21 'security.pam.services':29 'take':34"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/2189959"
+editedAt: null
+createdAt: DateTimeImmutable @1706053485 {#4148
date: 2024-01-24 00:44:45.0 +01:00
}
}
+root: App\Entity\EntryComment {#4039}
+body: """
No, that one is in the search as well. It’s a normal option. [search.nixos.org/options?show=security.pam.servic…](https://search.nixos.org/options?show=security.pam.services.%3Cname%3E.fprintAuth)\n
\n
What isn’t and also isn’t in the manual is the `rules` options. Those are all internal.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706079111 {#4188
date: 2024-01-24 07:51:51.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@hallettj@beehaw.org"
"@2xsaiko@discuss.tchncs.de"
]
+children: Doctrine\ORM\PersistentCollection {#4184 …}
+nested: Doctrine\ORM\PersistentCollection {#4180 …}
+votes: Doctrine\ORM\PersistentCollection {#4178 …}
+reports: Doctrine\ORM\PersistentCollection {#4193 …}
+favourites: Doctrine\ORM\PersistentCollection {#4195 …}
+notifications: Doctrine\ORM\PersistentCollection {#4197 …}
-id: 336109
-bodyTs: "'/options?show=security.pam.servic':17 '/options?show=security.pam.services.%3cname%3e.fprintauth)':20 'also':25 'intern':38 'isn':22,26 'manual':30 'normal':13 'one':3 'option':14,34 'rule':33 'search':7 'search.nixos.org':16,19 'search.nixos.org/options?show=security.pam.servic':15 'search.nixos.org/options?show=security.pam.services.%3cname%3e.fprintauth)':18 'well':9"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://discuss.tchncs.de/comment/6765553"
+editedAt: null
+createdAt: DateTimeImmutable @1706079111 {#4191
date: 2024-01-24 07:51:51.0 +01:00
}
} |
|
Show voter details
|
32 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4187
+user: Proxies\__CG__\App\Entity\User {#4112 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-edit-system-files"
+title: "NixOS - edit system files"
+url: null
+body: """
Hello,\n
\n
I’m experiencing with NixOS and would like to know what would be the nicest way to add a specific line to a system file.\n
\n
As an example, how would you configure NixOS so the line \n
`auth sufficient pam_fprintd.so` \n
is added to the /etc/pam.d/doas file? As a bonus, it would be nice to know how to change an option (and not add an entire line) to a system file for which there is no NixOS default extraConfig/extraRules support for.\n
\n
This would allow me to add this line or not depending on the machine NixOS will be installed on.\n
\n
Thanks in advance for your suggestions.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 21
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728229373 {#2410
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32698
-titleTs: "'edit':2 'file':4 'nixo':1 'system':3"
-bodyTs: "'/etc/pam.d/doas':45 'ad':42 'add':19,63,86 'advanc':102 'allow':83 'auth':38 'bonus':49 'chang':58 'configur':33 'default':77 'depend':91 'entir':65 'exampl':29 'experienc':4 'extraconfig/extrarules':78 'file':26,46,70 'hello':1 'instal':98 'know':11,55 'like':9 'line':22,37,66,88 'm':3 'machin':94 'nice':53 'nicest':16 'nixo':6,34,76,95 'option':60 'pam_fprintd.so':40 'specif':21 'suffici':39 'suggest':105 'support':79 'system':25,69 'thank':100 'way':17 'would':8,13,31,51,82"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706116825
+visibility: "visible "
+apId: "https://lemmy.ml/post/10948730"
+editedAt: DateTimeImmutable @1728073520 {#1850
date: 2024-10-04 22:25:20.0 +02:00
}
+createdAt: DateTimeImmutable @1706044825 {#2420
date: 2024-01-23 22:20:25.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4149
+user: App\Entity\User {#3987 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4111
+user: Proxies\__CG__\App\Entity\User {#4112 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4039
+user: App\Entity\User {#3987 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
I did some digging around in the manual, and I tested this option which seems to work:\n
\n
```\n
\n
<span style="color:#323232;">security.pam.services.doas.fprintAuth = true;\n
</span>\n
```\n
\n
On my machine that adds this line to `/etc/pam.d/doas`:\n
\n
```\n
\n
<span style="color:#323232;">auth sufficient /nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so # fprintd (order 11400)\n
</span>\n
```\n
\n
**Edit:** Note that the NixOS option puts in the full path to `pam_fprintd.so`. That’s necessary because NixOS doesn’t put `so` files in search paths.\n
\n
Without doing more research I don’t know how to add arbitrary options to pam files in case you run into something that isn’t mapped to a NixOS option yet. The implementation for the pam options is [here](https://github.com/NixOS/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix); there might be something in there that would work.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 11
+score: 0
+lastActive: DateTime @1728229373 {#4049
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+tags: [
"323232"
]
+mentions: [
"@wwwgem@lemmy.ml"
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4037 …}
+nested: Doctrine\ORM\PersistentCollection {#4035 …}
+votes: Doctrine\ORM\PersistentCollection {#4033 …}
+reports: Doctrine\ORM\PersistentCollection {#4031 …}
+favourites: Doctrine\ORM\PersistentCollection {#3999 …}
+notifications: Doctrine\ORM\PersistentCollection {#4003 …}
-id: 335247
-bodyTs: "'/etc/pam.d/doas':28 '/nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so':31 '/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':102 '11400':34 'add':24,71 'arbitrari':72 'around':5 'auth':29 'case':78 'dig':4 'doesn':53 'edit':35 'file':57,76 'fprintd':32 'full':44 'github.com':101 'github.com/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':100 'implement':93 'isn':84 'know':68 'line':26 'machin':22 'manual':8 'map':86 'might':104 'necessari':50 'nixo':39,52,89 'note':36 'option':13,40,73,90,97 'order':33 'pam':75,96 'pam_fprintd.so':47 'path':45,60 'put':41,55 'research':64 'run':80 'search':59 'security.pam.services.doas.fprintauth':18 'seem':15 'someth':82,106 'suffici':30 'test':11 'true':19 'without':61 'work':17,111 'would':110 'yet':91"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/2189342"
+editedAt: DateTimeImmutable @1728075318 {#3985
date: 2024-10-04 22:55:18.0 +02:00
}
+createdAt: DateTimeImmutable @1706046595 {#4048
date: 2024-01-23 22:49:55.0 +01:00
}
}
+root: App\Entity\EntryComment {#4039}
+body: """
Arbitrary options are internal so are not shown in the options search. They’re at security.pam.services.<name>.rules.\n
\n
Here’s the options that get added using the public options including fprintAuth: [github.com/NixOS/nixpkgs/blob/…/pam.nix#L621](https://github.com/NixOS/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#L621)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 7
+score: 0
+lastActive: DateTime @1706047327 {#4110
date: 2024-01-23 23:02:07.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@hallettj@beehaw.org"
]
+children: Doctrine\ORM\PersistentCollection {#4113 …}
+nested: Doctrine\ORM\PersistentCollection {#4115 …}
+votes: Doctrine\ORM\PersistentCollection {#4117 …}
+reports: Doctrine\ORM\PersistentCollection {#4119 …}
+favourites: Doctrine\ORM\PersistentCollection {#4121 …}
+notifications: Doctrine\ORM\PersistentCollection {#4123 …}
-id: 335271
-bodyTs: "'/nixos/nixpkgs/blob/':34 '/nixos/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#l621)':39 '/pam.nix':35 'ad':25 'arbitrari':1 'fprintauth':31 'get':24 'github.com':33,38 'github.com/nixos/nixpkgs/blob/':32 'github.com/nixos/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#l621)':37 'includ':30 'intern':4 'l621':36 'name':17 'option':2,11,22,29 'public':28 're':14 'rule':18 'search':12 'security.pam.services':16 'shown':8 'use':26"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://discuss.tchncs.de/comment/6750552"
+editedAt: null
+createdAt: DateTimeImmutable @1706047327 {#4109
date: 2024-01-23 23:02:07.0 +01:00
}
}
+root: App\Entity\EntryComment {#4039}
+body: """
Although they’re not in the search, they are in the [manual](https://nixos.org/manual/nixos/stable/options) so you can find them searching that page. This one is listed as,\n
\n
```\n
\n
<span style="color:#323232;">security.pam.services..fprintAuth\n
</span>\n
```\n
\n
But it does take some inferences to find this, and to realize that you can put `doas` in place of ``
"""
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1706053485 {#4147
date: 2024-01-24 00:44:45.0 +01:00
}
+ip: null
+tags: [
"323232"
]
+mentions: [
"@wwwgem@lemmy.ml"
"@hallettj@beehaw.org"
"@2xsaiko@discuss.tchncs.de"
]
+children: Doctrine\ORM\PersistentCollection {#4150 …}
+nested: Doctrine\ORM\PersistentCollection {#4152 …}
+votes: Doctrine\ORM\PersistentCollection {#4154 …}
+reports: Doctrine\ORM\PersistentCollection {#4156 …}
+favourites: Doctrine\ORM\PersistentCollection {#4158 …}
+notifications: Doctrine\ORM\PersistentCollection {#4160 …}
-id: 335491
-bodyTs: "'/manual/nixos/stable/options)':15 'although':1 'doa':47 'find':19,38 'fprintauth':30 'infer':36 'list':27 'manual':12 'nixos.org':14 'nixos.org/manual/nixos/stable/options)':13 'one':25 'page':23 'place':49 'put':46 're':3 'realiz':42 'search':7,21 'security.pam.services':29 'take':34"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/2189959"
+editedAt: null
+createdAt: DateTimeImmutable @1706053485 {#4148
date: 2024-01-24 00:44:45.0 +01:00
}
}
+root: App\Entity\EntryComment {#4039}
+body: """
No, that one is in the search as well. It’s a normal option. [search.nixos.org/options?show=security.pam.servic…](https://search.nixos.org/options?show=security.pam.services.%3Cname%3E.fprintAuth)\n
\n
What isn’t and also isn’t in the manual is the `rules` options. Those are all internal.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706079111 {#4188
date: 2024-01-24 07:51:51.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@hallettj@beehaw.org"
"@2xsaiko@discuss.tchncs.de"
]
+children: Doctrine\ORM\PersistentCollection {#4184 …}
+nested: Doctrine\ORM\PersistentCollection {#4180 …}
+votes: Doctrine\ORM\PersistentCollection {#4178 …}
+reports: Doctrine\ORM\PersistentCollection {#4193 …}
+favourites: Doctrine\ORM\PersistentCollection {#4195 …}
+notifications: Doctrine\ORM\PersistentCollection {#4197 …}
-id: 336109
-bodyTs: "'/options?show=security.pam.servic':17 '/options?show=security.pam.services.%3cname%3e.fprintauth)':20 'also':25 'intern':38 'isn':22,26 'manual':30 'normal':13 'one':3 'option':14,34 'rule':33 'search':7 'search.nixos.org':16,19 'search.nixos.org/options?show=security.pam.servic':15 'search.nixos.org/options?show=security.pam.services.%3cname%3e.fprintauth)':18 'well':9"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://discuss.tchncs.de/comment/6765553"
+editedAt: null
+createdAt: DateTimeImmutable @1706079111 {#4191
date: 2024-01-24 07:51:51.0 +01:00
}
} |
|
Show voter details
|
33 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
34 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4201
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-edit-system-files"
+title: "NixOS - edit system files"
+url: null
+body: """
Hello,\n
\n
I’m experiencing with NixOS and would like to know what would be the nicest way to add a specific line to a system file.\n
\n
As an example, how would you configure NixOS so the line \n
`auth sufficient pam_fprintd.so` \n
is added to the /etc/pam.d/doas file? As a bonus, it would be nice to know how to change an option (and not add an entire line) to a system file for which there is no NixOS default extraConfig/extraRules support for.\n
\n
This would allow me to add this line or not depending on the machine NixOS will be installed on.\n
\n
Thanks in advance for your suggestions.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 21
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728229373 {#2410
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32698
-titleTs: "'edit':2 'file':4 'nixo':1 'system':3"
-bodyTs: "'/etc/pam.d/doas':45 'ad':42 'add':19,63,86 'advanc':102 'allow':83 'auth':38 'bonus':49 'chang':58 'configur':33 'default':77 'depend':91 'entir':65 'exampl':29 'experienc':4 'extraconfig/extrarules':78 'file':26,46,70 'hello':1 'instal':98 'know':11,55 'like':9 'line':22,37,66,88 'm':3 'machin':94 'nice':53 'nicest':16 'nixo':6,34,76,95 'option':60 'pam_fprintd.so':40 'specif':21 'suffici':39 'suggest':105 'support':79 'system':25,69 'thank':100 'way':17 'would':8,13,31,51,82"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706116825
+visibility: "visible "
+apId: "https://lemmy.ml/post/10948730"
+editedAt: DateTimeImmutable @1728073520 {#1850
date: 2024-10-04 22:25:20.0 +02:00
}
+createdAt: DateTimeImmutable @1706044825 {#2420
date: 2024-01-23 22:20:25.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4149
+user: App\Entity\User {#3987 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4111
+user: Proxies\__CG__\App\Entity\User {#4112 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4039
+user: App\Entity\User {#3987 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
I did some digging around in the manual, and I tested this option which seems to work:\n
\n
```\n
\n
<span style="color:#323232;">security.pam.services.doas.fprintAuth = true;\n
</span>\n
```\n
\n
On my machine that adds this line to `/etc/pam.d/doas`:\n
\n
```\n
\n
<span style="color:#323232;">auth sufficient /nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so # fprintd (order 11400)\n
</span>\n
```\n
\n
**Edit:** Note that the NixOS option puts in the full path to `pam_fprintd.so`. That’s necessary because NixOS doesn’t put `so` files in search paths.\n
\n
Without doing more research I don’t know how to add arbitrary options to pam files in case you run into something that isn’t mapped to a NixOS option yet. The implementation for the pam options is [here](https://github.com/NixOS/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix); there might be something in there that would work.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 11
+score: 0
+lastActive: DateTime @1728229373 {#4049
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+tags: [
"323232"
]
+mentions: [
"@wwwgem@lemmy.ml"
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4037 …}
+nested: Doctrine\ORM\PersistentCollection {#4035 …}
+votes: Doctrine\ORM\PersistentCollection {#4033 …}
+reports: Doctrine\ORM\PersistentCollection {#4031 …}
+favourites: Doctrine\ORM\PersistentCollection {#3999 …}
+notifications: Doctrine\ORM\PersistentCollection {#4003 …}
-id: 335247
-bodyTs: "'/etc/pam.d/doas':28 '/nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so':31 '/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':102 '11400':34 'add':24,71 'arbitrari':72 'around':5 'auth':29 'case':78 'dig':4 'doesn':53 'edit':35 'file':57,76 'fprintd':32 'full':44 'github.com':101 'github.com/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':100 'implement':93 'isn':84 'know':68 'line':26 'machin':22 'manual':8 'map':86 'might':104 'necessari':50 'nixo':39,52,89 'note':36 'option':13,40,73,90,97 'order':33 'pam':75,96 'pam_fprintd.so':47 'path':45,60 'put':41,55 'research':64 'run':80 'search':59 'security.pam.services.doas.fprintauth':18 'seem':15 'someth':82,106 'suffici':30 'test':11 'true':19 'without':61 'work':17,111 'would':110 'yet':91"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/2189342"
+editedAt: DateTimeImmutable @1728075318 {#3985
date: 2024-10-04 22:55:18.0 +02:00
}
+createdAt: DateTimeImmutable @1706046595 {#4048
date: 2024-01-23 22:49:55.0 +01:00
}
}
+root: App\Entity\EntryComment {#4039}
+body: """
Arbitrary options are internal so are not shown in the options search. They’re at security.pam.services.<name>.rules.\n
\n
Here’s the options that get added using the public options including fprintAuth: [github.com/NixOS/nixpkgs/blob/…/pam.nix#L621](https://github.com/NixOS/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#L621)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 7
+score: 0
+lastActive: DateTime @1706047327 {#4110
date: 2024-01-23 23:02:07.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@hallettj@beehaw.org"
]
+children: Doctrine\ORM\PersistentCollection {#4113 …}
+nested: Doctrine\ORM\PersistentCollection {#4115 …}
+votes: Doctrine\ORM\PersistentCollection {#4117 …}
+reports: Doctrine\ORM\PersistentCollection {#4119 …}
+favourites: Doctrine\ORM\PersistentCollection {#4121 …}
+notifications: Doctrine\ORM\PersistentCollection {#4123 …}
-id: 335271
-bodyTs: "'/nixos/nixpkgs/blob/':34 '/nixos/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#l621)':39 '/pam.nix':35 'ad':25 'arbitrari':1 'fprintauth':31 'get':24 'github.com':33,38 'github.com/nixos/nixpkgs/blob/':32 'github.com/nixos/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#l621)':37 'includ':30 'intern':4 'l621':36 'name':17 'option':2,11,22,29 'public':28 're':14 'rule':18 'search':12 'security.pam.services':16 'shown':8 'use':26"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://discuss.tchncs.de/comment/6750552"
+editedAt: null
+createdAt: DateTimeImmutable @1706047327 {#4109
date: 2024-01-23 23:02:07.0 +01:00
}
}
+root: App\Entity\EntryComment {#4039}
+body: """
Although they’re not in the search, they are in the [manual](https://nixos.org/manual/nixos/stable/options) so you can find them searching that page. This one is listed as,\n
\n
```\n
\n
<span style="color:#323232;">security.pam.services..fprintAuth\n
</span>\n
```\n
\n
But it does take some inferences to find this, and to realize that you can put `doas` in place of ``
"""
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1706053485 {#4147
date: 2024-01-24 00:44:45.0 +01:00
}
+ip: null
+tags: [
"323232"
]
+mentions: [
"@wwwgem@lemmy.ml"
"@hallettj@beehaw.org"
"@2xsaiko@discuss.tchncs.de"
]
+children: Doctrine\ORM\PersistentCollection {#4150 …}
+nested: Doctrine\ORM\PersistentCollection {#4152 …}
+votes: Doctrine\ORM\PersistentCollection {#4154 …}
+reports: Doctrine\ORM\PersistentCollection {#4156 …}
+favourites: Doctrine\ORM\PersistentCollection {#4158 …}
+notifications: Doctrine\ORM\PersistentCollection {#4160 …}
-id: 335491
-bodyTs: "'/manual/nixos/stable/options)':15 'although':1 'doa':47 'find':19,38 'fprintauth':30 'infer':36 'list':27 'manual':12 'nixos.org':14 'nixos.org/manual/nixos/stable/options)':13 'one':25 'page':23 'place':49 'put':46 're':3 'realiz':42 'search':7,21 'security.pam.services':29 'take':34"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/2189959"
+editedAt: null
+createdAt: DateTimeImmutable @1706053485 {#4148
date: 2024-01-24 00:44:45.0 +01:00
}
}
+root: App\Entity\EntryComment {#4039}
+body: "As I said I’ve actually done it before asking… But I didn’t reboot and and that was needed for the change to take effect ¯\_(ツ)_/¯"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706054550 {#4199
date: 2024-01-24 01:02:30.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@hallettj@beehaw.org"
"@2xsaiko@discuss.tchncs.de"
]
+children: Doctrine\ORM\PersistentCollection {#4202 …}
+nested: Doctrine\ORM\PersistentCollection {#4204 …}
+votes: Doctrine\ORM\PersistentCollection {#4206 …}
+reports: Doctrine\ORM\PersistentCollection {#4208 …}
+favourites: Doctrine\ORM\PersistentCollection {#4210 …}
+notifications: Doctrine\ORM\PersistentCollection {#4212 …}
-id: 335528
-bodyTs: "'actual':6 'ask':10 'chang':23 'didn':13 'done':7 'effect':26 'need':20 'reboot':15 'said':3 'take':25 've':5 'ツ':27"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7664504"
+editedAt: null
+createdAt: DateTimeImmutable @1706054550 {#4200
date: 2024-01-24 01:02:30.0 +01:00
}
} |
|
Show voter details
|
35 |
DENIED
|
edit
|
App\Entity\EntryComment {#4201
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-edit-system-files"
+title: "NixOS - edit system files"
+url: null
+body: """
Hello,\n
\n
I’m experiencing with NixOS and would like to know what would be the nicest way to add a specific line to a system file.\n
\n
As an example, how would you configure NixOS so the line \n
`auth sufficient pam_fprintd.so` \n
is added to the /etc/pam.d/doas file? As a bonus, it would be nice to know how to change an option (and not add an entire line) to a system file for which there is no NixOS default extraConfig/extraRules support for.\n
\n
This would allow me to add this line or not depending on the machine NixOS will be installed on.\n
\n
Thanks in advance for your suggestions.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 21
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728229373 {#2410
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32698
-titleTs: "'edit':2 'file':4 'nixo':1 'system':3"
-bodyTs: "'/etc/pam.d/doas':45 'ad':42 'add':19,63,86 'advanc':102 'allow':83 'auth':38 'bonus':49 'chang':58 'configur':33 'default':77 'depend':91 'entir':65 'exampl':29 'experienc':4 'extraconfig/extrarules':78 'file':26,46,70 'hello':1 'instal':98 'know':11,55 'like':9 'line':22,37,66,88 'm':3 'machin':94 'nice':53 'nicest':16 'nixo':6,34,76,95 'option':60 'pam_fprintd.so':40 'specif':21 'suffici':39 'suggest':105 'support':79 'system':25,69 'thank':100 'way':17 'would':8,13,31,51,82"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706116825
+visibility: "visible "
+apId: "https://lemmy.ml/post/10948730"
+editedAt: DateTimeImmutable @1728073520 {#1850
date: 2024-10-04 22:25:20.0 +02:00
}
+createdAt: DateTimeImmutable @1706044825 {#2420
date: 2024-01-23 22:20:25.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4149
+user: App\Entity\User {#3987 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4111
+user: Proxies\__CG__\App\Entity\User {#4112 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4039
+user: App\Entity\User {#3987 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
I did some digging around in the manual, and I tested this option which seems to work:\n
\n
```\n
\n
<span style="color:#323232;">security.pam.services.doas.fprintAuth = true;\n
</span>\n
```\n
\n
On my machine that adds this line to `/etc/pam.d/doas`:\n
\n
```\n
\n
<span style="color:#323232;">auth sufficient /nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so # fprintd (order 11400)\n
</span>\n
```\n
\n
**Edit:** Note that the NixOS option puts in the full path to `pam_fprintd.so`. That’s necessary because NixOS doesn’t put `so` files in search paths.\n
\n
Without doing more research I don’t know how to add arbitrary options to pam files in case you run into something that isn’t mapped to a NixOS option yet. The implementation for the pam options is [here](https://github.com/NixOS/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix); there might be something in there that would work.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 11
+score: 0
+lastActive: DateTime @1728229373 {#4049
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+tags: [
"323232"
]
+mentions: [
"@wwwgem@lemmy.ml"
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4037 …}
+nested: Doctrine\ORM\PersistentCollection {#4035 …}
+votes: Doctrine\ORM\PersistentCollection {#4033 …}
+reports: Doctrine\ORM\PersistentCollection {#4031 …}
+favourites: Doctrine\ORM\PersistentCollection {#3999 …}
+notifications: Doctrine\ORM\PersistentCollection {#4003 …}
-id: 335247
-bodyTs: "'/etc/pam.d/doas':28 '/nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so':31 '/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':102 '11400':34 'add':24,71 'arbitrari':72 'around':5 'auth':29 'case':78 'dig':4 'doesn':53 'edit':35 'file':57,76 'fprintd':32 'full':44 'github.com':101 'github.com/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':100 'implement':93 'isn':84 'know':68 'line':26 'machin':22 'manual':8 'map':86 'might':104 'necessari':50 'nixo':39,52,89 'note':36 'option':13,40,73,90,97 'order':33 'pam':75,96 'pam_fprintd.so':47 'path':45,60 'put':41,55 'research':64 'run':80 'search':59 'security.pam.services.doas.fprintauth':18 'seem':15 'someth':82,106 'suffici':30 'test':11 'true':19 'without':61 'work':17,111 'would':110 'yet':91"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/2189342"
+editedAt: DateTimeImmutable @1728075318 {#3985
date: 2024-10-04 22:55:18.0 +02:00
}
+createdAt: DateTimeImmutable @1706046595 {#4048
date: 2024-01-23 22:49:55.0 +01:00
}
}
+root: App\Entity\EntryComment {#4039}
+body: """
Arbitrary options are internal so are not shown in the options search. They’re at security.pam.services.<name>.rules.\n
\n
Here’s the options that get added using the public options including fprintAuth: [github.com/NixOS/nixpkgs/blob/…/pam.nix#L621](https://github.com/NixOS/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#L621)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 7
+score: 0
+lastActive: DateTime @1706047327 {#4110
date: 2024-01-23 23:02:07.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@hallettj@beehaw.org"
]
+children: Doctrine\ORM\PersistentCollection {#4113 …}
+nested: Doctrine\ORM\PersistentCollection {#4115 …}
+votes: Doctrine\ORM\PersistentCollection {#4117 …}
+reports: Doctrine\ORM\PersistentCollection {#4119 …}
+favourites: Doctrine\ORM\PersistentCollection {#4121 …}
+notifications: Doctrine\ORM\PersistentCollection {#4123 …}
-id: 335271
-bodyTs: "'/nixos/nixpkgs/blob/':34 '/nixos/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#l621)':39 '/pam.nix':35 'ad':25 'arbitrari':1 'fprintauth':31 'get':24 'github.com':33,38 'github.com/nixos/nixpkgs/blob/':32 'github.com/nixos/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#l621)':37 'includ':30 'intern':4 'l621':36 'name':17 'option':2,11,22,29 'public':28 're':14 'rule':18 'search':12 'security.pam.services':16 'shown':8 'use':26"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://discuss.tchncs.de/comment/6750552"
+editedAt: null
+createdAt: DateTimeImmutable @1706047327 {#4109
date: 2024-01-23 23:02:07.0 +01:00
}
}
+root: App\Entity\EntryComment {#4039}
+body: """
Although they’re not in the search, they are in the [manual](https://nixos.org/manual/nixos/stable/options) so you can find them searching that page. This one is listed as,\n
\n
```\n
\n
<span style="color:#323232;">security.pam.services..fprintAuth\n
</span>\n
```\n
\n
But it does take some inferences to find this, and to realize that you can put `doas` in place of ``
"""
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1706053485 {#4147
date: 2024-01-24 00:44:45.0 +01:00
}
+ip: null
+tags: [
"323232"
]
+mentions: [
"@wwwgem@lemmy.ml"
"@hallettj@beehaw.org"
"@2xsaiko@discuss.tchncs.de"
]
+children: Doctrine\ORM\PersistentCollection {#4150 …}
+nested: Doctrine\ORM\PersistentCollection {#4152 …}
+votes: Doctrine\ORM\PersistentCollection {#4154 …}
+reports: Doctrine\ORM\PersistentCollection {#4156 …}
+favourites: Doctrine\ORM\PersistentCollection {#4158 …}
+notifications: Doctrine\ORM\PersistentCollection {#4160 …}
-id: 335491
-bodyTs: "'/manual/nixos/stable/options)':15 'although':1 'doa':47 'find':19,38 'fprintauth':30 'infer':36 'list':27 'manual':12 'nixos.org':14 'nixos.org/manual/nixos/stable/options)':13 'one':25 'page':23 'place':49 'put':46 're':3 'realiz':42 'search':7,21 'security.pam.services':29 'take':34"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/2189959"
+editedAt: null
+createdAt: DateTimeImmutable @1706053485 {#4148
date: 2024-01-24 00:44:45.0 +01:00
}
}
+root: App\Entity\EntryComment {#4039}
+body: "As I said I’ve actually done it before asking… But I didn’t reboot and and that was needed for the change to take effect ¯\_(ツ)_/¯"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706054550 {#4199
date: 2024-01-24 01:02:30.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@hallettj@beehaw.org"
"@2xsaiko@discuss.tchncs.de"
]
+children: Doctrine\ORM\PersistentCollection {#4202 …}
+nested: Doctrine\ORM\PersistentCollection {#4204 …}
+votes: Doctrine\ORM\PersistentCollection {#4206 …}
+reports: Doctrine\ORM\PersistentCollection {#4208 …}
+favourites: Doctrine\ORM\PersistentCollection {#4210 …}
+notifications: Doctrine\ORM\PersistentCollection {#4212 …}
-id: 335528
-bodyTs: "'actual':6 'ask':10 'chang':23 'didn':13 'done':7 'effect':26 'need':20 'reboot':15 'said':3 'take':25 've':5 'ツ':27"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7664504"
+editedAt: null
+createdAt: DateTimeImmutable @1706054550 {#4200
date: 2024-01-24 01:02:30.0 +01:00
}
} |
|
Show voter details
|
36 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4201
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-edit-system-files"
+title: "NixOS - edit system files"
+url: null
+body: """
Hello,\n
\n
I’m experiencing with NixOS and would like to know what would be the nicest way to add a specific line to a system file.\n
\n
As an example, how would you configure NixOS so the line \n
`auth sufficient pam_fprintd.so` \n
is added to the /etc/pam.d/doas file? As a bonus, it would be nice to know how to change an option (and not add an entire line) to a system file for which there is no NixOS default extraConfig/extraRules support for.\n
\n
This would allow me to add this line or not depending on the machine NixOS will be installed on.\n
\n
Thanks in advance for your suggestions.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 21
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728229373 {#2410
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32698
-titleTs: "'edit':2 'file':4 'nixo':1 'system':3"
-bodyTs: "'/etc/pam.d/doas':45 'ad':42 'add':19,63,86 'advanc':102 'allow':83 'auth':38 'bonus':49 'chang':58 'configur':33 'default':77 'depend':91 'entir':65 'exampl':29 'experienc':4 'extraconfig/extrarules':78 'file':26,46,70 'hello':1 'instal':98 'know':11,55 'like':9 'line':22,37,66,88 'm':3 'machin':94 'nice':53 'nicest':16 'nixo':6,34,76,95 'option':60 'pam_fprintd.so':40 'specif':21 'suffici':39 'suggest':105 'support':79 'system':25,69 'thank':100 'way':17 'would':8,13,31,51,82"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706116825
+visibility: "visible "
+apId: "https://lemmy.ml/post/10948730"
+editedAt: DateTimeImmutable @1728073520 {#1850
date: 2024-10-04 22:25:20.0 +02:00
}
+createdAt: DateTimeImmutable @1706044825 {#2420
date: 2024-01-23 22:20:25.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4149
+user: App\Entity\User {#3987 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4111
+user: Proxies\__CG__\App\Entity\User {#4112 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4039
+user: App\Entity\User {#3987 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
I did some digging around in the manual, and I tested this option which seems to work:\n
\n
```\n
\n
<span style="color:#323232;">security.pam.services.doas.fprintAuth = true;\n
</span>\n
```\n
\n
On my machine that adds this line to `/etc/pam.d/doas`:\n
\n
```\n
\n
<span style="color:#323232;">auth sufficient /nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so # fprintd (order 11400)\n
</span>\n
```\n
\n
**Edit:** Note that the NixOS option puts in the full path to `pam_fprintd.so`. That’s necessary because NixOS doesn’t put `so` files in search paths.\n
\n
Without doing more research I don’t know how to add arbitrary options to pam files in case you run into something that isn’t mapped to a NixOS option yet. The implementation for the pam options is [here](https://github.com/NixOS/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix); there might be something in there that would work.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 11
+score: 0
+lastActive: DateTime @1728229373 {#4049
date: 2024-10-06 17:42:53.0 +02:00
}
+ip: null
+tags: [
"323232"
]
+mentions: [
"@wwwgem@lemmy.ml"
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4037 …}
+nested: Doctrine\ORM\PersistentCollection {#4035 …}
+votes: Doctrine\ORM\PersistentCollection {#4033 …}
+reports: Doctrine\ORM\PersistentCollection {#4031 …}
+favourites: Doctrine\ORM\PersistentCollection {#3999 …}
+notifications: Doctrine\ORM\PersistentCollection {#4003 …}
-id: 335247
-bodyTs: "'/etc/pam.d/doas':28 '/nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so':31 '/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':102 '11400':34 'add':24,71 'arbitrari':72 'around':5 'auth':29 'case':78 'dig':4 'doesn':53 'edit':35 'file':57,76 'fprintd':32 'full':44 'github.com':101 'github.com/nixos/nixpkgs/blob/release-23.11/nixos/modules/security/pam.nix);':100 'implement':93 'isn':84 'know':68 'line':26 'machin':22 'manual':8 'map':86 'might':104 'necessari':50 'nixo':39,52,89 'note':36 'option':13,40,73,90,97 'order':33 'pam':75,96 'pam_fprintd.so':47 'path':45,60 'put':41,55 'research':64 'run':80 'search':59 'security.pam.services.doas.fprintauth':18 'seem':15 'someth':82,106 'suffici':30 'test':11 'true':19 'without':61 'work':17,111 'would':110 'yet':91"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/2189342"
+editedAt: DateTimeImmutable @1728075318 {#3985
date: 2024-10-04 22:55:18.0 +02:00
}
+createdAt: DateTimeImmutable @1706046595 {#4048
date: 2024-01-23 22:49:55.0 +01:00
}
}
+root: App\Entity\EntryComment {#4039}
+body: """
Arbitrary options are internal so are not shown in the options search. They’re at security.pam.services.<name>.rules.\n
\n
Here’s the options that get added using the public options including fprintAuth: [github.com/NixOS/nixpkgs/blob/…/pam.nix#L621](https://github.com/NixOS/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#L621)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 7
+score: 0
+lastActive: DateTime @1706047327 {#4110
date: 2024-01-23 23:02:07.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@hallettj@beehaw.org"
]
+children: Doctrine\ORM\PersistentCollection {#4113 …}
+nested: Doctrine\ORM\PersistentCollection {#4115 …}
+votes: Doctrine\ORM\PersistentCollection {#4117 …}
+reports: Doctrine\ORM\PersistentCollection {#4119 …}
+favourites: Doctrine\ORM\PersistentCollection {#4121 …}
+notifications: Doctrine\ORM\PersistentCollection {#4123 …}
-id: 335271
-bodyTs: "'/nixos/nixpkgs/blob/':34 '/nixos/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#l621)':39 '/pam.nix':35 'ad':25 'arbitrari':1 'fprintauth':31 'get':24 'github.com':33,38 'github.com/nixos/nixpkgs/blob/':32 'github.com/nixos/nixpkgs/blob/20d2649068508ea15323d8a7a9cbd3ddfd997103/nixos/modules/security/pam.nix#l621)':37 'includ':30 'intern':4 'l621':36 'name':17 'option':2,11,22,29 'public':28 're':14 'rule':18 'search':12 'security.pam.services':16 'shown':8 'use':26"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://discuss.tchncs.de/comment/6750552"
+editedAt: null
+createdAt: DateTimeImmutable @1706047327 {#4109
date: 2024-01-23 23:02:07.0 +01:00
}
}
+root: App\Entity\EntryComment {#4039}
+body: """
Although they’re not in the search, they are in the [manual](https://nixos.org/manual/nixos/stable/options) so you can find them searching that page. This one is listed as,\n
\n
```\n
\n
<span style="color:#323232;">security.pam.services..fprintAuth\n
</span>\n
```\n
\n
But it does take some inferences to find this, and to realize that you can put `doas` in place of ``
"""
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1706053485 {#4147
date: 2024-01-24 00:44:45.0 +01:00
}
+ip: null
+tags: [
"323232"
]
+mentions: [
"@wwwgem@lemmy.ml"
"@hallettj@beehaw.org"
"@2xsaiko@discuss.tchncs.de"
]
+children: Doctrine\ORM\PersistentCollection {#4150 …}
+nested: Doctrine\ORM\PersistentCollection {#4152 …}
+votes: Doctrine\ORM\PersistentCollection {#4154 …}
+reports: Doctrine\ORM\PersistentCollection {#4156 …}
+favourites: Doctrine\ORM\PersistentCollection {#4158 …}
+notifications: Doctrine\ORM\PersistentCollection {#4160 …}
-id: 335491
-bodyTs: "'/manual/nixos/stable/options)':15 'although':1 'doa':47 'find':19,38 'fprintauth':30 'infer':36 'list':27 'manual':12 'nixos.org':14 'nixos.org/manual/nixos/stable/options)':13 'one':25 'page':23 'place':49 'put':46 're':3 'realiz':42 'search':7,21 'security.pam.services':29 'take':34"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://beehaw.org/comment/2189959"
+editedAt: null
+createdAt: DateTimeImmutable @1706053485 {#4148
date: 2024-01-24 00:44:45.0 +01:00
}
}
+root: App\Entity\EntryComment {#4039}
+body: "As I said I’ve actually done it before asking… But I didn’t reboot and and that was needed for the change to take effect ¯\_(ツ)_/¯"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706054550 {#4199
date: 2024-01-24 01:02:30.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@hallettj@beehaw.org"
"@2xsaiko@discuss.tchncs.de"
]
+children: Doctrine\ORM\PersistentCollection {#4202 …}
+nested: Doctrine\ORM\PersistentCollection {#4204 …}
+votes: Doctrine\ORM\PersistentCollection {#4206 …}
+reports: Doctrine\ORM\PersistentCollection {#4208 …}
+favourites: Doctrine\ORM\PersistentCollection {#4210 …}
+notifications: Doctrine\ORM\PersistentCollection {#4212 …}
-id: 335528
-bodyTs: "'actual':6 'ask':10 'chang':23 'didn':13 'done':7 'effect':26 'need':20 'reboot':15 'said':3 'take':25 've':5 'ツ':27"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7664504"
+editedAt: null
+createdAt: DateTimeImmutable @1706054550 {#4200
date: 2024-01-24 01:02:30.0 +01:00
}
} |
|
Show voter details
|
37 |
DENIED
|
edit
|
App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
} |
|
Show voter details
|