configuration.nix/nixos/laptop/default.nix

162 lines
2.8 KiB
Nix
Raw Normal View History

2023-08-12 14:41:57 +02:00
{ config, pkgs, ... }: {
2023-08-07 10:19:48 +02:00
2023-09-09 10:12:43 +02:00
system.stateVersion = "23.11";
2023-08-12 14:41:57 +02:00
nix = {
gc = {
automatic = true;
options = "--delete-older-than 7d";
};
2023-10-01 17:35:46 +02:00
extraOptions = ''
experimental-features = nix-command flakes
'';
2023-08-12 14:41:57 +02:00
};
hardware = {
opengl = {
enable = true;
driSupport = true;
};
};
boot = {
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
2023-09-04 18:19:57 +02:00
extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];
kernelModules = [ "v4l2loopback" ];
2023-08-12 14:41:57 +02:00
};
security = {
polkit.enable = true;
rtkit.enable = true;
pam = { services = { swaylock = { }; }; };
};
xdg = {
portal = {
enable = true;
wlr.enable = true;
2023-11-25 16:34:43 +01:00
config.common.default = "*";
2023-08-12 14:41:57 +02:00
};
};
2024-01-30 14:01:55 +01:00
time.timeZone = "Europe/Sofia";
2023-08-12 14:41:57 +02:00
2023-08-27 13:15:33 +02:00
fonts.packages = with pkgs; [ nerdfonts noto-fonts noto-fonts-emoji noto-fonts-lgc-plus ];
2023-08-12 14:41:57 +02:00
environment = {
systemPackages = with pkgs; [
2024-02-16 14:39:32 +01:00
acpi
2023-08-12 14:41:57 +02:00
binutils
2023-12-01 13:22:56 +01:00
bun
2023-08-12 14:41:57 +02:00
cmatrix
coreutils-full
2023-12-01 13:22:56 +01:00
cryptsetup
2023-11-19 10:31:46 +01:00
dig
2023-08-12 14:41:57 +02:00
fd
2023-12-01 13:22:56 +01:00
file
gcc13
2023-08-12 14:41:57 +02:00
git
glibc
gnumake
home-manager
jq
libgccjit
mlocate
2023-12-01 13:22:56 +01:00
moreutils
nix-prefetch-github
nodejs_20
ntfs3g
openssl
python311
srm
2023-08-12 14:41:57 +02:00
unzip
vim
2023-12-01 13:22:56 +01:00
wf-recorder
2023-08-12 14:41:57 +02:00
wget
zip
2023-08-07 10:19:48 +02:00
];
2023-08-12 14:41:57 +02:00
variables = {
EDITOR = "nvim";
};
shells = with pkgs; [ zsh ];
etc = {
"xdg/user-dirs.conf".text = ''
enabled=True
'';
};
};
2023-08-07 10:19:48 +02:00
2023-11-01 19:02:35 +01:00
networking = {
2024-02-22 17:23:36 +01:00
wireless = {
enable = true;
networks = {
"Smart-Hostel-2.4" = {
psk = "smarttrans.bg";
};
};
};
2023-11-01 19:02:35 +01:00
stevenBlackHosts = {
enable = true;
blockFakenews = true;
blockGambling = true;
2024-01-07 08:35:03 +01:00
# blockSocial = true;
2023-11-01 19:02:35 +01:00
};
};
2023-08-07 10:19:48 +02:00
2023-08-12 14:41:57 +02:00
programs = {
zsh.enable = true;
nix-ld.enable = true;
2023-11-27 17:02:10 +01:00
wshowkeys.enable = true;
2024-01-27 13:24:29 +01:00
adb.enable = true;
2023-08-12 14:41:57 +02:00
};
users = {
defaultUserShell = pkgs.zsh;
2023-11-14 15:40:34 +01:00
users = {
ivand = {
2024-01-29 08:48:15 +01:00
shell = pkgs.nushell;
2023-11-14 15:40:34 +01:00
isNormalUser = true;
extraGroups = [
2024-01-27 13:24:29 +01:00
"adbusers"
2023-11-14 15:40:34 +01:00
"adm"
"audio"
"bluetooth"
"dialout"
2024-01-27 13:24:29 +01:00
"flatpak"
"kvm"
"mlocate"
"render"
"video"
"wheel"
2023-11-14 15:40:34 +01:00
];
};
2023-08-12 14:41:57 +02:00
};
extraGroups = { mlocate = { }; };
};
services = {
xserver.videoDrivers = [ "nouveau" ];
dbus.enable = true;
flatpak.enable = true;
ratbagd.enable = true;
2023-12-04 17:19:58 +01:00
postgresql.enable = true;
2024-02-16 14:34:19 +01:00
upower.enable = true;
2023-12-08 16:29:54 +01:00
i2pd = {
enable = true;
proto.httpProxy.enable = true;
};
2023-08-12 14:41:57 +02:00
pipewire = {
enable = true;
alsa.enable = true;
2023-12-09 13:14:45 +01:00
pulse.enable = true;
2023-08-12 14:41:57 +02:00
};
};
2024-03-05 15:36:25 +01:00
virtualisation = {
waydroid.enable = true;
};
2023-08-12 14:41:57 +02:00
}