mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-13 03:37:18 +00:00
Disables flake-parts/nixos/modules.nix autoloading
This commit is contained in:
parent
2ed67013bd
commit
d5528d06bd
3 changed files with 21 additions and 27 deletions
|
@ -4,7 +4,7 @@
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
flake = {
|
flake = {
|
||||||
nixosModules.base = {...}: {
|
nixosModules.base = {config, ...}: {
|
||||||
imports = [
|
imports = [
|
||||||
../../nixos/profiles/common.nix
|
../../nixos/profiles/common.nix
|
||||||
../../nixos/profiles/linux/base.nix
|
../../nixos/profiles/linux/base.nix
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
home-manager.users.willem = self.homeManagerModules.user-willem-linux;
|
home-manager.users.willem = self.homeManagerModules.user-willem-linux;
|
||||||
};
|
};
|
||||||
|
|
||||||
nixosModules.willem-home = {...}: {
|
nixosModules.willem-home = {config, ...}: {
|
||||||
imports = [
|
imports = [
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
self.nixosModules.home-manager-integration
|
self.nixosModules.home-manager-integration
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
home-manager.users.willem = self.homeManagerModules.user-willem-linux;
|
home-manager.users.willem = self.homeManagerModules.user-willem-linux;
|
||||||
};
|
};
|
||||||
|
|
||||||
darwinModules.base = {...}: {
|
darwinModules.base = {config, ...}: {
|
||||||
imports = [
|
imports = [
|
||||||
../../nixos/profiles/common.nix
|
../../nixos/profiles/common.nix
|
||||||
inputs.home-manager.darwinModules.home-manager
|
inputs.home-manager.darwinModules.home-manager
|
||||||
|
|
|
@ -7,31 +7,25 @@
|
||||||
inputs,
|
inputs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
flake.nixosModules = let
|
flake.nixosModules = {
|
||||||
modules = self.lib.importDirToAttrs ../../nixos/modules;
|
default = {};
|
||||||
in
|
|
||||||
{
|
|
||||||
default = {
|
|
||||||
imports = builtins.attrValues modules;
|
|
||||||
};
|
|
||||||
|
|
||||||
appleSilicon = {config, ...}: {
|
appleSilicon = {config, ...}: {
|
||||||
imports = [inputs.nixos-apple-silicon.nixosModules.apple-silicon-support];
|
imports = [inputs.nixos-apple-silicon.nixosModules.apple-silicon-support];
|
||||||
nixpkgs.overlays = [inputs.nixos-apple-silicon.overlays.default];
|
nixpkgs.overlays = [inputs.nixos-apple-silicon.overlays.default];
|
||||||
};
|
};
|
||||||
|
|
||||||
nixpkgs-useFlakeNixpkgs = {
|
nixpkgs-useFlakeNixpkgs = {
|
||||||
nix.nixPath = ["nixpkgs=${inputs.nixpkgs}"];
|
nix.nixPath = ["nixpkgs=${inputs.nixpkgs}"];
|
||||||
nix.registry.nixpkgs.flake = inputs.nixpkgs;
|
nix.registry.nixpkgs.flake = inputs.nixpkgs;
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager-integration = {
|
home-manager-integration = {
|
||||||
config.home-manager = {
|
config.home-manager = {
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
backupFileExtension = "bak";
|
backupFileExtension = "bak";
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
// modules;
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
users.users.willem = {
|
users.users.willem = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = ["networkmanager" "wheel"];
|
extraGroups = ["networkmanager" "wheel" "video" "udev"];
|
||||||
openssh.authorizedKeys.keys = [
|
openssh.authorizedKeys.keys = [
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBx1z962nl87rmOk/vw3EBSgqU/VlCqON8zTeLHQcSBp willem@zeus"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBx1z962nl87rmOk/vw3EBSgqU/VlCqON8zTeLHQcSBp willem@zeus"
|
||||||
];
|
];
|
||||||
|
|
Loading…
Add table
Reference in a new issue