Home-manager to module
This commit is contained in:
1 parent
3a2ea724c0
commit
1d45ec9cab
52 files changed
+372
-347
No files matched your search
@@ -0,0 +1,20 @@
|
||||
{ lib, inputs, hostname }: {
|
||||
imports = [
|
||||
inputs.sops-nix.nixosModules.sops
|
||||
../${hostname}/hardware-configuration.nix
|
||||
../../modules/host.nix
|
||||
./packages.nix
|
||||
];
|
||||
|
||||
options = {
|
||||
host.laptop = lib.mkEnableOption "laptop mode";
|
||||
};
|
||||
|
||||
config = {
|
||||
networking.hostName = hostname;
|
||||
time.timeZone = lib.mkDefault "Europe/Moscow";
|
||||
i18n.defaultLocale = lib.mkDefault "ru_RU.UTF-8";
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
system.stateVersion = "24.05";
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
{ config, pkgs, lib, ... }: {
|
||||
services.xserver.videoDrivers = [ "nvidia" ];
|
||||
hardware = {
|
||||
graphics = {
|
||||
enable = true;
|
||||
enable32Bit = true;
|
||||
extraPackages = with pkgs; [nvidia-vaapi-driver intel-media-driver];
|
||||
extraPackages32 = with pkgs.pkgsi686Linux; [nvidia-vaapi-driver intel-media-driver];
|
||||
};
|
||||
|
||||
nvidia = {
|
||||
modesetting.enable = true;
|
||||
powerManagement = {
|
||||
enable = true;
|
||||
finegrained = false;
|
||||
};
|
||||
open = false;
|
||||
nvidiaSettings = true;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
||||
|
||||
prime = lib.optionalAttrs config.host.laptop {
|
||||
intelBusId = "PCI:0:2:0";
|
||||
nvidiaBusId = "PCI:1:0:0";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
{ pkgs, inputs, ... }: {
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
file
|
||||
tree
|
||||
wget
|
||||
git
|
||||
(btop.override { cudaSupport = true; })
|
||||
unzip
|
||||
yazi
|
||||
zip
|
||||
lazygit
|
||||
httpie
|
||||
ncdu
|
||||
tldr
|
||||
helix
|
||||
];
|
||||
|
||||
fonts.packages = with pkgs; [
|
||||
jetbrains-mono
|
||||
noto-fonts
|
||||
noto-fonts-emoji
|
||||
noto-fonts-cjk-sans
|
||||
twemoji-color-font
|
||||
font-awesome
|
||||
powerline-fonts
|
||||
powerline-symbols
|
||||
ubuntu_font_family
|
||||
unifont
|
||||
nerd-fonts.symbols-only
|
||||
corefonts
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,127 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
#let
|
||||
# thingsboard = import ./pockets/thingsboard.nix { inherit pkgs; };
|
||||
#in
|
||||
{
|
||||
nixpkgs.config = {
|
||||
allowUnfree = true;
|
||||
permittedInsecurePackages = ["python-2.7.18.12" "electron-25.9.0" "freeimage-unstable-2021-11-01" "obsidian-1.5.12"];
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
libreoffice
|
||||
wget
|
||||
home-manager
|
||||
bat
|
||||
|
||||
#VPN
|
||||
openvpn
|
||||
|
||||
#git
|
||||
pkgs.git
|
||||
lazygit
|
||||
#terminals
|
||||
ghostty
|
||||
|
||||
#VideoEditor
|
||||
kdePackages.kdenlive
|
||||
|
||||
#basePrograms for work
|
||||
pkgs.wofi
|
||||
pkgs.google-chrome
|
||||
tor-browser
|
||||
grimblast
|
||||
tree
|
||||
slurp
|
||||
fastfetch
|
||||
mako
|
||||
file
|
||||
btop
|
||||
nix-index
|
||||
unzip
|
||||
light
|
||||
zip
|
||||
brightnessctl
|
||||
openssl
|
||||
yazi
|
||||
|
||||
swww
|
||||
gnumake
|
||||
|
||||
python2
|
||||
(python3.withPackages (ps: with ps; [ requests bpython ]))
|
||||
python311Packages.pip
|
||||
|
||||
#text editor
|
||||
helix
|
||||
|
||||
# IDES
|
||||
#jetbrains.idea-community
|
||||
|
||||
#Utiles
|
||||
postman
|
||||
|
||||
# Code
|
||||
zed-editor
|
||||
|
||||
#java
|
||||
gradle
|
||||
openjdk
|
||||
|
||||
#Kotlin
|
||||
kotlin
|
||||
android-studio
|
||||
|
||||
#DB
|
||||
postgresql
|
||||
dbgate
|
||||
|
||||
# Bluetooth
|
||||
bluez
|
||||
bluez-tools
|
||||
|
||||
# Sounds
|
||||
pipewire
|
||||
pulseaudio
|
||||
pamixer
|
||||
cava
|
||||
|
||||
# obs-studio
|
||||
obs-studio
|
||||
|
||||
#videoManager
|
||||
vlc
|
||||
|
||||
#learning
|
||||
zoom-us
|
||||
obsidian
|
||||
|
||||
#Usb mouting and acsess
|
||||
udisks
|
||||
|
||||
#virtualization
|
||||
qemu
|
||||
kdePackages.partitionmanager
|
||||
|
||||
#Torent
|
||||
#torrential
|
||||
deluge
|
||||
];
|
||||
|
||||
fonts.packages = with pkgs; [
|
||||
jetbrains-mono
|
||||
noto-fonts
|
||||
(google-fonts.override{fonts=["Press Start 2P" "Overpass Mono"];})
|
||||
noto-fonts-color-emoji
|
||||
noto-fonts-cjk-sans
|
||||
twemoji-color-font
|
||||
font-awesome
|
||||
powerline-fonts
|
||||
powerline-symbols
|
||||
ubuntu-classic
|
||||
unifont
|
||||
nerd-fonts.symbols-only
|
||||
corefonts
|
||||
];
|
||||
}
|
||||
Reference in new issue
Block a user