From 2ed7ef788e44ff49e6c221b7cc8787b43aa5c1bd Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Wed, 17 Apr 2024 23:29:21 +0200 Subject: [PATCH] bjarte: init --- flake.nix | 3 ++- hosts/bjarte/default.nix | 49 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 hosts/bjarte/default.nix diff --git a/flake.nix b/flake.nix index eaecc2f..515b89a 100644 --- a/flake.nix +++ b/flake.nix @@ -279,10 +279,11 @@ brumlebasse = mk "pbsds.net" "x86_64-linux" inputs-2311 "23.11" [ au amd nspawn ]; nord = mk "pbsds.net" "x86_64-linux" inputs-2311 "23.11" [ au intel-novga hw.common-cpu-intel-sandy-bridge rocm hidpi ]; sopp = mk "pbsds.net" "x86_64-linux" inputs-2311 "23.11" [ au nixld intel cuda p1005 ]; + bjarte = mk "pbsds.net" "x86_64-linux" inputs-2311 "23.11" [ nixld intel hw.lenovo-thinkpad-x1-7th-gen ]; bolle = mk "pbsds.net" "x86_64-linux" inputs-2311 "23.11" [ au dns64 intel ]; eple = mk "pbsds.net" "x86_64-linux" inputs-2311 "23.11" [ au dns64 intel rocm ]; garp = mk "pbsds.net" "x86_64-linux" inputs-2311 "23.11" [ au dns64 intel-novga cuda ]; - hasselknippe= mk "pbsds.net" "aarch64-linux" inputs-2311 "23.11" [ hw.pine64-pinebook-pro ]; + hasselknippe= mk "pbsds.net" "aarch64-linux" inputs-2311 "23.11" [ hw.pine64-pinebook-pro ]; #gomperud smattkuken skrytebiffen skalkesnerken balleby bingus skjrlaltatjlstad #bergjlot snortheimsmoen ditlefsen skrukkerud podebusk zmaragd makrell alfnes blix urke pytte uddu imdorf rosenqvist }; diff --git a/hosts/bjarte/default.nix b/hosts/bjarte/default.nix new file mode 100644 index 0000000..271e99e --- /dev/null +++ b/hosts/bjarte/default.nix @@ -0,0 +1,49 @@ +{ config, pkgs, lib, ... }: +{ + # Bootloader + #TODO + + #boot.kernel.sysctl."vm.swappiness" = lib.mkDefault 10; # 0-100, commonly 60 + + imports = [ + ./hardware-configuration.nix + #../../profiles/sshd.nix + #../../profiles/no-suspend.nix + #../../profiles/oci/podman.nix + #../../profiles/oci/docker.nix + #../../profiles/oci/distrobox.nix + + ../../users/pbsds + + #../../profiles/mounts/freon-nfs.nix + #../../profiles/mounts/reidun-nfs.nix + #../../profiles/mounts/meconium-nfs.nix + + ../../profiles/shell.nix + + ../../profiles/desktop/base.nix + ../../profiles/desktop/gnome # configures gdm + #../../profiles/desktop/sound/alsa.nix + #../../profiles/desktop/sound/pulseaudio.nix + ../../profiles/desktop/sound/pipewire.nix + + ../../profiles/desktop/steam.nix + #../../profiles/desktop/xboxdrv.nix # TODO: try out + ../../profiles/desktop/lutris.nix + ../../profiles/desktop/flatpak.nix + + ../../profiles/remote-builders.nix + #../../profiles/autossh-reverse-tunnels + ]; + + networking.firewall.allowedTCPPorts = [ 57621 ]; # spotify local discovery + + # Networking + networking.networkmanager.enable = true; + #networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. + #networking.useDHCP = true; + #TODO: avahi? resolved? https://git.pvv.ntnu.no/Drift/pvv-nixos-config/src/main/base.nix#L15-L18 + + # TODO: remove? Move? + programs.dconf.enable = true; +}