2024-02-19 17:06:47 +01:00
|
|
|
{
|
|
|
|
config,
|
2024-04-01 21:50:57 +02:00
|
|
|
lib,
|
2024-02-19 17:06:47 +01:00
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
2024-02-29 01:28:20 +01:00
|
|
|
nixpkgs.config.allowUnfree = true;
|
2024-02-19 17:06:47 +01:00
|
|
|
|
|
|
|
boot = {
|
|
|
|
kernelPackages = pkgs.linuxPackages_xanmod_latest;
|
|
|
|
extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];
|
|
|
|
kernelModules = [ "v4l2loopback" ];
|
|
|
|
kernelParams = [
|
2024-04-07 17:28:50 +02:00
|
|
|
"video=eDP-1:1920x1280@60"
|
2024-02-19 17:06:47 +01:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
time.timeZone = "Europe/Warsaw";
|
|
|
|
|
|
|
|
nix = {
|
|
|
|
settings = {
|
2024-02-29 01:31:22 +01:00
|
|
|
max-jobs = 2;
|
|
|
|
cores = 3;
|
2024-02-19 17:06:47 +01:00
|
|
|
substituters = [
|
|
|
|
"https://nix-community.cachix.org"
|
|
|
|
"https://nixpkgs-wayland.cachix.org"
|
|
|
|
"https://viperml.cachix.org"
|
|
|
|
];
|
|
|
|
trusted-public-keys = [
|
|
|
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
|
|
|
"nixpkgs-wayland.cachix.org-1:3lwxaILxMRkVhehr5StQprHdEo4IrE8sRho9R9HOLYA="
|
|
|
|
"viperml.cachix.org-1:qZhKBMTfmcLL+OG6fj/hzsMEedgKvZVFRRAhq7j8Vh8="
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.dconf.enable = true;
|
|
|
|
|
|
|
|
security.sudo.package = pkgs.sudo.override { withInsults = true; };
|
|
|
|
|
|
|
|
security.polkit.enable = true;
|
|
|
|
|
2024-02-29 00:29:56 +01:00
|
|
|
users.users.${config.myOptions.other.system.username} = {
|
2024-03-19 12:32:09 +01:00
|
|
|
extraGroups = [ "video" "wireshark" ];
|
2024-02-19 17:06:47 +01:00
|
|
|
};
|
|
|
|
|
2024-02-29 00:48:40 +01:00
|
|
|
environment.sessionVariables = {
|
|
|
|
CHROME_EXECUTABLE = "${pkgs.ungoogled-chromium}/bin/chromium";
|
2024-02-19 17:06:47 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
hardware = {
|
2024-02-21 19:03:55 +01:00
|
|
|
sensor.iio.enable = true;
|
2024-04-13 21:50:24 +02:00
|
|
|
# ipu6 = {
|
|
|
|
# enable = true;
|
|
|
|
# platform = "ipu6";
|
|
|
|
# };
|
2024-02-19 17:06:47 +01:00
|
|
|
opengl = {
|
|
|
|
enable = true;
|
|
|
|
driSupport = true;
|
|
|
|
driSupport32Bit = true;
|
|
|
|
extraPackages = with pkgs; [
|
|
|
|
mesa
|
|
|
|
libdrm
|
|
|
|
libva
|
|
|
|
vaapiVdpau
|
|
|
|
libvdpau-va-gl
|
|
|
|
];
|
|
|
|
extraPackages32 = with pkgs; [
|
|
|
|
driversi686Linux.mesa
|
|
|
|
driversi686Linux.vaapiVdpau
|
|
|
|
driversi686Linux.libvdpau-va-gl
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services = {
|
|
|
|
pcscd.enable = true;
|
|
|
|
|
|
|
|
udisks2.enable = true;
|
|
|
|
dbus.enable = true;
|
|
|
|
|
|
|
|
fwupd = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
ratbagd.enable = true;
|
|
|
|
|
|
|
|
fprintd = {
|
|
|
|
enable = true;
|
|
|
|
tod = {
|
|
|
|
enable = true;
|
|
|
|
driver = pkgs.libfprint-2-tod1-goodix;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services.journald = {
|
|
|
|
extraConfig = ''
|
|
|
|
SystemMaxUse=100M
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
services.udev = {
|
|
|
|
packages = with pkgs; [
|
|
|
|
yubikey-personalization
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2024-03-19 12:32:09 +01:00
|
|
|
programs.wireshark = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.wireshark;
|
|
|
|
};
|
|
|
|
|
2024-02-19 17:06:47 +01:00
|
|
|
# this makes usb devices autosuspend
|
|
|
|
#powerManagement.powertop.enable = true;
|
|
|
|
|
|
|
|
programs.kdeconnect.enable = true;
|
|
|
|
|
|
|
|
programs.noisetorch.enable = true;
|
|
|
|
|
2024-04-01 21:50:57 +02:00
|
|
|
# https://github.com/NixOS/nixpkgs/issues/270809
|
|
|
|
systemd.services.ModemManager = {
|
|
|
|
enable = lib.mkForce true;
|
|
|
|
path = [ pkgs.libqmi ];
|
|
|
|
wantedBy = [ "multi-user.target" "network.target" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
networking.networkmanager = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
ensureProfiles.profiles = {
|
|
|
|
sim = {
|
|
|
|
connection = {
|
|
|
|
id = "sim";
|
|
|
|
uuid = "91d0e582-a24a-4835-baa9-98709b7793f9";
|
|
|
|
type = "gsm";
|
|
|
|
autoconnect = false;
|
|
|
|
permissions = "user:jacek:;";
|
|
|
|
};
|
|
|
|
gsm = {
|
|
|
|
apn = "internet";
|
|
|
|
username = "internet";
|
|
|
|
password = "internet";
|
|
|
|
};
|
|
|
|
ipv4.method = "auto";
|
|
|
|
ipv6 = {
|
|
|
|
addr-gen-mode = "default";
|
|
|
|
method = "auto";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-02-19 17:06:47 +01:00
|
|
|
myOptions = {
|
|
|
|
other = {
|
2024-02-29 00:29:56 +01:00
|
|
|
system = {
|
|
|
|
hostname = "del";
|
|
|
|
username = "jacek";
|
|
|
|
};
|
2024-02-19 17:06:47 +01:00
|
|
|
home-manager = {
|
|
|
|
enable = true;
|
|
|
|
enableDirenv = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
programs = {
|
|
|
|
git = {
|
|
|
|
enable = true;
|
|
|
|
userName = "jacekpoz";
|
|
|
|
userEmail = "jacekpoz@cock.li";
|
2024-03-03 09:46:45 +01:00
|
|
|
signingKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHXD1EM4mQz99vJhmZX1r7kwMd8yewogOuoTUuv1xWZB";
|
2024-02-19 17:06:47 +01:00
|
|
|
defaultBranch = "master";
|
|
|
|
};
|
|
|
|
starship.enable = true;
|
|
|
|
zsh = {
|
|
|
|
enable = true;
|
|
|
|
extraAliases = {
|
|
|
|
#u = "nh os switch \"/home/jacek/niksos\" -H niks -- --use-remote-sudo";
|
|
|
|
#us = "NIX_SSHOPTS='-t' nh os switch \"/home/jacek/niksos\" -H chmura -- --use-remote-sudo --target-host chmura";
|
|
|
|
u = "nixos-rebuild switch --flake \"/home/jacek/niksos#del\" -L --use-remote-sudo";
|
|
|
|
us = "NIX_SSHOPTS='-t' nixos-rebuild switch --flake \"/home/jacek/niksos#chmura\" -L --use-remote-sudo --target-host chmura";
|
|
|
|
};
|
|
|
|
profiling = false;
|
|
|
|
};
|
|
|
|
anyrun.enable = true;
|
|
|
|
vesktop.enable = true;
|
|
|
|
btop.enable = true;
|
|
|
|
firefox = {
|
|
|
|
enable = true;
|
|
|
|
defaultSearchEngine = "NotASearx";
|
|
|
|
searchEngines = {
|
|
|
|
"NotASearx" = {
|
|
|
|
url = "https://search.notashelf.dev/search?q={searchTerms}";
|
|
|
|
faviconUrl = "https://search.notashelf.dev/favicon.ico";
|
|
|
|
aliases = [ "!sx" ];
|
|
|
|
};
|
|
|
|
"NixOS Packages" = {
|
|
|
|
url = "https://search.nixos.org/packages?channel=unstable&query={searchTerms}";
|
|
|
|
faviconPath = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
|
|
|
aliases = [ "!np" ];
|
|
|
|
};
|
|
|
|
"NixOS Options" = {
|
|
|
|
url = "https://search.nixos.org/options?channel=unstable&query={searchTerms}";
|
|
|
|
faviconPath = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
|
|
|
aliases = [ "!no" ];
|
|
|
|
};
|
|
|
|
"NixOS Wiki" = {
|
|
|
|
url = "https://nixos.wiki/index.php?search={searchTerms}";
|
|
|
|
faviconPath = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
|
|
|
aliases = [ "!nw" ];
|
|
|
|
};
|
|
|
|
"Home Manger Option Search" = {
|
|
|
|
url = "https://mipmip.github.io/home-manager-option-search?query={searchTerms}";
|
|
|
|
faviconPath = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
|
|
|
aliases = [ "!hm" ];
|
|
|
|
};
|
|
|
|
"Arch Wiki" = {
|
|
|
|
url = "https://wiki.archlinux.org/index.php?search={searchTerms}";
|
|
|
|
faviconUrl = "https://archlinux.org/favicon.ico";
|
|
|
|
aliases = [ "!aw" ];
|
|
|
|
};
|
|
|
|
"Gentoo Wiki" = {
|
|
|
|
url = "https://wiki.gentoo.org/index.php?search={searchTerms}";
|
|
|
|
faviconUrl = "https://www.gentoo.org/favicon.ico";
|
|
|
|
aliases = [ "!gw" ];
|
|
|
|
};
|
|
|
|
"Debian Wiki" = {
|
|
|
|
url = "https://wiki.debian.org/FrontPage?action=fullsearch&value={searchTerms}";
|
|
|
|
faviconUrl = "https://www.debian.org/favicon.ico";
|
|
|
|
aliases = [ "!dw" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
foot.enable = true;
|
|
|
|
mpv.enable = true;
|
|
|
|
osu = {
|
|
|
|
enable = false;
|
|
|
|
enableStable = false;
|
|
|
|
};
|
|
|
|
neovim.enable = true;
|
|
|
|
zathura.enable = true;
|
2024-03-19 23:45:26 +01:00
|
|
|
hypr = {
|
|
|
|
land.enable = true;
|
|
|
|
lock.enable = true;
|
2024-02-19 17:06:47 +01:00
|
|
|
};
|
|
|
|
helix.enable = false;
|
|
|
|
newsboat.enable = true;
|
2024-04-15 23:20:04 +02:00
|
|
|
quickshell = {
|
|
|
|
enable = true;
|
|
|
|
enabledConfigs = [
|
|
|
|
"powermenu"
|
|
|
|
"poz"
|
|
|
|
];
|
|
|
|
};
|
2024-02-19 17:06:47 +01:00
|
|
|
};
|
|
|
|
themes = {
|
|
|
|
cursor = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.bibata-cursors;
|
|
|
|
name = "Bibata-Modern-Classic";
|
|
|
|
size = 24;
|
|
|
|
};
|
|
|
|
gtk = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.catppuccin-gtk;
|
|
|
|
name = "Catppuccin-Mocha-Standard-Green-Dark";
|
|
|
|
variant = "mocha";
|
|
|
|
accentColour = "green";
|
|
|
|
iconTheme = {
|
|
|
|
name = "Papirus-Dark";
|
|
|
|
package = pkgs.catppuccin-papirus-folders;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
qt = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.catppuccin-kde;
|
|
|
|
name = "Catppuccin-Mocha-Dark";
|
|
|
|
variant = "mocha";
|
|
|
|
accentColour = "green";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
services = {
|
|
|
|
dunst.enable = true;
|
|
|
|
mpd.enable = true;
|
|
|
|
greetd = {
|
|
|
|
enable = true;
|
|
|
|
greeter = "gtkgreet";
|
|
|
|
launchOptions = [
|
|
|
|
"Hyprland"
|
|
|
|
"sway"
|
|
|
|
"zsh"
|
|
|
|
"reboot"
|
|
|
|
"shutdown now"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
ssh = {
|
|
|
|
daemon.enable = false;
|
|
|
|
agent = {
|
|
|
|
enable = true;
|
2024-03-06 12:03:08 +01:00
|
|
|
hostAliases = rec {
|
|
|
|
github = {
|
|
|
|
hostName = "github.com";
|
2024-03-06 12:11:58 +01:00
|
|
|
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBjhNPiKUGyAdhI6jXQsDVj5jqklIh+gVEoCGZEEaC62";
|
2024-03-06 12:03:08 +01:00
|
|
|
};
|
|
|
|
codeberg = {
|
|
|
|
hostName = "codeberg.org";
|
2024-03-06 12:11:58 +01:00
|
|
|
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILZReNUB66x+SkVx0hlbA1lyfEBMpT8IvQ6LPRn52oBl";
|
2024-03-06 12:03:08 +01:00
|
|
|
};
|
|
|
|
gitlab = {
|
|
|
|
hostName = "gitlab.com";
|
2024-03-06 12:11:58 +01:00
|
|
|
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA/4XLNm1/ea2jtLj2AvPWMigA/xo9mLbRUGurVthiqm";
|
2024-03-06 12:03:08 +01:00
|
|
|
};
|
|
|
|
aur = {
|
2024-02-19 17:06:47 +01:00
|
|
|
hostName = "aur.archlinux.org";
|
2024-03-06 18:40:53 +01:00
|
|
|
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPrCofD7GLXfASLMdYFnnMxs77Ys0nu9PsCo6IKVB6Wd";
|
2024-02-19 17:06:47 +01:00
|
|
|
user = "aur";
|
|
|
|
};
|
2024-03-06 12:03:08 +01:00
|
|
|
jacekpoz = {
|
2024-02-19 17:06:47 +01:00
|
|
|
hostName = "git.jacekpoz.pl";
|
2024-03-06 12:11:58 +01:00
|
|
|
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJSxvSM0y5Z958VrgU9JNCYS4oZmV4nNXP3hIrw6zr8R";
|
2024-02-19 17:06:47 +01:00
|
|
|
user = "forgejo";
|
|
|
|
};
|
2024-03-06 12:03:08 +01:00
|
|
|
chmura = {
|
2024-02-19 17:06:47 +01:00
|
|
|
hostName = "192.168.15.2";
|
2024-03-06 12:11:58 +01:00
|
|
|
publicKey = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDZLEWp9DsF9znp3W6uqP23yMFd8QQs0CmNKTKTanbfRYOqRWw0Jpuryxg7rTU8ioRM5L4zpIqu/v+pt9x76UsWTlFqjk9S35M1g0Kb2QN3czMJj5uA4jtFh47H8+hfBHm2RelPCcJCSmkR9gDa3XcrxlcC642yU4LTObHeHZg0yUDhUwKS8AdybxkPlmXPZ+UPEphq0CIBxU9mnieQMbQtMFnjEnNMDZJnP4BUF/XuWeHwh8yBttlL+hS37aI3hQYwGd5zdkSD9RWha10Nandlmt6+io6KYQgJxRK0c27i2jO7cmEMOz0h/ZnwHpTtRD9ifDTXuWN9l8+prAxsbC9pBsiDHqZ9ESHq7DzvqIeeyrQT0iHDoOPfB2PPCFJZlkFiM7hsWwkMc5Jaol9SjjH1a+B/+BvNGAQDWt1JIZzwE6T9RVQdGph6GMDS4o3gW3Hd8hyVdFhwD5xTJ567SntqsJdhzGH9HU5ybya3MG0WTWw3dLI0aMv/eAWSRx+7ZPE=";
|
2024-02-19 17:06:47 +01:00
|
|
|
user = "chmura";
|
|
|
|
};
|
2024-03-06 12:03:08 +01:00
|
|
|
chmura2 = chmura // { hostName = "jacekpoz.pl"; };
|
|
|
|
malina = {
|
2024-02-19 17:06:47 +01:00
|
|
|
hostName = "192.168.15.3";
|
2024-03-06 12:11:58 +01:00
|
|
|
publicKey = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCJWWnBdRFQjMxSGxjPQe/jk7sAHOEb4CAY9mY105bnNcoBz0DORvK+4Ha4TIDELubKbzasDTU/Vi7tunjbiFinbOP94OTVoc9xphfxa3eQ0GrIo0icLk0A2IbAqC32m9f93AvPseZib/9PJTIpZMQcklwllKfxg3WYBglVXLmu4+epPRfk3YR6TOP77guxT8MF9zdFrlRz8Ugcytrez2evOyva2YLdsadlke3cTVLypBFB5fJ2dfDSrYzsTEgDQB9o65Kpuqp/k+hvzdZLxDjC+vec1sUWiD9nPAHOPBKsbo9UqZtp5in4+vf8iaMVGZrjAHvz3NBze7uRZGdLLm7ACfuqq1J+cyGVCFOaxk1g0e5rNqFjMnLwKrF0UaAxmKkDNnkJQnWDCY63V+Q1PkfPWRSd5oNVZnHmyukosKlmR6n2/WqQsGrQpg0oDFh8MHupJ2sCKisAR6nvm1R9HmffdlMSBEjyx1V6j2onsGX5P+lsoODoIQGz1GV6JGBU/Qc=";
|
2024-02-19 17:06:47 +01:00
|
|
|
user = "malina";
|
|
|
|
};
|
2024-03-06 12:03:08 +01:00
|
|
|
outfoxxed = {
|
|
|
|
hostName = "git.outfoxxed.me";
|
2024-03-06 12:11:58 +01:00
|
|
|
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGqsfan2BERiFSgXEv6KCTbzpKmtkq4gNd2409ZuKbgh";
|
2024-03-06 12:03:08 +01:00
|
|
|
};
|
2024-03-13 18:25:41 +01:00
|
|
|
kik_haslo = {
|
2024-03-06 12:03:08 +01:00
|
|
|
hostName = "156.17.7.16";
|
2024-03-06 12:11:58 +01:00
|
|
|
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJAC03lGubkSRl02cX1TJ3ItkcozS8aocEHeysv/WY4v";
|
2024-03-06 12:03:08 +01:00
|
|
|
port = 10002;
|
|
|
|
user = "auth";
|
|
|
|
};
|
2024-03-13 18:25:41 +01:00
|
|
|
kik_oceny = {
|
|
|
|
hostName = "156.17.7.45";
|
|
|
|
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJAC03lGubkSRl02cX1TJ3ItkcozS8aocEHeysv/WY4v";
|
|
|
|
port = 19999;
|
|
|
|
user = "view";
|
|
|
|
};
|
2024-03-20 08:09:28 +01:00
|
|
|
tramwaj = {
|
|
|
|
hostName = "asi.pwr.wroc.pl";
|
|
|
|
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINnqXeczgwYduhAd3LT16qTor8CcU1b8J+YyUwKhkxqD";
|
|
|
|
port = 2137;
|
|
|
|
user = "poz";
|
|
|
|
};
|
2024-02-19 17:06:47 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
pipewire.enable = true;
|
2024-04-04 12:24:31 +02:00
|
|
|
syncthing.enable = true;
|
2024-02-19 17:06:47 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
system.stateVersion = "23.11";
|
|
|
|
}
|