WIP: Switch to NixOS #5

Draft
FunctionalHacker wants to merge 1349 commits from nix into main
2 changed files with 15 additions and 5 deletions
Showing only changes of commit e609f8c68a - Show all commits

View file

@ -21,18 +21,19 @@
configureNixSystem = hostname: nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
# Host specific configuration
./hosts/${hostname}/configuration.nix
# Common settings for all hosts
({ pkgs, ... }: import ./nixos_common.nix
{ inherit inputs; inherit pkgs; })
# Host specific configuration
./hosts/${hostname}/configuration.nix
# home-manager
home-manager.nixosModules.home-manager
({ ... }: import ./home-manager.nix { inherit inputs; })
];
};
in
{
nixosConfigurations = {

View file

@ -1,4 +1,4 @@
{ ... }:
{ config, ... }:
{
imports = [
@ -8,5 +8,14 @@
networking.hostName = "Shire";
# TODO
boot = {
kernelParams = config.boot.kernelParams ++ [
"intel_idle.max_cstate=1"
];
initrd.unl0kr.enable = true;
# Does not work with unl0kr now
# https://github.com/NixOS/nixpkgs/issues/291935
plymouth.enable = false;
};
}