treewide: ./{darwin,nixos}/hosts -> ./hosts

This commit is contained in:
Guanran Wang 2024-01-31 10:44:15 +08:00
parent bd26cbe0a6
commit f5bb0f2b60
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8
7 changed files with 27 additions and 25 deletions

View file

@ -7,12 +7,14 @@ It just works™
```
 .
│ # Darwin configuration is not actively maintained and sometimes it might break.
├── 󱂵 home
├──  darwin
├──  nixos
│ ├──  hosts
│ ├──  modules
│ └──  profiles
├──  hosts
├──  flake.nix
├──  flake.lock

View file

@ -182,12 +182,12 @@
### NixOS
nixosConfigurations = {
"Aristotle" = mkNixOS "x86_64-linux" [./nixos/hosts/Aristotle];
"Aristotle" = mkNixOS "x86_64-linux" [./hosts/Aristotle];
};
### Darwin
darwinConfigurations = {
"Plato" = mkDarwin "x86_64-darwin" [./darwin/hosts/Plato];
"Plato" = mkDarwin "x86_64-darwin" [./hosts/Plato];
};
};
}

View file

@ -0,0 +1,20 @@
{...}: {
imports = [
# OS
../../nixos/profiles/laptop
../../nixos/profiles/common/opt-in/zram-generator.nix
../../nixos/profiles/common/opt-in/clash-meta-client
../../nixos/profiles/common/opt-in/gaming
../../nixos/profiles/common/opt-in/torrenting
# Hardware
./hardware-configuration.nix
../../nixos/profiles/common/opt-in/lanzaboote.nix
../../nixos/profiles/common/opt-in/impermanence.nix
../../nixos/profiles/common/opt-in/disko.nix
];
networking.hostName = "Aristotle";
time.timeZone = "Asia/Shanghai";
_module.args.disks = ["/dev/nvme0n1"]; # Disko
}

View file

@ -1,8 +1,8 @@
# iMac 18,3 (2017)
{...}: {
imports = [
../../profiles/desktop
../../profiles/common/opt-in/clash-meta-client.nix
../../darwin/profiles/desktop
../../darwin/profiles/common/opt-in/clash-meta-client.nix
./hardware-configuration.nix
];

View file

@ -1,20 +0,0 @@
{...}: {
imports = [
# OS
../../profiles/laptop
../../profiles/common/opt-in/zram-generator.nix
../../profiles/common/opt-in/clash-meta-client
../../profiles/common/opt-in/gaming
../../profiles/common/opt-in/torrenting
# Hardware
./hardware-configuration.nix
../../profiles/common/opt-in/lanzaboote.nix
../../profiles/common/opt-in/impermanence.nix
../../profiles/common/opt-in/disko.nix
];
networking.hostName = "Aristotle";
time.timeZone = "Asia/Shanghai";
_module.args.disks = ["/dev/nvme0n1"]; # Disko
}