mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
nix: remove old configurations
This removes darwin and home manager based configurations
This commit is contained in:
parent
598be74be3
commit
0c2b50e7a6
4 changed files with 0 additions and 151 deletions
|
|
@ -2,8 +2,6 @@
|
|||
inherit
|
||||
(self.lib)
|
||||
many
|
||||
mkDarwin
|
||||
mkHomeManager
|
||||
mkNixOS
|
||||
;
|
||||
|
||||
|
|
@ -100,90 +98,7 @@
|
|||
];
|
||||
in
|
||||
many (mkNixOS sharedModules);
|
||||
|
||||
mkDarwins = let
|
||||
sharedModules = {
|
||||
hostname,
|
||||
system,
|
||||
}: [
|
||||
{nixpkgs.hostPlatform = system;}
|
||||
nixpkgsConfig
|
||||
|
||||
self.darwinModules.commonModules
|
||||
self.darwinModules.${"named-" + hostname}
|
||||
or (abort ''
|
||||
Expects a named nix-darwin module corresponding to the nix-darwin Configuration.
|
||||
What you are doing doesn't make sense.
|
||||
'')
|
||||
|
||||
inputs.home-manager.darwinModules.home-manager
|
||||
{
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
extraSpecialArgs.hostname = hostname;
|
||||
users.leana.imports = [
|
||||
self.homeModules.commonModules
|
||||
self.homeModules.${"named-" + hostname}
|
||||
or (
|
||||
builtins.trace "No named home-manager configuration supplied for named nix-darwin config `${hostname}', defaulting to common modules."
|
||||
{}
|
||||
)
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
in
|
||||
many (mkDarwin sharedModules);
|
||||
|
||||
mkHomeManagers = let
|
||||
sharedModules = {hostname, ...}: [
|
||||
{programs.home-manager.enable = true;}
|
||||
nixpkgsConfig
|
||||
|
||||
self.homeModules.commonModules
|
||||
self.homeModules.${"named-" + hostname}
|
||||
or (
|
||||
builtins.trace "No named home-manager configuration supplied for named home-manager config `${hostname}', defaulting to common modules."
|
||||
self.homeModules.commonModules
|
||||
)
|
||||
];
|
||||
in
|
||||
many (
|
||||
args @ {system, ...}: let
|
||||
config = mkHomeManager sharedModules args;
|
||||
in
|
||||
config // {deploy = inputs.deploy-rs.lib.${system}.activate.home-manager config;}
|
||||
);
|
||||
in {
|
||||
darwinConfigurations = mkDarwins {
|
||||
# MacBook Pro 2021
|
||||
bismuth = {
|
||||
system = "aarch64-darwin";
|
||||
modules = [
|
||||
{
|
||||
home-manager.users.leana.imports = [
|
||||
self.homeModules.neovim-moreLangServers
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
# MacBook Air 2014
|
||||
tungsten.system = "x86_64-darwin";
|
||||
};
|
||||
|
||||
homeConfigurations = mkHomeManagers {
|
||||
# Oracle cloud
|
||||
oracle.system = "aarch64-linux";
|
||||
# Inria (2024)
|
||||
mertensia = {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
self.homeModules.neovim-moreLangServers
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
nixosConfigurations = let
|
||||
systemConfigs = {
|
||||
# Thinkpad
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue