huh
This commit is contained in:
parent
254c963998
commit
63398d5b19
5 changed files with 26 additions and 6 deletions
21
flake.nix
21
flake.nix
|
|
@ -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
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
2
modules/home-manager/default.nix
Normal file
2
modules/home-manager/default.nix
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
{
|
||||
}
|
||||
2
modules/nixos/default.nix
Normal file
2
modules/nixos/default.nix
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
{
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue