configuration.nix/nixos/laptop/default.nix

154 lines
2.6 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
};
};
time.timeZone = "Europe/Sofia";
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; [
binutils
2023-12-01 13:22:56 +01:00
bun
2023-08-12 14:41:57 +02:00
busybox
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
pinentry-qt
python311
srm
2023-11-20 09:45:47 +01:00
tealdeer
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 = {
stevenBlackHosts = {
enable = true;
blockFakenews = true;
blockGambling = true;
2023-11-27 22:03:27 +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 = {
gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
zsh.enable = true;
nix-ld.enable = true;
2023-11-27 17:02:10 +01:00
wshowkeys.enable = true;
2023-08-12 14:41:57 +02:00
};
users = {
defaultUserShell = pkgs.zsh;
2023-11-14 15:40:34 +01:00
users = {
ivand = {
isNormalUser = true;
extraGroups = [
"wheel"
"adm"
"audio"
"video"
"kvm"
"render"
"flatpak"
"bluetooth"
"mlocate"
"dialout"
];
};
vid = {
isNormalUser = true;
extraGroups = [
"video"
"mlocate"
];
};
2023-08-12 14:41:57 +02:00
};
extraGroups = { mlocate = { }; };
};
services = {
xserver.videoDrivers = [ "nouveau" ];
dbus.enable = true;
flatpak.enable = true;
ratbagd.enable = true;
pipewire = {
enable = true;
alsa.enable = true;
pulse.enable = true;
};
};
}