From 20a3384db612f27911052995276573acaaea4c19 Mon Sep 17 00:00:00 2001 From: makefu Date: Tue, 13 Jun 2023 00:30:12 +0200 Subject: flake-x: replaced by real x --- 1systems/x/config.nix | 179 +++++++++++++++++++++------------------------ 1systems/x/x13/default.nix | 21 +++--- 1systems/x/x13/disk.nix | 5 +- 3 files changed, 99 insertions(+), 106 deletions(-) (limited to '1systems/x') diff --git a/1systems/x/config.nix b/1systems/x/config.nix index 784f9148f..be2f12402 100644 --- a/1systems/x/config.nix +++ b/1systems/x/config.nix @@ -1,47 +1,41 @@ -# -# -# -{ config, pkgs, lib, ... }: +{ config, pkgs, lib, self, ... }: { imports = [ - # hardware-dependent - # device - - ./x13 # ./x230 + ./x13 - # Common Hardware Components - - # - # - - # - # - # - - # - - - - - # + (self + "/2configs/default.nix") + + ## Common Hardware Components + # (self + "/makefu/2configs/hw/mceusb.nix") + # (self + "/2configs/hw/rtl8812au.nix") + (self + "/2configs/hw/network-manager.nix") + # (self + "/2configs/hw/stk1160.nix") + # (self + "/2configs/hw/irtoy.nix") + # (self + "/2configs/hw/malduino_elite.nix") + (self + "/2configs/hw/switch.nix") + # (self + "/2configs/hw/rad1o.nix") + (self + "/2configs/hw/cc2531.nix") + (self + "/2configs/hw/droidcam.nix") + (self + "/2configs/hw/smartcard.nix") + (self + "/2configs/hw/upower.nix") + #(self + "/2configs/hw/ps4-compat.nix") # base - - - - - - - - - - - - - + (self + "/2configs/nur.nix") + (self + "/2configs/home-manager") + (self + "/2configs/home-manager/desktop.nix") + (self + "/2configs/home-manager/cli.nix") + (self + "/2configs/home-manager/mail.nix") + (self + "/2configs/home-manager/taskwarrior.nix") + + (self + "/2configs/main-laptop.nix") + (self + "/2configs/kdeconnect.nix") + (self + "/2configs/extra-fonts.nix") + (self + "/2configs/editor/neovim") + (self + "/2configs/tools/all.nix") { programs.adb.enable = true; } { services.openssh.hostKeys = [ @@ -50,7 +44,7 @@ } #{ # imports = [ - # + # (self + "/2configs/bureautomation/rhasspy.nix") # ]; # services.pipewire.config.pipewire-pulse = { # "pulse.properties"."server.address" = [ "unix:native" "tcp:4713" ]; @@ -84,9 +78,9 @@ #} # { systemd.services.docker.wantedBy = lib.mkForce []; } - # - # - # + # (self + "/2configs/dict.nix") + # (self + "/2configs/legacy_only.nix") + #(self + "/3modules/netboot_server.nix") #{ # netboot_server = { # network.wan = "wlp3s0"; @@ -100,15 +94,15 @@ # borg list "$BORG_REPO" # mount newroot somewhere && cd somewhere # borg extract "$BORG_REPO::x-state-2019-04-17T01:41:51" --progress # < extract to cwd - + (self + "/2configs/backup/state.nix") - # - - + # (self + "/2configs/dnscrypt/client.nix") + (self + "/2configs/avahi.nix") + (self + "/2configs/support-nixos.nix") # Debugging - # - # + # (self + "/2configs/disable_v6.nix") + # (self + "/2configs/pyload.nix") # Testing #{ @@ -129,39 +123,39 @@ # ''; # }; #} - # - # - # - - # - # - # - # - # - # - # - # + # (self + "/2configs/deployment/gitlab.nix") + # (self + "/2configs/deployment/docker/etherpad.nix") + # (self + "/2configs/deployment/wiki-irc-bot") + + # (self + "/2configs/torrent.nix") + # (self + "/2configs/deployment/dirctator.nix") + # (self + "/2configs/vncserver.nix") + # (self + "/2configs/deployment/led-fader") + # (self + "/2configs/deployment/hound") + # (self + "/2configs/deployment/photostore.krebsco.de.nix") + # (self + "/2configs/deployment/bureautomation/hass.nix") + # (self + "/2configs/bureautomation/office-radio") # Krebs - - # - # - - - # + (self + "/2configs/tinc/retiolum.nix") + # (self + "/2configs/share/anon-ftp.nix") + # (self + "/2configs/share/anon-sftp.nix") + (self + "/2configs/share/gum-client.nix") + (self + "/2configs/share") + # (self + "/2configs/share/temp-share-samba.nix") # applications - - - - # - # + # (self + "/2configs/exim-retiolum.nix") + (self + "/2configs/mail-client.nix") + (self + "/2configs/printer.nix") + # (self + "/2configs/syncthing.nix") + # (self + "/2configs/sync") # Virtualization - # - - + # (self + "/2configs/virtualisation/libvirt.nix") + (self + "/2configs/virtualisation/docker.nix") + (self + "/2configs/virtualisation/virtualbox.nix") #{ # networking.firewall.allowedTCPPorts = [ 8080 ]; # networking.nat = { @@ -171,36 +165,36 @@ # }; #} # Services - - - # - # - - # + (self + "/2configs/git/brain-retiolum.nix") + (self + "/2configs/tor.nix") + # (self + "/2configs/vpn/vpngate.nix") + # (self + "/2configs/buildbot-standalone.nix") + (self + "/2configs/remote-build/aarch64-community.nix") + # (self + "/2configs/remote-build/gum.nix") # { nixpkgs.overlays = [ (self: super: super.prefer-remote-fetch self super) ]; } - # - + # (self + "/2configs/binary-cache/gum.nix") + (self + "/2configs/binary-cache/lass.nix") # Security - # + # (self + "/2configs/sshd-totp.nix") # temporary # { services.redis.enable = true; } # citadel exporter # { services.mongodb.enable = true; } # { services.elasticsearch.enable = true; } - # - # - # - # - # - # - # - # - + # (self + "/2configs/deployment/nixos.wiki") + # (self + "/2configs/home/photoprism.nix") + # (self + "/2configs/dcpp/airdcpp.nix") + # (self + "/2configs/nginx/rompr.nix") + # (self + "/2configs/lanparty/lancache.nix") + # (self + "/2configs/lanparty/lancache-dns.nix") + # (self + "/2configs/lanparty/samba.nix") + # (self + "/2configs/lanparty/mumble-server.nix") + (self + "/2configs/wireguard/wiregrill.nix") # { # networking.wireguard.interfaces.wg0 = { @@ -228,8 +222,6 @@ nixpkgs.config.allowUnfree = true; nixpkgs.config.oraclejdk.accept_license = true; - - # configure pulseAudio to provide a HDMI sink as well networking.firewall.enable = true; networking.firewall.allowedUDPPorts = [ 665 26061 1514 ]; @@ -240,9 +232,6 @@ #krebs.tinc.retiolum.connectTo = lib.mkForce [ "gum" ]; #krebs.tinc.retiolum.extraConfig = "AutoConnect = no"; - - environment.systemPackages = [ pkgs.passwdqc-utils ]; - # environment.variables = { GOROOT = [ "${pkgs.go.out}/share/go" ]; }; state = [ "/home/makefu/stockholm" diff --git a/1systems/x/x13/default.nix b/1systems/x/x13/default.nix index 27ea0c99c..32d15df1a 100644 --- a/1systems/x/x13/default.nix +++ b/1systems/x/x13/default.nix @@ -1,15 +1,18 @@ -{ pkgs, lib, ... }: +{ pkgs, lib, nixos-hardware, self, ... }: # new zfs deployment { imports = [ - ./zfs.nix ./input.nix + ./disk.nix ./battery.nix - - # close enough - # - - # + + (self + "/2configs/hw/bluetooth.nix") + (self + "/2configs/hw/tpm.nix") + (self + "/2configs/hw/ssd.nix") + # (self + "/2configs/hw/xmm7360.nix") + + nixos-hardware.nixosModules.lenovo-thinkpad-l14-amd + ]; boot.zfs.requestEncryptionCredentials = true; networking.hostId = "f8b8e0a2"; @@ -24,9 +27,7 @@ hardware.opengl.extraPackages = [ pkgs.amdvlk pkgs.rocm-opencl-icd pkgs.rocm-opencl-runtime ]; # For 32 bit applications hardware.opengl.driSupport32Bit = true; - hardware.opengl.extraPackages32 = with pkgs; [ - driversi686Linux.amdvlk - ]; + hardware.opengl.extraPackages32 = with pkgs; [ driversi686Linux.amdvlk ]; # is required for amd graphics support ( xorg wont boot otherwise ) #boot.kernelPackages = pkgs.linuxPackages_latest; boot.kernelPackages = lib.mkForce pkgs.linuxPackages; diff --git a/1systems/x/x13/disk.nix b/1systems/x/x13/disk.nix index 7ce77bdf5..3fae8d410 100644 --- a/1systems/x/x13/disk.nix +++ b/1systems/x/x13/disk.nix @@ -1,4 +1,7 @@ -{ disk ? "/dev/sda", ... }: { +{ ... }: +let + disk = "/dev/nvme0n1"; +in { disko.devices = { disk = { nvme = { -- cgit v1.2.3