about summary refs log tree commit diff
path: root/machines/x220
diff options
context:
space:
mode:
authorPatryk Niedzwiedzinski <patryk@niedzwiedzinski.cyou>2024-09-29 16:23:16 +0200
committerPatryk Niedzwiedzinski <patryk@niedzwiedzinski.cyou>2024-09-29 16:23:16 +0200
commit4f591cc9c9663c413e8eb5cd8401a34a3251e30c (patch)
treedc46f698af4d5ba288e9e6707c2bc960e913bdd8 /machines/x220
parent4fa1a6efad786affb0729603de846d2034580db2 (diff)
downloaddots-4f591cc9c9663c413e8eb5cd8401a34a3251e30c.tar.gz
dots-4f591cc9c9663c413e8eb5cd8401a34a3251e30c.zip
Remove old machines
Diffstat (limited to 'machines/x220')
-rw-r--r--machines/x220/configuration.nix168
-rw-r--r--machines/x220/default.nix6
-rwxr-xr-xmachines/x220/hardware-configuration.nix63
3 files changed, 0 insertions, 237 deletions
diff --git a/machines/x220/configuration.nix b/machines/x220/configuration.nix
deleted file mode 100644
index a4c2c07..0000000
--- a/machines/x220/configuration.nix
+++ /dev/null
@@ -1,168 +0,0 @@
-{ pkgs, lib, ... }:
-
-let
-  signal = pkgs.callPackage ../../pkgs/signal.nix { };
-  busybox_utils = pkgs.stdenv.mkDerivation {
-    name = "strings";
-    unpackPhase = "true";
-    installPhase = ''
-      mkdir -p $out/bin
-      cp ${pkgs.busybox}/bin/strings $out/bin/strings
-      cp ${pkgs.busybox}/bin/telnet $out/bin/telnet
-    '';
-  };
-in
-  {
-
-    virtualisation.virtualbox.host.enable = true;
-    users.extraGroups.vboxusers.members = [ "pn" ];
-
-    services.yggdrasil = {
-      enable = false;
-      persistentKeys = true;
-      config = {
-        Peers = [
-          "tcp://51.75.44.73:50001"
-          "tcp://176.223.130.120:22632"
-        ];
-      };
-    };
-
-    imports = [
-      ../base.nix
-      ../pl.nix
-      ../../modules/larbs.nix
-      ../../modules/internet.nix
-      ../../modules/dockd.nix
-      ../../modules/trackpad.nix
-      ../../modules/agetty.nix
-    ];
-
-    boot.plymouth.enable = true;
-    # boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
-
-    networking = {
-      hostName = "x220";
-      firewall.allowedTCPPorts = [
-        6969 # qrcp
-      ];
-
-      networkmanager = {
-        enable = true;
-        wifi = {
-          backend = "iwd";
-          powersave = true;
-        };
-      };
-    };
-
-    nixpkgs.config.allowUnfree = true;
-
-    nix.extraOptions = ''
-      show-trace = true
-    '';
-
-    environment.variables = {
-      ELECTRUMDIR="$\{XDG_DATA_HOME:-$HOME/.local/share}/electrum";
-    };
-
-    environment.binsh = "${pkgs.dash}/bin/dash";
-
-    environment.systemPackages = with pkgs; [
-      guvcview
-      signal
-      usbutils
-      discord
-    # Basic tools
-    file ssh-ident busybox_utils
-
-    # XORG perfs
-    dunst
-
-    # UI apps
-    zathura sxiv pulsemixer
-    lynx lf arandr wpa_supplicant_gui
-    system-config-printer libreoffice
-    abook
-
-    # Audio/Video
-    mpd mpc_cli mpv ffmpeg youtube-dl
-
-    # CLIs
-    gitAndTools.gh docker-compose xsel
-    bc libnotify
-    pamixer maim killall
-    ueberzug chafa
-
-    # Thinkpad utils
-    acpi tpacpi-bat
-  ];
-
-  fonts.fonts = with pkgs; [
-    liberation_ttf
-    roboto-slab
-  ];
-
-  programs.gnupg = {
-    agent = {
-      enable = true;
-      enableSSHSupport = true;
-      pinentryFlavor = "gnome3";
-    };
-  };
-
-  programs.browserpass.enable = true;
-  programs.dockd.enable = true;
-
-
-  virtualisation.docker.enable = true;
-  systemd.services.docker.wantedBy = lib.mkForce [];
-
-  services.udev.packages = [ pkgs.libu2f-host ];
-
-  services.pcscd.enable = true;
-
-  services.agetty = {
-    defaultUser = "pn";
-  };
-
-  services.printing = {
-    enable = true;
-    drivers = [ pkgs.epson_201207w ];
-  };
-  hardware.sane.enable = true;
-  hardware.sane.extraBackends = [ pkgs.epkowa ];
-
-  hardware.bluetooth.powerOnBoot = false;
-
-  services.cron.enable = true;
-  # services.fcron.enable = true;
-
-  services.acpid.enable = true;
-
-  # Battery
-  services.tlp.enable = true;
-
-  services.xserver = {
-    videoDrivers = [ "intel" ];
-    deviceSection = ''
-      Option "DIR" "2"
-      Option "TearFree" "true"
-    '';
-  };
-
-  services.xserver.wacom = {
-    enable = true;
-  };
-
-  users.users.pn.extraGroups = [ "docker" "scanner" "lp" ];
-
-  security.pam.u2f = {
-    enable = true;
-    cue = true;
-    interactive = true;
-    #control = "required";
-    #control = "requisite";
-  };
-
-}
diff --git a/machines/x220/default.nix b/machines/x220/default.nix
deleted file mode 100644
index cd4010f..0000000
--- a/machines/x220/default.nix
+++ /dev/null
@@ -1,6 +0,0 @@
-{
-  imports = [
-    ./hardware-configuration.nix
-    ./configuration.nix
-  ];
-}
diff --git a/machines/x220/hardware-configuration.nix b/machines/x220/hardware-configuration.nix
deleted file mode 100755
index 4f7b908..0000000
--- a/machines/x220/hardware-configuration.nix
+++ /dev/null
@@ -1,63 +0,0 @@
-# ThinkPad X220
-
-# Do not modify this file!  It was generated by ‘nixos-generate-config’
-# and may be overwritten by future invocations.  Please make changes
-# to /etc/nixos/configuration.nix instead.
-{ config, lib, pkgs, ... }:
-
-{
-  imports =
-    [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
-  ];
-
-  boot.initrd.availableKernelModules = [ "ehci_pci" "ahci" "usb_storage" "sd_mod" "sdhci_pci" ];
-  boot.initrd.kernelModules = [ ];
-  boot.kernelModules = [ "kvm-intel" "tp_smapi" "v4l2loopback" "acpi_call" ];
-  boot.extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback tp_smapi acpi_call ];
-
-
-  boot.loader.grub.enable = true;
-  boot.loader.grub.version = 2;
-  boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
-
-  boot.plymouth.enable = true;
-
-
-  fileSystems = {
-    "/" =
-      { device = "/dev/disk/by-uuid/e00c989b-b3fd-469e-b894-ea609fb4d7fa";
-      fsType = "ext4";
-    };
-
-    "/boot" =
-      { device = "/dev/disk/by-uuid/2f0948cd-a0de-41c0-a341-e9fe01460fd3";
-      fsType = "ext3";
-    };
-    "/home" = {
-      device = "/dev/disk/by-label/home";
-      fsType = "ext4";
-    };
-    "/nix" = {
-      device = "/dev/disk/by-label/nix";
-      fsType = "ext4";
-    };
-    "/var/lib/docker" = {
-      device = "/dev/disk/by-label/docker";
-      fsType = "ext4";
-    };
-    "/mnt/qnap" = {
-      device = "//192.168.1.119/Patryk";
-      fsType = "cifs";
-      options = let
-        # this line prevents hanging on network split
-        automount_opts = "x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s,vers=1.0";
-
-      in ["${automount_opts},credentials=/etc/nixos/smb-secrets"];
-    };
-  };
-  swapDevices = [ {
-    device = "/dev/sda2"; } ];
-
-    nix.maxJobs = lib.mkDefault 4;
-    powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
-  }