nixos-configs/modules/system.nix

99 lines
1.9 KiB
Nix
Raw Normal View History

{ config, lib, pkgs, nixpkgs, pkgs-unstable, nixpkgs-unstable, ... }:
2020-02-21 01:23:10 +01:00
{
2021-07-02 00:15:06 +02:00
nix = {
package = pkgs.nixUnstable;
2022-07-27 04:27:21 +02:00
settings = {
extra-sandbox-paths = [
"/var/keys/netrc"
];
2022-09-15 00:55:53 +02:00
substituters = [
"http://cache.banditlair.com"
"https://cache.nixos.org/"
];
trusted-public-keys = [
"cache.banditlair.com:4zk7iDvzKh6VN+LxzKIGcVPKgL5dLeyEt2ydrgx4o8c="
];
2022-07-27 04:27:21 +02:00
};
2021-07-02 00:15:06 +02:00
extraOptions = ''
experimental-features = nix-command flakes
'';
nixPath = [
"nixpkgs=${nixpkgs-unstable}"
];
2021-07-02 00:15:06 +02:00
};
environment.systemPackages = with pkgs-unstable; [
2020-02-21 01:23:10 +01:00
wget
inetutils
openvpn
openfortivpn
2020-02-21 01:23:10 +01:00
man
2020-03-02 04:59:42 +01:00
dos2unix
2020-02-21 01:23:10 +01:00
vim
git
2020-12-25 15:49:32 +01:00
git-lfs
2020-03-02 04:59:42 +01:00
zip
2020-02-24 19:42:25 +01:00
unzip
2020-02-21 01:23:10 +01:00
htop
ncdu
2020-03-02 04:59:42 +01:00
nload
2020-02-21 01:23:10 +01:00
pciutils
2022-11-29 22:51:31 +01:00
lsof
dnsutils
2020-02-21 01:23:10 +01:00
];
fonts = {
fonts = with pkgs-unstable; [
2021-08-23 15:04:58 +02:00
corefonts # Microsoft free fonts
2022-10-05 20:34:38 +02:00
meslo-lgs-nf
2020-02-21 01:23:10 +01:00
];
fontconfig.defaultFonts = {
2022-10-05 20:34:38 +02:00
monospace = [ "MesloLGS NF" ];
2020-02-21 01:23:10 +01:00
};
};
sound.enable = true;
hardware.pulseaudio.enable = true;
hardware.pulseaudio.support32Bit = true;
2021-04-13 10:48:59 +02:00
programs.adb.enable = true;
2020-02-21 01:23:10 +01:00
users.users.froidmpa = {
isNormalUser = true;
2021-04-13 10:48:59 +02:00
extraGroups = [ "wheel" "adbusers" ];
2020-02-21 01:23:10 +01:00
shell = pkgs.zsh;
};
programs.ssh.startAgent = true;
2020-02-21 01:23:10 +01:00
services.xserver = {
enable = true;
layout = "fr";
desktopManager.xterm.enable = false;
windowManager.xmonad.enable = true;
2020-02-22 04:29:00 +01:00
displayManager.lightdm = {
enable = true;
background = "/etc/nixos/configs/files/wallpaper.png";
};
2020-02-21 01:23:10 +01:00
};
2020-03-09 23:20:16 +01:00
2022-08-31 22:00:20 +02:00
services.udisks2.enable = true;
systemd.packages = [ pkgs.dconf ];
2020-03-09 23:20:16 +01:00
# Required for custom GTK themes
2022-01-27 07:41:14 +01:00
services.dbus.packages = with pkgs; [ dconf ];
2022-09-05 01:37:52 +02:00
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
2023-02-14 15:28:10 +01:00
services.flatpak.enable = true;
xdg.portal = {
enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
};
2020-02-24 19:42:25 +01:00
}