-
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.
refactor: phase1 modularizing the host config for workplace
Following the great example of gh/Misterio77, I start to split out the host configuration of the workplace into a `common/core` part, present on all systems and a `common/optional` part, to include only on selected modules. In difference to Misterio77 repo, I do not only manage Linux systems, but darwin as well. Therefore this repo will also have a `common/darwin` folder.
- Loading branch information
Showing
6 changed files
with
89 additions
and
63 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
pkgs, | ||
inputs, | ||
... | ||
}: { | ||
imports = [ | ||
./nix.nix | ||
./fonts.nix | ||
]; | ||
|
||
environment = { | ||
systemPackages = [ | ||
pkgs.coreutils | ||
pkgs.neovim-unwrapped | ||
pkgs.git | ||
]; | ||
|
||
shells = [ | ||
pkgs.bash | ||
pkgs.zsh | ||
]; | ||
}; | ||
|
||
programs.zsh = { | ||
enable = true; | ||
enableCompletion = true; | ||
}; | ||
|
||
home-manager.useGlobalPkgs = true; | ||
home-manager.useUserPackages = true; | ||
home-manager.extraSpecialArgs = { | ||
inherit pkgs inputs; | ||
}; | ||
} |
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,12 @@ | ||
{pkgs, ...}: { | ||
fonts = { | ||
packages = [ | ||
(pkgs.nerdfonts.override { | ||
fonts = [ | ||
"JetBrainsMono" | ||
"Meslo" | ||
]; | ||
}) | ||
]; | ||
}; | ||
} |
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,33 @@ | ||
{...}: { | ||
nix = { | ||
# package = pkgs.nixVersions.nix_2_16; | ||
checkConfig = true; | ||
configureBuildUsers = true; | ||
settings = { | ||
# Necessary for using flakes on this system. | ||
experimental-features = [ | ||
"nix-command" | ||
"flakes" | ||
]; | ||
allowed-users = [ | ||
"@admin" | ||
]; | ||
# disable it, enabling leads to some symlink problems | ||
# on macOS | ||
auto-optimise-store = false; | ||
cores = 6; | ||
extra-sandbox-paths = []; | ||
max-jobs = "auto"; | ||
require-sigs = true; | ||
sandbox = false; | ||
# substituters = []; | ||
# trusted-public-keys = []; | ||
trusted-users = [ | ||
"@admin" | ||
]; | ||
}; | ||
}; | ||
|
||
# Auto upgrade nix package and the daemon service. | ||
services.nix-daemon.enable = true; | ||
} |
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,3 @@ | ||
{...}: { | ||
environment.systemPath = ["/opt/homebrew/bin"]; | ||
} |
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,3 @@ | ||
{config, ...}: { | ||
home-manager.users.refnode = import ../../../../users/refnode/default.nix; | ||
} |
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