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,28 @@
|
||||
# Edit this configuration file to define what should be installed on
|
||||
# your system. Help is available in the configuration.nix(5) man page
|
||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||
{ config, pkgs, pkgs-stable, lib, inputs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./modules/grab.nix
|
||||
|
||||
(import ../modules/common.nix {
|
||||
inherit lib;
|
||||
inherit inputs;
|
||||
hostname = "WhiteRaven";
|
||||
})
|
||||
|
||||
(import ../../user/common.nix {
|
||||
inherit config;
|
||||
inherit pkgs;
|
||||
inherit pkgs-stable;
|
||||
inherit lib;
|
||||
inherit inputs;
|
||||
name = "kirill";
|
||||
fullname = "Black Raven";
|
||||
})
|
||||
];
|
||||
|
||||
hardware.bluetooth.enable = true;
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/4c9e1a11-d5c3-4308-8517-d300ce705bb0";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/88A3-9F2F";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" "nofail" ];
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.wlp2s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{ pkgs, ... }: let
|
||||
theme = pkgs.fetchFromGitHub {
|
||||
owner = "Patato777";
|
||||
repo = "dotfiles";
|
||||
rev = "cc363921707807d7ad3e36b462f0df793a0fe18a";
|
||||
hash = "sha256-fpXGFNrzbV6K9hoZRX4tGieTLzhpPeGm6wn8CF4OGow=";
|
||||
};
|
||||
in {
|
||||
boot.loader.grub = {
|
||||
gfxmodeEfi = "1920x1080";
|
||||
theme = "${theme}/grub/themes/virtuaverse";
|
||||
};
|
||||
}
|
||||
@@ -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