mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
nix: refactored configuration
This commit is contained in:
parent
930881a355
commit
e133fc127e
5 changed files with 16 additions and 24 deletions
52
nix/configurations/default.nix
Normal file
52
nix/configurations/default.nix
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
{
|
||||
mkDarwins,
|
||||
mkHomeManagers,
|
||||
mkNixOSes,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [ ./combinators.nix ];
|
||||
|
||||
flake = {
|
||||
darwinConfigurations = mkDarwins {
|
||||
# MacBook Pro 2021
|
||||
bismuth = {
|
||||
system = "aarch64-darwin";
|
||||
settings = {
|
||||
extraLanguageServers.enable = true;
|
||||
extraUtils.enable = true;
|
||||
cmus.enable = true;
|
||||
universityTools.enable = true;
|
||||
git.signCommits = true;
|
||||
};
|
||||
};
|
||||
# MacBook Air 2014
|
||||
tungsten = {
|
||||
system = "x86_64-darwin";
|
||||
settings.cmus.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
homeConfigurations = mkHomeManagers {
|
||||
# Raspberry Pi 4
|
||||
hydrogen.system = "aarch64-linux";
|
||||
# Oracle cloud
|
||||
oracle.system = "aarch64-linux";
|
||||
# Linode
|
||||
linode.system = "x86_64-linux";
|
||||
};
|
||||
|
||||
nixosConfigurations = mkNixOSes {
|
||||
# Thinkpad
|
||||
carbon = {
|
||||
system = "x86_64-linux";
|
||||
settings = {
|
||||
extraLanguageServers.enable = true;
|
||||
extraUtils.enable = true;
|
||||
cmus.enable = true;
|
||||
universityTools.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue