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,
|
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
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
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