2023-07-06 20:03:25 +02:00
|
|
|
{
|
2023-07-13 12:49:20 +02:00
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
2023-07-30 23:52:15 +02:00
|
|
|
}: {
|
2024-02-29 01:28:20 +01:00
|
|
|
nixpkgs.config = {
|
|
|
|
permittedInsecurePackages = [
|
|
|
|
"python-2.7.18.6"
|
|
|
|
"electron-24.8.6"
|
|
|
|
"electron-25.9.0"
|
|
|
|
];
|
|
|
|
allowUnfree = true;
|
2023-08-11 00:00:19 +02:00
|
|
|
};
|
2023-07-13 12:49:20 +02:00
|
|
|
|
2023-08-11 00:00:19 +02:00
|
|
|
boot = {
|
2024-02-02 01:31:11 +01:00
|
|
|
kernelPackages = pkgs.linuxPackages_xanmod_latest;
|
2023-10-13 23:11:29 +02:00
|
|
|
extraModulePackages = with config.boot.kernelPackages; [ ddcci-driver ];
|
2023-08-16 09:46:16 +02:00
|
|
|
kernelModules = [ "ddcci" ];
|
2023-08-11 00:00:19 +02:00
|
|
|
kernelParams = [
|
|
|
|
"video=eDP-1:2560x1440@165"
|
|
|
|
"video=HDMI-A-1:2560x1440@144"
|
|
|
|
];
|
|
|
|
};
|
2023-07-13 12:49:20 +02:00
|
|
|
|
2023-09-08 16:10:15 +02:00
|
|
|
time.timeZone = "Europe/Warsaw";
|
|
|
|
|
|
|
|
nix = {
|
|
|
|
settings = {
|
2024-02-12 19:39:42 +01:00
|
|
|
max-jobs = 3;
|
|
|
|
cores = 4;
|
2023-09-08 16:10:15 +02:00
|
|
|
substituters = [
|
|
|
|
"https://nix-community.cachix.org"
|
|
|
|
"https://nixpkgs-wayland.cachix.org"
|
2023-10-03 19:22:24 +02:00
|
|
|
"https://viperml.cachix.org"
|
2023-09-08 16:10:15 +02:00
|
|
|
];
|
|
|
|
trusted-public-keys = [
|
|
|
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
|
|
|
"nixpkgs-wayland.cachix.org-1:3lwxaILxMRkVhehr5StQprHdEo4IrE8sRho9R9HOLYA="
|
2023-10-03 19:22:24 +02:00
|
|
|
"viperml.cachix.org-1:qZhKBMTfmcLL+OG6fj/hzsMEedgKvZVFRRAhq7j8Vh8="
|
2023-09-08 16:10:15 +02:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2023-07-06 20:03:25 +02:00
|
|
|
|
2023-07-30 01:18:57 +02:00
|
|
|
programs.dconf.enable = true;
|
|
|
|
|
2023-08-10 23:52:43 +02:00
|
|
|
security.sudo.package = pkgs.sudo.override { withInsults = true; };
|
|
|
|
|
2023-10-03 19:22:24 +02:00
|
|
|
security.polkit.enable = true;
|
|
|
|
|
2024-02-29 00:48:40 +01:00
|
|
|
environment.sessionVariables = {
|
|
|
|
CHROME_EXECUTABLE = "${pkgs.ungoogled-chromium}/bin/chromium";
|
2023-07-06 21:07:54 +02:00
|
|
|
};
|
2023-07-13 12:49:20 +02:00
|
|
|
|
|
|
|
services = {
|
2023-07-23 20:12:12 +02:00
|
|
|
pcscd.enable = true;
|
|
|
|
|
|
|
|
udisks2.enable = true;
|
2023-09-08 16:10:15 +02:00
|
|
|
dbus.enable = true;
|
2023-10-13 21:04:24 +02:00
|
|
|
|
|
|
|
fwupd = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
2024-01-20 01:31:28 +01:00
|
|
|
ratbagd.enable = true;
|
2023-07-23 20:12:12 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
programs.gnupg.agent = {
|
|
|
|
enable = true;
|
|
|
|
pinentryFlavor = "qt";
|
|
|
|
enableSSHSupport = true;
|
2023-07-20 00:06:31 +02:00
|
|
|
};
|
|
|
|
|
2023-09-08 16:10:15 +02:00
|
|
|
services.btrfs = {
|
|
|
|
autoScrub = {
|
2023-07-23 20:12:29 +02:00
|
|
|
enable = true;
|
2023-09-08 16:10:15 +02:00
|
|
|
interval = "weekly";
|
2023-07-23 20:12:29 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-09-13 16:57:15 +02:00
|
|
|
services.journald = {
|
|
|
|
extraConfig = ''
|
|
|
|
SystemMaxUse=100M
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2023-10-13 21:04:24 +02:00
|
|
|
services.udev = {
|
2024-01-20 01:31:28 +01:00
|
|
|
packages = with pkgs; [
|
|
|
|
yubikey-personalization
|
|
|
|
];
|
2023-10-13 21:04:24 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
# this makes usb devices autosuspend
|
|
|
|
#powerManagement.powertop.enable = true;
|
|
|
|
|
|
|
|
programs.kdeconnect.enable = true;
|
|
|
|
|
2023-11-25 17:12:09 +01:00
|
|
|
programs.noisetorch.enable = true;
|
|
|
|
|
2023-10-13 21:04:24 +02:00
|
|
|
myOptions = {
|
2024-02-14 15:29:00 +01:00
|
|
|
other = {
|
2024-02-29 00:29:56 +01:00
|
|
|
system = {
|
|
|
|
hostname = "niks";
|
|
|
|
username = "jacek";
|
|
|
|
};
|
2024-02-14 15:29:00 +01:00
|
|
|
home-manager = {
|
|
|
|
enable = true;
|
|
|
|
enableDirenv = true;
|
|
|
|
};
|
|
|
|
};
|
2023-10-13 21:04:24 +02:00
|
|
|
programs = {
|
|
|
|
git = {
|
|
|
|
enable = true;
|
|
|
|
userName = "jacekpoz";
|
|
|
|
userEmail = "jacekpoz@cock.li";
|
2024-03-03 09:46:45 +01:00
|
|
|
signingKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHXD1EM4mQz99vJhmZX1r7kwMd8yewogOuoTUuv1xWZB";
|
2023-10-13 21:04:24 +02:00
|
|
|
defaultBranch = "master";
|
|
|
|
};
|
|
|
|
starship.enable = true;
|
2023-11-25 17:12:09 +01:00
|
|
|
zsh = {
|
|
|
|
enable = true;
|
|
|
|
extraAliases = {
|
2024-02-12 19:39:42 +01:00
|
|
|
#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#niks\" -L --use-remote-sudo";
|
|
|
|
us = "NIX_SSHOPTS='-t' nixos-rebuild switch --flake \"/home/jacek/niksos#chmura\" -L --use-remote-sudo --target-host chmura";
|
2023-11-25 17:12:09 +01:00
|
|
|
};
|
|
|
|
profiling = false;
|
|
|
|
};
|
2023-10-13 21:04:24 +02:00
|
|
|
anyrun.enable = true;
|
|
|
|
armcord.enable = true;
|
2024-01-20 01:27:49 +01:00
|
|
|
vesktop.enable = true;
|
2023-10-13 21:04:24 +02:00
|
|
|
btop.enable = true;
|
|
|
|
firefox = {
|
|
|
|
enable = true;
|
2023-10-14 19:19:16 +02:00
|
|
|
defaultSearchEngine = "NotASearx";
|
2023-10-13 21:04:24 +02:00
|
|
|
searchEngines = {
|
|
|
|
"NotASearx" = {
|
|
|
|
url = "https://search.notashelf.dev/search?q={searchTerms}";
|
2023-10-14 19:19:16 +02:00
|
|
|
faviconUrl = "https://search.notashelf.dev/favicon.ico";
|
|
|
|
aliases = [ "!sx" ];
|
2023-10-13 21:04:24 +02:00
|
|
|
};
|
|
|
|
"NixOS Packages" = {
|
|
|
|
url = "https://search.nixos.org/packages?channel=unstable&query={searchTerms}";
|
2023-10-14 19:19:16 +02:00
|
|
|
faviconPath = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
|
|
|
aliases = [ "!np" ];
|
2023-10-13 21:04:24 +02:00
|
|
|
};
|
|
|
|
"NixOS Options" = {
|
|
|
|
url = "https://search.nixos.org/options?channel=unstable&query={searchTerms}";
|
2023-10-14 19:19:16 +02:00
|
|
|
faviconPath = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
|
|
|
aliases = [ "!no" ];
|
2023-10-13 21:04:24 +02:00
|
|
|
};
|
|
|
|
"NixOS Wiki" = {
|
|
|
|
url = "https://nixos.wiki/index.php?search={searchTerms}";
|
2023-10-14 19:19:16 +02:00
|
|
|
faviconPath = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
|
|
|
aliases = [ "!nw" ];
|
2023-10-13 21:04:24 +02:00
|
|
|
};
|
|
|
|
"Home Manger Option Search" = {
|
|
|
|
url = "https://mipmip.github.io/home-manager-option-search?query={searchTerms}";
|
2023-10-14 19:19:16 +02:00
|
|
|
faviconPath = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
|
|
|
aliases = [ "!hm" ];
|
2023-10-13 21:04:24 +02:00
|
|
|
};
|
|
|
|
"Arch Wiki" = {
|
|
|
|
url = "https://wiki.archlinux.org/index.php?search={searchTerms}";
|
2023-10-14 19:19:16 +02:00
|
|
|
faviconUrl = "https://archlinux.org/favicon.ico";
|
|
|
|
aliases = [ "!aw" ];
|
2023-10-13 21:04:24 +02:00
|
|
|
};
|
|
|
|
"Gentoo Wiki" = {
|
|
|
|
url = "https://wiki.gentoo.org/index.php?search={searchTerms}";
|
2023-10-14 19:19:16 +02:00
|
|
|
faviconUrl = "https://www.gentoo.org/favicon.ico";
|
|
|
|
aliases = [ "!gw" ];
|
2023-10-13 21:04:24 +02:00
|
|
|
};
|
|
|
|
"Debian Wiki" = {
|
|
|
|
url = "https://wiki.debian.org/FrontPage?action=fullsearch&value={searchTerms}";
|
2023-10-14 19:19:16 +02:00
|
|
|
faviconUrl = "https://www.debian.org/favicon.ico";
|
|
|
|
aliases = [ "!dw" ];
|
2023-10-13 21:04:24 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
foot.enable = true;
|
|
|
|
mpv.enable = true;
|
2024-02-14 14:58:07 +01:00
|
|
|
osu = {
|
|
|
|
enable = true;
|
|
|
|
enableStable = true;
|
|
|
|
};
|
2023-10-13 21:04:24 +02:00
|
|
|
neovim.enable = true;
|
|
|
|
swaylock.enable = true;
|
|
|
|
waybar.enable = true;
|
|
|
|
zathura.enable = true;
|
2023-11-25 17:12:09 +01:00
|
|
|
hyprland = {
|
|
|
|
enable = true;
|
|
|
|
startupSound = ./mathis.m4a;
|
|
|
|
};
|
2023-10-14 19:18:01 +02:00
|
|
|
helix.enable = true;
|
2023-11-25 17:12:09 +01:00
|
|
|
newsboat.enable = true;
|
2023-10-13 21:04:24 +02: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-05 17:36:26 +01:00
|
|
|
hostAliases = {
|
|
|
|
"github".hostName = "github.com";
|
|
|
|
"git.dupa.edu.pl".hostName = "git.dupa.edu.pl";
|
|
|
|
"codeberg".hostName = "codeberg.org";
|
|
|
|
"gitlab".hostName = "gitlab.com";
|
2023-10-13 21:04:24 +02:00
|
|
|
"aur" = {
|
|
|
|
hostName = "aur.archlinux.org";
|
|
|
|
user = "aur";
|
|
|
|
};
|
2023-11-25 17:12:09 +01:00
|
|
|
"jacekpoz" = {
|
|
|
|
hostName = "git.jacekpoz.pl";
|
|
|
|
user = "forgejo";
|
|
|
|
};
|
2023-10-13 21:04:24 +02:00
|
|
|
"chmura" = {
|
2024-01-20 01:28:28 +01:00
|
|
|
hostName = "192.168.15.2";
|
2023-10-13 21:04:24 +02:00
|
|
|
user = "chmura";
|
|
|
|
};
|
2023-11-25 17:12:09 +01:00
|
|
|
"chmura2" = {
|
|
|
|
hostName = "jacekpoz.pl";
|
|
|
|
user = "chmura";
|
|
|
|
};
|
2023-10-13 21:04:24 +02:00
|
|
|
"malina" = {
|
2024-01-20 01:28:28 +01:00
|
|
|
hostName = "192.168.15.3";
|
2023-10-13 21:04:24 +02:00
|
|
|
user = "malina";
|
2023-11-25 17:12:09 +01:00
|
|
|
};
|
2024-03-05 17:36:26 +01:00
|
|
|
"outfoxxed".hostName = "git.outfoxxed.me";
|
2023-10-13 21:04:24 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-10-13 23:18:35 +02:00
|
|
|
pipewire.enable = true;
|
2023-10-13 21:04:24 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-07-13 15:11:17 +02:00
|
|
|
system.stateVersion = "23.11";
|
2023-07-06 20:03:25 +02:00
|
|
|
}
|