mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 20:39:18 -08:00
56 lines
904 B
Nix
56 lines
904 B
Nix
{ meta, config, pkgs, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
# Imports
|
|
|
|
imports = with meta; [
|
|
hardware.eeepc-1015pem
|
|
hardware.local
|
|
nixos.network
|
|
nixos.arc
|
|
services.kattv
|
|
services.dnscrypt-proxy
|
|
];
|
|
|
|
# File Systems and Swap
|
|
|
|
fileSystems = {
|
|
"/" = {
|
|
device = "/dev/disk/by-uuid/469a684b-eb8f-48a8-8f98-be58528312c4";
|
|
fsType = "ext4";
|
|
};
|
|
};
|
|
|
|
swapDevices = [{ device = "/dev/disk/by-uuid/2223e305-79c9-45b3-90d7-560dcc45775a"; }];
|
|
|
|
# Bootloader
|
|
|
|
boot.loader.grub = {
|
|
enable = true;
|
|
version = 2;
|
|
device = "/dev/sda";
|
|
};
|
|
|
|
# Hardware
|
|
|
|
services.logind.lidSwitchExternalPower = "ignore";
|
|
|
|
# Networking
|
|
|
|
networking = {
|
|
hostId = "9f89b327";
|
|
useDHCP = false;
|
|
interfaces.enp1s0.useDHCP = true;
|
|
};
|
|
|
|
networks.chitei = {
|
|
interfaces = [ "enp1s0" ];
|
|
ipv4 = "192.168.1.215";
|
|
};
|
|
|
|
# State
|
|
|
|
system.stateVersion = "20.09";
|
|
}
|