-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: readme, add files for structure and test import
- Loading branch information
Showing
10 changed files
with
32 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,33 @@ | ||
# nix-base | ||
|
||
My public nix base configuration (Mac+Linux) i use in my private personal and work configurations. | ||
My public nix base configuration (Mac+Linux) i use in my personal and work configurations. | ||
|
||
## Usage | ||
|
||
Import with: | ||
|
||
```nix | ||
inputs = { | ||
# rest of your inputs | ||
# custom inputs | ||
base.url = "github:ojsef39/nix-base"; | ||
}; | ||
``` | ||
|
||
Use like: | ||
|
||
```nix | ||
outputs = { self, nixpkgs, darwin, home-manager, base }: { | ||
outputs = { self, base }: { | ||
darwinConfigurations = { | ||
"mac" = darwin.lib.darwinSystem { | ||
"mac" = base.inputs.darwin.lib.darwinSystem { | ||
system = "aarch64-darwin"; # or x86_64-darwin | ||
modules = [ | ||
base.sharedModules | ||
base.macModules | ||
# Custom Mac-specific shell customizations | ||
{ | ||
``` | ||
|
||
## Folder Structure | ||
|
||
See example: <https://github.com/ojsef39/nix-personal> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
{ pkgs, ... }: | ||
|
||
{ | ||
nix.settings = { | ||
# enable flakes globally | ||
experimental-features = ["nix-command" "flakes"]; | ||
}; | ||
|
||
|
||
nixpkgs.config.allowBroken = true; | ||
|
||
# TODO: Idk why this has to be set to 5 | ||
system.stateVersion = 5; | ||
|
||
# Auto upgrade nix package and the daemon service. | ||
services.nix-daemon.enable = true; | ||
nix.package = pkgs.nix; | ||
} |