feat/add-loki #3

Merged
riley merged 2 commits from feat/add-loki into mistress 2022-01-23 16:03:32 +01:00
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; nixpkgs.config.allowUnfree = true;
security.rtkit.enable = true;
users.users."riley" = { users.users."riley" = {
isNormalUser = true; 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
];
}