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, nvf,
alejandra, alejandra,
... ...
} @ inputs: { } @ inputs: let
inherit (self) outputs;
in {
# use "nixos", or your hostname as the name of the configuration # use "nixos", or your hostname as the name of the configuration
# it's a better practice than "default" shown in the video # 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 = packages."x86_64-linux".default =
(nvf.lib.neovimConfiguration { (nvf.lib.neovimConfiguration {
pkgs = nixpkgs.legacyPackages."x86_64-linux"; pkgs = nixpkgs.legacyPackages."x86_64-linux";
@ -34,7 +40,7 @@
.neovim; .neovim;
nixosConfigurations = { nixosConfigurations = {
nixos = nixpkgs.lib.nixosSystem { hummingbird = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;}; specialArgs = {inherit inputs;};
modules = [ modules = [
{ {
@ -42,11 +48,20 @@
} }
./hosts/hummingbird/configuration.nix ./hosts/hummingbird/configuration.nix
inputs.home-manager.nixosModules.default
nvf.nixosModules.default nvf.nixosModules.default
./nvf-configuration.nix ./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 = [ imports = [
# Include the results of the hardware scan. # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
inputs.home-manager.nixosModules.default #inputs.home-manager.nixosModules.default
]; ];
# Bootloader. # Bootloader.
@ -19,9 +19,10 @@
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
# mask dev-tpmrm0.device # 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. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# flakes # flakes

View file

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

View file

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