mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2026-04-14 21:29:12 +02:00
feat[server]: first working microvm
This commit is contained in:
parent
a7cca50ff7
commit
c39cbed1cf
40 changed files with 759 additions and 194 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ self, lib, config, outputs, globals, ... }:
|
||||
{ self, lib, config, outputs, globals, withHomeManager, ... }:
|
||||
let
|
||||
macUser = globals.user.work;
|
||||
in
|
||||
|
|
@ -7,20 +7,22 @@ in
|
|||
];
|
||||
|
||||
options.swarselmodules.optional.darwin = lib.mkEnableOption "optional darwin settings";
|
||||
config = lib.mkIf config.swarselmodules.optional.darwin {
|
||||
nix.settings.experimental-features = "nix-command flakes";
|
||||
nixpkgs = {
|
||||
hostPlatform = "x86_64-darwin";
|
||||
overlays = [ outputs.overlays.default ];
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
config = lib.mkIf config.swarselmodules.optional.darwin
|
||||
{
|
||||
nix.settings.experimental-features = "nix-command flakes";
|
||||
nixpkgs = {
|
||||
hostPlatform = "x86_64-darwin";
|
||||
overlays = [ outputs.overlays.default ];
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
system.stateVersion = 4;
|
||||
} // lib.optionalAttrs withHomeManager {
|
||||
home-manager.users."${macUser}".imports = [
|
||||
"${self}/modules/home/darwin"
|
||||
];
|
||||
|
||||
system.stateVersion = 4;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue