move old nixos-config over here

This commit is contained in:
Daniel Lundin 2024-08-02 14:09:42 +02:00
parent 346d80ae7e
commit 54baace7c1
No known key found for this signature in database
35 changed files with 850 additions and 44 deletions

View file

@ -12,6 +12,7 @@
{
self,
nixpkgs,
colmena,
home-manager,
...
}@inputs:
@ -21,18 +22,27 @@
mkHome =
modules:
home-manager.lib.homeManagerConfiguration {
modules = [ ./common ] ++ modules;
modules = [ ./home/common ] ++ modules;
pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = {
inherit inputs outputs;
};
};
mkHost =
modules:
nixpkgs.lib.nixosSystem {
specialArgs = {
inherit inputs outputs;
};
system = "x86_64-linux";
modules = [ ./common ] ++ modules;
};
supportedSystems = [
"x86_64-linux"
"aarch64-linux"
];
forEachSystem =
f:
builtins.listToAttrs (
@ -58,14 +68,19 @@
devShells = forEachSystem' (
{ system, pkgs, ... }:
{
default = pkgs.mkShell { packages = [ pkgs.just ]; };
default = pkgs.mkShell { packages = [ pkgs.colmena ]; };
}
);
homeConfigurations = {
"dln@dinky" = mkHome [ ./users/dln/dinky.nix ];
"dln@nemo" = mkHome [ ./users/dln/nemo.nix ];
"lsjostro@nemo" = mkHome [ ./users/lsjostro/nemo.nix ];
"dln@dinky" = mkHome [ ./home/dln/dinky.nix ];
"dln@nemo" = mkHome [ ./home/dln/nemo.nix ];
"lsjostro@nemo" = mkHome [ ./home/lsjostro/nemo.nix ];
};
nixosConfigurations = {
dinky = mkHost [ ./hosts/dinky ];
nemo = mkHost [ ./hosts/nemo ];
};
};