configuration.nix/configuration.nix
2023-07-13 20:36:13 +03:00

133 lines
2.1 KiB
Nix

{
config,
pkgs,
...
}: {
imports = [
./hardware-configuration.nix
<home-manager/nixos>
];
system.stateVersion = "23.05";
hardware = {
pulseaudio.enable = true;
opengl = {
enable = true;
driSupport = true;
};
};
boot = {
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
};
security = {
polkit.enable = true;
};
xdg = {
portal = {
enable = true;
};
};
time.timeZone = "Europe/Sofia";
fonts.fonts = with pkgs; [nerdfonts];
environment = {
systemPackages = with pkgs; [
binutils
cmatrix
deno
ffmpeg
firefox-devedition-bin
gimp
git
glibc
gnome.cheese
gnumake
grim
home-manager
jmtpfs
libgccjit
libmtp
lolcat
mako
mlocate
mupdf
nodejs_20
nodePackages_latest.pnpm
pinentry-qt
rustup
slurp
tealdeer
tectonic
thunderbird
tor-browser-bundle-bin
ungoogled-chromium
unzip
vim
vimPlugins.nvchad
viu
wayland
wdisplays
wget
wl-clipboard
xdg-user-dirs
xdg-utils
zbar
zip
];
variables = {
EDITOR = "nvim";
PNPM_HOME = "$HOME/.local/share/pnpm";
};
shells = with pkgs; [zsh];
etc = {
"xdg/user-dirs.conf".text = ''
enabled=True
'';
};
};
networking.extraHosts = builtins.readFile (pkgs.fetchFromGitHub {
owner = "StevenBlack";
repo = "hosts";
rev = "5bf0802369cd74796bc5c4194c46ddc019541877";
sha256 = "sha256-4CXI2vu/zBQeSzLKelaey/5WEjfroRs7LP9BvZ4CsTQ=";
}
+ "/hosts");
programs = {
gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
sway.enable = true;
zsh.enable = true;
nix-ld.enable = true;
};
users = {
defaultUserShell = pkgs.zsh;
users.ivand = {
isNormalUser = true;
extraGroups = ["wheel" "audio" "mlocate"];
};
extraGroups = {
mlocate = {};
};
};
services = {
flatpak = {
enable = true;
};
};
}