Remove useless code for archetypes

This commit is contained in:
Charlotte 🦝 Delenk 2023-01-27 11:14:44 +01:00
parent 1f0b359ad2
commit 07ce079632
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
4 changed files with 0 additions and 153 deletions

View file

@ -1,15 +0,0 @@
{
imports = [
./desktop.nix
./systemd-boot.nix
];
fileSystems."/" = {
device = "tank/local/root";
fsType = "zfs";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/6557-C4A0";
fsType = "vfat";
};
}

View file

@ -1,15 +0,0 @@
{
imports = [
./server.nix
./systemd-boot.nix
];
fileSystems."/" = {
device = "tank/local/root";
fsType = "zfs";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/6557-C4A0";
fsType = "vfat";
};
}

View file

@ -87,9 +87,4 @@
path = "/home/darkkirb/.ssh/builder_id_ed25519";
};
networking.nameservers = ["fd0d:a262:1fa6:e621:b4e1:08ff:e658:6f49" "fd0d:a262:1fa6:e621:746d:4523:5c04:1453"];
# Archetype configuration
networking.hostName = lib.mkDefault "nixos";
networking.hostId = lib.mkDefault "00000000";
networking.wireguard.interfaces."wg0".ips = lib.mkDefault ["fd0d:a262:1fa6:e621::/64"];
}

118
flake.nix
View file

@ -118,21 +118,6 @@ rec {
name = "instance-20221213-1915"; # Oracle server
system = "aarch64-linux";
}
{
name = "server-x86_64"; # archetype
system = "x86_64-linux";
configName = "archetype-server";
}
{
name = "server-aarch64"; # archetype
system = "aarch64-linux";
configName = "archetype-server";
}
{
name = "desktop-x86_64"; # archetype
system = "x86_64-linux";
configName = "archetype-desktop";
}
];
in rec {
nixosConfigurations = builtins.listToAttrs (map
@ -194,108 +179,6 @@ rec {
];
};
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.alejandra;
homeConfigurations = builtins.listToAttrs (nixpkgs.lib.foldr (a: b: a ++ b) [] (map (system: let
pkgs = import nixpkgs {
inherit system;
overlays = [
self.overlays.${system}
nur.overlay
args.prismmc.overlay
];
config.allowUnfree = true;
};
in [
{
name = "base-${system}";
value = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
(import ./config/home-manager/base.nix false)
{
home.username = "base";
home.homeDirectory = "/home/base";
}
];
extraSpecialArgs = args // {inherit system;};
};
}
{
name = "base-desktop-${system}";
value = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
(import ./config/home-manager/base.nix true)
{
home.username = "base";
home.homeDirectory = "/home/base";
}
];
extraSpecialArgs = args // {inherit system;};
};
}
{
name = "root-${system}";
value = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
./config/home-manager/root.nix
{
home.username = "root";
home.homeDirectory = "/root";
}
];
extraSpecialArgs = args // {inherit system;};
};
}
{
name = "darkkirb-${system}";
value = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
(import ./config/home-manager/darkkirb.nix {
desktop = false;
args = {};
})
{
home.username = "darkkirb";
home.homeDirectory = "/home/darkkirb";
}
];
extraSpecialArgs = args // {inherit system;};
};
}
{
name = "darkkirb-desktop-${system}";
value = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
(import ./config/home-manager/darkkirb.nix {
desktop = true;
args = {};
})
{
home.username = "darkkirb";
home.homeDirectory = "/home/darkkirb";
}
];
extraSpecialArgs = args // {inherit system;};
};
}
{
name = "miifox-${system}";
value = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
./config/home-manager/miifox.nix
{
home.username = "miifox";
home.homeDirectory = "/home/miifox";
}
];
extraSpecialArgs = args // {inherit system;};
};
}
]) ["x86_64-linux" "aarch64-linux"]));
hydraJobs =
(builtins.listToAttrs (map
({
@ -311,7 +194,6 @@ rec {
systems))
// {
inherit devShell;
homeConfigurations = nixpkgs.lib.mapAttrs (_: v: v.activationPackage) self.homeConfigurations;
# Uncomment the line to build an installer image
# This is EXTREMELY LARGE and will make builds take forever
# installer.x86_64-linux = nixosConfigurations.installer.config.system.build.isoImage;