diff options
| author | spl3g <spleefer6@yandex.ru> | 2024-01-23 23:43:25 +0300 |
|---|---|---|
| committer | spl3g <spleefer6@yandex.ru> | 2025-05-01 14:56:39 +0300 |
| commit | f3e74cc8ef6fb944cd6e203ca25ea2cea65b778c (patch) | |
| tree | a1eecf72bb065c919eb8a23f9f03723b0f588ccb | |
| parent | 0391e12ffbf18edba79e76a299f7f84cabbe762b (diff) | |
clean up
| -rw-r--r-- | home-manager/general/default.nix | 17 | ||||
| -rw-r--r-- | nixos/general.nix | 55 | ||||
| -rw-r--r-- | nixos/laptop/configuration.nix | 10 |
3 files changed, 53 insertions, 29 deletions
diff --git a/home-manager/general/default.nix b/home-manager/general/default.nix index b66d114..da62eec 100644 --- a/home-manager/general/default.nix +++ b/home-manager/general/default.nix @@ -5,21 +5,14 @@ let configHome = "${homeDirectory}/.config"; cliPkgs = with pkgs; [ - gcc - cmake - gnumake fd - pkg-config - glib tldr wget btop # jq bat - python311 fzf nix-prefetch-scripts - libtool steam-run unzip ghostscript @@ -27,27 +20,19 @@ let ]; gamingPkgs = with pkgs; [ vkd3d - # mangohud + mangohud gamemode - # opentabletdriver bottles steam ]; guiPkgs = with pkgs; [ libreoffice-fresh - clash-verge pokemon-colorscripts telegram-desktop transmission-gtk osu-lazer-bin - easyeffects ]; - fonts = with pkgs; [ - rubik - material-design-icons - source-code-pro - ]; imports = builtins.concatMap import [ ./programs ] ++ [ ./themes ]; diff --git a/nixos/general.nix b/nixos/general.nix index 6eb11ff..73d884f 100644 --- a/nixos/general.nix +++ b/nixos/general.nix @@ -1,18 +1,18 @@ -{ inputs, outputs, lib, config, pkgs, ... }: { +{ inputs, outputs, lib, config, pkgs, ... }: + +{ nixpkgs = { overlays = [ outputs.overlays.additions outputs.overlays.modifications outputs.overlays.unstable-packages outputs.overlays.emacs-overlay - - # You can also add overlays exported from other flakes: - # neovim-nightly-overlay.overlays.default ]; config = { allowUnfree = true; }; }; + nix = { # This will add each flake input as a registry # To make nix3 commands consistent with your flake @@ -34,9 +34,11 @@ auto-optimise-store = true; }; }; + networking.networkmanager = { enable = true; }; + networking.nftables.enable = true; boot.loader = { @@ -45,6 +47,7 @@ }; security.rtkit.enable = true; + security.polkit.enable = true; services.pipewire = { enable = true; @@ -54,14 +57,50 @@ pulse.enable = true; jack.enable = true; }; + environment.systemPackages = with pkgs; [ - vim + neovim git ]; - services.udisks2 = { - enable = true; - mountOnMedia = true; + + services = { + devmon.enable = true; + gvfs.enable = true; + udisks2 = { + enable = true; + mountOnMedia = true; + }; }; + + fonts = { + packages = with pkgs; [ + # icon fonts + material-design-icons + + # normal fonts + noto-fonts + noto-fonts-cjk + noto-fonts-emoji + rubik + + # code font + source-code-pro + ]; + + enableDefaultPackages = false; + + # user defined fonts + # the reason there's Noto Color Emoji everywhere is to override DejaVu's + # B&W emojis that would sometimes show instead of some Color emojis + fontconfig.defaultFonts = { + serif = ["Noto Serif" "Noto Color Emoji"]; + sansSerif = ["Noto Sans" "Noto Color Emoji"]; + monospace = ["Source Code Pro" "Noto Color Emoji"]; + emoji = ["Noto Color Emoji"]; + }; + }; + + programs.dconf.enable = true; i18n.defaultLocale = "ru_RU.UTF-8"; programs.fish.enable = true; diff --git a/nixos/laptop/configuration.nix b/nixos/laptop/configuration.nix index 7d38479..ceed24e 100644 --- a/nixos/laptop/configuration.nix +++ b/nixos/laptop/configuration.nix @@ -17,8 +17,8 @@ time.timeZone = "Europe/Moscow"; networking.hostName = "ltrr-mini"; - virtualisation.libvirtd.enable = true; - programs.virt-manager.enable = true; + # virtualisation.libvirtd.enable = true; + # programs.virt-manager.enable = true; services.xserver = { enable = false; @@ -26,9 +26,9 @@ }; - environment.systemPackages = with pkgs; [ - qemu - ]; + # environment.systemPackages = with pkgs; [ + # qemu + # ]; programs.adb.enable = true; services.udev.packages = [ |
