parent
8580f19c5f
commit
74dda4d72b
7 changed files with 91 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;
|
||||
|
|
5
modules/net/README.md
Normal file
5
modules/net/README.md
Normal 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
9
modules/net/default.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./blue # Bluetooth
|
||||
./wifi # Wireless
|
||||
./wire # Ethernet
|
||||
];
|
||||
}
|
Loading…
Reference in a new issue