zellij, hyprland config

This commit is contained in:
iofq 2024-11-18 20:10:08 -06:00
parent 39052c860d
commit 22cca03fec
12 changed files with 135 additions and 51 deletions

View file

@ -25,6 +25,7 @@
2022
3610
6443
8080
25565
9002
30001

View file

@ -47,7 +47,7 @@ in {
pkgs = pkgs-stable;
inherit inputs system attrs;
host = {
hostName = "consensus";
hostName = "nc";
inherit (attrs) username;
};
};

View file

@ -1,7 +1,4 @@
{
pkgs,
...
}: {
{pkgs, ...}: {
imports = [
./hardware-configuration.nix
./k3s.nix
@ -38,10 +35,10 @@
enable = true;
allowedTCPPorts = [
22
9000
30001
30303
30304
9000 #charon holesky
30001 #mainnet
30303 #mainnet
30304 #charon holesky
];
logRefusedConnections = true;
};
@ -67,11 +64,15 @@
"wheel"
"docker"
];
openssh.authorizedKeys.keys = [''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHM4Zr0PFN7QdOG2aJ+nuzRCK6caulrpY6bphA1Ppl8Y e@t14''];
openssh.authorizedKeys.keys = [
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHM4Zr0PFN7QdOG2aJ+nuzRCK6caulrpY6bphA1Ppl8Y e@t14''
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAdo4PS8myKaKAdyIqSFj2VJ+oZ9DNRIp7PBz8IWKjjy''
];
};
hd = {
isNormalUser = true;
extraGroups = [
"wheel"
"docker"
];
};

View file

@ -4,16 +4,24 @@
config,
...
}: {
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
imports = [(modulesPath + "/profiles/qemu-guest.nix")];
boot.loader.grub.device = "/dev/vda";
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ];
boot.initrd.kernelModules = [ "nvme" ];
fileSystems."/" = { device = "/dev/vda3"; fsType = "ext4"; };
boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi"];
boot.initrd.kernelModules = ["nvme"];
fileSystems."/" = {
device = "/dev/vda3";
fsType = "ext4";
};
boot = {
kernelModules = ["kvm-intel"];
tmp.cleanOnBoot = true;
};
swapDevices = [
{
device = "/swapfile";
size = 8 * 1024;
}
];
zramSwap.enable = false;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;

View file

@ -13,6 +13,7 @@ in {
environment.systemPackages = with pkgs; [
cryptsetup
nfs-utils
nerdctl
];
environment.extraInit = "[[ -f ${homeManagerSessionVars} ]] && source ${homeManagerSessionVars} && echo 'x' > /tmp/test";
@ -24,7 +25,7 @@ in {
# Networking
networking = {
hostId = "1185c58e";
nameservers = ["100.114.91.10"];
nameservers = ["9.9.9.9" "1.1.1.1"];
networkmanager = {
enable = true;
dns = "systemd-resolved";
@ -40,9 +41,8 @@ in {
# Services
virtualisation = {
podman = {
containerd = {
enable = true;
dockerCompat = true;
};
};
@ -58,6 +58,7 @@ in {
ssh = {
startAgent = true;
};
steam.enable = true;
};
services = {
resolved = {
@ -78,9 +79,19 @@ in {
tlp = {
enable = true;
settings = {
WIFI_PWR_ON_BAT = "off";
START_CHARGE_THRESH_BAT0 = 80;
STOP_CHARGE_THRESH_BAT0 = 85;
START_CHARGE_THRESH_BAT0 = 40;
STOP_CHARGE_THRESH_BAT0 = 80;
CPU_BOOST_ON_AC = 1;
CPU_BOOST_ON_BAT = 0;
CPU_SCALING_GOVERNOR_ON_AC = "performance";
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
CPU_MIN_PERF_ON_AC = 0;
CPU_MAX_PERF_ON_AC = 100;
CPU_MIN_PERF_ON_BAT = 0;
CPU_MAX_PERF_ON_BAT = 20;
};
};
ratbagd.enable = true; # Logitech