summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2022-03-13 23:15:41 +0100
committerJulian T <julian@jtle.dk>2022-03-13 23:15:56 +0100
commit122fb9a33ec133070a4d0c9da34607b480e2a29e (patch)
tree720d9f34c33b2031a683863e37b81937ab02efae
parent2025ebe1d91525c69b4b7d486da3a5d2f4278617 (diff)
Add x230 config
-rw-r--r--core.nix6
-rw-r--r--desktop.nix2
-rw-r--r--pc_x230.nix54
3 files changed, 55 insertions, 7 deletions
diff --git a/core.nix b/core.nix
index 317a306..f8678d6 100644
--- a/core.nix
+++ b/core.nix
@@ -44,12 +44,6 @@
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
- # This value determines the NixOS release with which your system is to be
- # compatible, in order to avoid breaking some software such as database
- # servers. You should change this only after NixOS release notes say you
- # should.
- system.stateVersion = "21.05"; # Did you read the comment?
-
# List packages installed in system profile. To search, run:
# $ nix search wget
nixpkgs.config.allowUnfree = true;
diff --git a/desktop.nix b/desktop.nix
index a170eaf..e6a53f0 100644
--- a/desktop.nix
+++ b/desktop.nix
@@ -118,7 +118,7 @@
environment.systemPackages = with pkgs; [
# General stuff
- gnupg acpi gutenprint gutenprintBin
+ gnupg acpi gutenprint gutenprintBin termite rofi
# Nixos stuff
nox nix-index patchelf nix-prefetch-scripts
diff --git a/pc_x230.nix b/pc_x230.nix
new file mode 100644
index 0000000..247f2b1
--- /dev/null
+++ b/pc_x230.nix
@@ -0,0 +1,54 @@
+{ config, lib, pkgs, ... }:
+
+{
+ networking = {
+ hostName = "nixX230";
+
+ interfaces.enp2s25.useDHCP = true;
+ interfaces.wlp3s0.useDHCP = true;
+ };
+
+ networking = {
+ # We want to NAT container traffic
+ nat = {
+ enable = true;
+ internalInterfaces = [ "ve-test" ];
+ externalInterface = "wlp3s0";
+ };
+ };
+
+ boot = {
+ loader.grub = {
+ device = "/dev/disk/by-id/wwn-0x50026b7682847b8f";
+ enable = true;
+ };
+
+ initrd.luks.devices = {
+ lvmroot = {
+ device = "/dev/disk/by-uuid/676e4bca-b29f-4ec8-a701-59303489c402";
+ preLVM = true;
+ };
+ };
+ };
+
+ hardware = {
+ acpilight.enable = true;
+ };
+
+ services = {
+ tlp = {
+ enable = true;
+ settings = {
+ START_CHARGE_THRESH_BAT0 = 90;
+ STOP_CHARGE_THRESH_BAT0 = 95;
+ };
+ };
+ fwupd.enable = true;
+ };
+
+ environment.systemPackages = with pkgs; [
+ linuxPackages.acpi_call
+
+ acpilight
+ ];
+}