Skip to content

Commit

Permalink
user group fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
atropos112 committed Sep 3, 2024
1 parent bdd75f7 commit fc01fe4
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/amd64_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,4 @@ jobs:
run: |
echo "Build failed, sending message to Matrix."
curl -X POST -F "body=Github action has failed for NixOS AMD64 Build for ${{ matrix.param }}. Go to ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} for details." "${{ secrets.EXIT_URL }}"
exit 1
1 change: 1 addition & 0 deletions .github/workflows/arm64_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,4 @@ jobs:
run: |
echo "Build failed, sending message to Matrix."
curl -X POST -F "body=Github action has failed for NixOS ARM64 Build for ${{ matrix.param }}. Go to ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} for details." "${{ secrets.EXIT_URL }}"
exit 1
37 changes: 33 additions & 4 deletions lib/common/identities/users.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,42 @@ in {
mutableUsers = false;

groups = {
plugdev = {};
};
atropos.gid = 1000;
msr.gid = 999;

nscd.gid = 998;
plugdev.gid = 997;
polkituser.gid = 996;
rtkit.gid = 995;
sshd.gid = 994;

groups.atropos = {
gid = 1000;
systemd-coredump.gid = 993;
systemd-oom.gid = 992;
networkmanager.gid = 57;
};

users = {
nm-iodine = {
uid = 999;
group = "networkmanager";
};
nscd = {
uid = 998;
group = "nscd";
};
sshd = {
uid = 994;
group = "sshd";
};
rtkit = {
uid = 995;
group = "rtkit";
};
systemd-oom = {
uid = 992;
group = "systemd-oom";
};

root = {
initialHashedPassword = lib.mkForce "$6$IHPb2KGAOorX1aT.$JIRXgxboZAAO/4pKl.L7Cgavn7tF1cUCiIk5z8sJrglwkcFYqPWhUxQ7zmynikVVyc6X5AMxQ5kz89Aqzoqgy1";
openssh = {
Expand All @@ -33,6 +61,7 @@ in {
];
};
};

atropos = {
isNormalUser = true;
uid = 1000;
Expand Down

0 comments on commit fc01fe4

Please sign in to comment.