WIP: Switch to NixOS #5
2 changed files with 15 additions and 5 deletions
|
@ -21,18 +21,19 @@
|
||||||
configureNixSystem = hostname: nixpkgs.lib.nixosSystem {
|
configureNixSystem = hostname: nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
# Host specific configuration
|
|
||||||
./hosts/${hostname}/configuration.nix
|
|
||||||
|
|
||||||
# Common settings for all hosts
|
# Common settings for all hosts
|
||||||
({ pkgs, ... }: import ./nixos_common.nix
|
({ pkgs, ... }: import ./nixos_common.nix
|
||||||
{ inherit inputs; inherit pkgs; })
|
{ inherit inputs; inherit pkgs; })
|
||||||
|
|
||||||
|
# Host specific configuration
|
||||||
|
./hosts/${hostname}/configuration.nix
|
||||||
|
|
||||||
# home-manager
|
# home-manager
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
({ ... }: import ./home-manager.nix { inherit inputs; })
|
({ ... }: import ./home-manager.nix { inherit inputs; })
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ ... }:
|
{ config, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
@ -8,5 +8,14 @@
|
||||||
|
|
||||||
networking.hostName = "Shire";
|
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;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue