This commit is contained in:
LunarAkai 2025-03-14 17:06:05 +01:00
commit 63398d5b19
5 changed files with 26 additions and 6 deletions

View file

@ -22,10 +22,16 @@
nvf,
alejandra,
...
} @ inputs: {
} @ inputs: let
inherit (self) outputs;
in {
# use "nixos", or your hostname as the name of the configuration
# it's a better practice than "default" shown in the video
nixosModules = import ./modules/nixos;
homeManagerModules = import ./modules/home-manager;
packages."x86_64-linux".default =
(nvf.lib.neovimConfiguration {
pkgs = nixpkgs.legacyPackages."x86_64-linux";
@ -34,7 +40,7 @@
.neovim;
nixosConfigurations = {
nixos = nixpkgs.lib.nixosSystem {
hummingbird = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;};
modules = [
{
@ -42,11 +48,20 @@
}
./hosts/hummingbird/configuration.nix
inputs.home-manager.nixosModules.default
nvf.nixosModules.default
./nvf-configuration.nix
];
};
};
homeConfigurations = {
"luna@hummingbird" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages."x86_64-linux";
extraSpecialArgs = {inherit inputs outputs;};
modules = [
./home-manager/hummingbird/home.nix
];
};
};
};
}

View file

@ -11,7 +11,7 @@
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
inputs.home-manager.nixosModules.default
#inputs.home-manager.nixosModules.default
];
# Bootloader.
@ -19,9 +19,10 @@
boot.loader.efi.canTouchEfiVariables = true;
# mask dev-tpmrm0.device
systemd.services.dev-tpmrm0.wantedBy = lib.mkForce [];
#systemd.services.dev-tpmrm0.wantedBy = lib.mkForce [];
systemd.units."dev-tpmrm0.device".enable = false;
networking.hostName = "nixos"; # Define your hostname.
networking.hostName = "hummingbird"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# flakes

View file

@ -0,0 +1,2 @@
{
}

View file

@ -0,0 +1,2 @@
{
}