feat/add-loki (#3)

Reviewed-on: #3
This commit is contained in:
Riley Apeldoorn 2022-01-23 16:03:31 +01:00
parent 8580f19c5f
commit 74dda4d72b
7 changed files with 91 additions and 0 deletions

3
machines/loki/README.md Normal file
View file

@ -0,0 +1,3 @@
# Loki
Loki is my main laptop.

View 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 ];
};
};
};
}

View 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
View file

@ -0,0 +1,3 @@
# Thor
Thor is my main desktop machine.

View file

@ -177,6 +177,7 @@ let named = submodule {
};
nixpkgs.config.allowUnfree = true;
security.rtkit.enable = true;
users.users."riley" = {
isNormalUser = true;

5
modules/net/README.md Normal file
View file

@ -0,0 +1,5 @@
# `net` module
The `net` module defines an extended configuration interface for
networking: wifi (`net/wifi`), ethernet (`net/wire`) and bluetooth
(`net/blue`).

9
modules/net/default.nix Normal file
View file

@ -0,0 +1,9 @@
{ config, pkgs, lib, ... }:
{
imports = [
./blue # Bluetooth
./wifi # Wireless
./wire # Ethernet
];
}