nix: refactored configuration

This commit is contained in:
Léana 江 2024-05-10 14:24:26 +02:00 committed by Léana 江
parent 930881a355
commit e133fc127e
5 changed files with 16 additions and 24 deletions

View file

@ -1,50 +0,0 @@
{
mkDarwins,
mkHomeManagers,
mkNixOSes,
...
}:
{
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;
};
};
};
};
}