feat: NixOS template for new users #33
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
Compat
Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
5 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: auxolotl/templates#33
Loading…
Reference in a new issue
No description provided.
Delete branch "new-user-templates"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is an overhaul of the NixOS system template meant to ease new users into the NixOS way of configuring systems.
aux.system
namespace for enabling/disabling common system features, like GPU drivers and desktop environments.Neat! I would mention that it is worth being extremely cautious introducing options, especially under the
aux
namespace. These are probably fine, but it is worth considering how things may shape up in the future and whether we will want certain option names/groups to be available.@ -4,1 +4,3 @@
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
inputs = {
# Import Auxolotl libs
auxlib.url = "https://git.auxolotl.org/auxolotl/labs/archive/main.tar.gz?dir=lib";
We probably don't want to be relying on anything in
labs
.Makes sense. I didn't expect these would be final, I just tried picking a namespace that I thought would be relatively safe. I can always go back and update this if needed.
@ -0,0 +20,4 @@
};
};
config = lib.mkMerge [
(lib.mkIf cfg.allowUnfree { nixpkgs.config.allowUnfree = true; })
we can avoid
lib.mkMerge
here sincecfg.allowUnfree
is a boolean we can set it directly toonixpkgs.config.allowUnfree
@ -0,0 +35,4 @@
pulse.enable = true;
jack.enable = true;
# Reduce audio latency per https://nixos.wiki/wiki/PipeWire#Low-latency_setup
If we reference the nix wiki we should use https://wiki.nixos.org/wiki/PipeWire#Low-latency_setup
This looks reasonable to me, if you've tested it then please feel free to merge - if not, I'll do so later
Also: please read up on conventional commits: it seems that you're using nonstandard things (e.g. bugfix rather than fix) and have missed stuff on some commits. If you can rebase this before merging, that would be awesome!
Will do! I found some other things in the meantime, so I'll switch this to WIP while getting all of that sorted out.
feat: NixOS template for new usersto WIP: feat: NixOS template for new users286052b183
to4eb943d047
4eb943d047
toc525e75d93
WIP: feat: NixOS template for new usersto feat: NixOS template for new usersRebasing is done! I clarified the scope of each commit, and filled in missing details.
f77f3d0cb8
Should be 2 separate commits, one which fixes the issue, and another that adds the features.cc4c0e307b (diff-0e9915e5a48567cae3374ca28f1e330e3e0c61aa)
Likely should not be here?7799a1630b
Should be 2 separate commitsc525e75d93
to2ad4895454
2ad4895454
to33efba78de
33efba78de
to8d2062bd74
8d2062bd74
to3b0a0ef579
@coded I did another pass and cleaned up the messy commits. How does this look?
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.