[loki]: Add loki machine config
This commit is contained in:
parent
8580f19c5f
commit
af241e254d
5 changed files with 77 additions and 0 deletions
3
machines/loki/README.md
Normal file
3
machines/loki/README.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Loki
|
||||
|
||||
Loki is my main laptop.
|
43
machines/loki/configuration.nix
Normal file
43
machines/loki/configuration.nix
Normal file
|
@ -0,0 +1,43 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../../modules
|
||||
];
|
||||
|
||||
riley = {
|
||||
gui = true;
|
||||
ide = true;
|
||||
};
|
||||
|
||||
networking = {
|
||||
hostName = "loki";
|
||||
interfaces.wlp6s0.useDHCP = true;
|
||||
};
|
||||
|
||||
devices = {
|
||||
audio = {
|
||||
|
||||
speakers = "";
|
||||
external = "";
|
||||
headset = "";
|
||||
|
||||
# Inputs
|
||||
main-mic = "";
|
||||
|
||||
};
|
||||
|
||||
video.displays = {
|
||||
|
||||
# Internal display
|
||||
"eDP-1" = {
|
||||
primary = true;
|
||||
position = [ 0 0 ];
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
|
||||
};
|
||||
}
|
27
machines/loki/hardware-configuration.nix
Normal file
27
machines/loki/hardware-configuration.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
||||
boot.initrd.kernelModules = [];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [];
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/d5da56b4-936b-419b-b596-fb255dfb1337";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/9AAC-99AC";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
swapDevices = [];
|
||||
|
||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||
hardware.video.hidpi.enable = lib.mkDefault true;
|
||||
}
|
3
machines/thor/README.md
Normal file
3
machines/thor/README.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Thor
|
||||
|
||||
Thor is my main desktop machine.
|
|
@ -177,6 +177,7 @@ let named = submodule {
|
|||
};
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
security.rtkit.enable = true;
|
||||
|
||||
users.users."riley" = {
|
||||
isNormalUser = true;
|
||||
|
|
Loading…
Reference in a new issue