mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
Refactor using flake-parts (#4)
Reviewed-on: https://git.earth2077.fr/leana/.files/pulls/4 Co-authored-by: Léana 江 <leana.jiang@icloud.com> Co-committed-by: Léana 江 <leana.jiang@icloud.com>
This commit is contained in:
parent
06f76e0a37
commit
db5aaa5811
17 changed files with 343 additions and 294 deletions
50
nix/lib/configurations.nix
Normal file
50
nix/lib/configurations.nix
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
{
|
||||
mkDarwins,
|
||||
mkHomeManagers,
|
||||
mkNixOSes,
|
||||
...
|
||||
}:
|
||||
{
|
||||
config.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