mirror of
https://github.com/artagaz/nix-config.git
synced 2026-06-23 02:05:45 +07:00
some comments
This commit is contained in:
@@ -1,14 +1,33 @@
|
|||||||
|
############################################################################
|
||||||
|
# #
|
||||||
|
# ███╗ ██╗██╗██╗ ██╗ ██████╗ ███████╗ ██████╗ ██████╗ #
|
||||||
|
# ████╗ ██║██║╚██╗██╔╝██╔═══██╗██╔════╝ ██╔════╝ ██╔══██╗ #
|
||||||
|
# ██╔██╗ ██║██║ ╚███╔╝ ██║ ██║███████╗ ██║ ███╗██████╔╝ #
|
||||||
|
# ██║╚██╗██║██║ ██╔██╗ ██║ ██║╚════██║ ██║ ██║██╔═══╝ #
|
||||||
|
# ██║ ╚████║██║██╔╝ ██╗╚██████╔╝███████║ ╚██████╔╝██║ #
|
||||||
|
# ╚═╝ ╚═══╝╚═╝╚═╝ ╚═╝ ╚═════╝ ╚══════╝ ╚═════╝ ╚═╝ #
|
||||||
|
# #
|
||||||
|
# User: andrei | Host: nixos | Env: niri / xfce #
|
||||||
|
############################################################################
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
inputs = {
|
inputs = {
|
||||||
|
|
||||||
|
/* ┌──────────────────────────────────────────┐
|
||||||
|
│ системные импорты │
|
||||||
|
└──────────────────────────────────────────┘ */
|
||||||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||||
|
|
||||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||||
|
|
||||||
import-tree.url = "github:vic/import-tree";
|
import-tree.url = "github:vic/import-tree";
|
||||||
# nix-wrapper-modules.url = "github:BirdeeHub/nix-wrapper-modules";
|
|
||||||
|
|
||||||
niri-flake = {
|
niri-flake = {
|
||||||
url = "github:sodiboo/niri-flake";
|
url = "github:sodiboo/niri-flake";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
noctalia = {
|
noctalia = {
|
||||||
url = "github:noctalia-dev/noctalia-shell";
|
url = "github:noctalia-dev/noctalia-shell";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
@@ -18,7 +37,11 @@
|
|||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* ┌──────────────────────────────────────────┐
|
||||||
|
│ импорт модулей │
|
||||||
|
└──────────────────────────────────────────┘ */
|
||||||
outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } (inputs.import-tree ./modules);
|
outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } (inputs.import-tree ./modules);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
/* ┌──────────────────────────────────────────┐
|
||||||
|
│ это хз зачем модули какие-то │
|
||||||
|
└──────────────────────────────────────────┘ */
|
||||||
{ inputs, ...}: {
|
{ inputs, ...}: {
|
||||||
imports = [ inputs.flake-parts.flakeModules.modules ];
|
imports = [ inputs.flake-parts.flakeModules.modules ];
|
||||||
systems = [ "x86_64-linux" ];
|
systems = [ "x86_64-linux" ];
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
/* ┌──────────────────────────────────────────┐
|
||||||
|
│ home manager для программок типо │
|
||||||
|
└──────────────────────────────────────────┘ */
|
||||||
{ inputs, self, ... }:
|
{ inputs, self, ... }:
|
||||||
{
|
{
|
||||||
flake.nixosModules.home-manager = {
|
flake.nixosModules.home-manager = {
|
||||||
@@ -11,6 +14,9 @@
|
|||||||
extraSpecialArgs = { inherit inputs self; };
|
extraSpecialArgs = { inherit inputs self; };
|
||||||
backupCommand = "rm";
|
backupCommand = "rm";
|
||||||
|
|
||||||
|
/* ┌──────────────────────────────────────────┐
|
||||||
|
│ обьявляется пользователь │
|
||||||
|
└──────────────────────────────────────────┘ */
|
||||||
users.${self.user} = {
|
users.${self.user} = {
|
||||||
home.stateVersion = "26.05";
|
home.stateVersion = "26.05";
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
{ inputs, self, ... }:
|
|
||||||
{
|
|
||||||
flake.nixosConfigurations.nixos = inputs.nixpkgs.lib.nixosSystem {
|
|
||||||
modules = [ self.nixosModules.laptop ];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
{ self, ... }:
|
|
||||||
{
|
|
||||||
flake.nixosModules.laptopHardware = { config, lib, pkgs, modulesPath, ... }: {
|
|
||||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "ata_piix" "mptspi" "uhci_hcd" "ehci_pci" "ahci" "sd_mod" "sr_mod" ];
|
|
||||||
boot.initrd.kernelModules = [ ];
|
|
||||||
boot.kernelModules = [ ];
|
|
||||||
boot.extraModulePackages = [ ];
|
|
||||||
|
|
||||||
# --- ДОБАВЬ ЭТО ---
|
|
||||||
# Драйверы для VMware
|
|
||||||
services.xserver.videoDrivers = [ "vmware" ];
|
|
||||||
virtualisation.vmware.guest.enable = true;
|
|
||||||
|
|
||||||
# Ускорение рендеринга
|
|
||||||
hardware.graphics.enable = true;
|
|
||||||
# ------------------
|
|
||||||
|
|
||||||
fileSystems."/" = {
|
|
||||||
device = "/dev/disk/by-uuid/d0270880-39ef-4ae8-8701-87606a0d4578";
|
|
||||||
fsType = "ext4";
|
|
||||||
};
|
|
||||||
|
|
||||||
swapDevices = [
|
|
||||||
{ device = "/dev/disk/by-uuid/b5ad4e1d-8495-4ebc-be6b-b8be539d0ac1"; }
|
|
||||||
];
|
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,38 +1,33 @@
|
|||||||
|
/* ┌──────────────────────────────────────────┐
|
||||||
|
│ системный конфиг │
|
||||||
|
└──────────────────────────────────────────┘ */
|
||||||
{ self, ... }:
|
{ self, ... }:
|
||||||
{
|
{
|
||||||
flake.nixosModules.laptop = { pkgs, ... }: {
|
flake.nixosModules.nixxx = { pkgs, ... }: {
|
||||||
|
|
||||||
# Import NixOS modules.
|
/* ┌──────────────────────────────────────────┐
|
||||||
|
│ импорт модулей с програмками │
|
||||||
|
└──────────────────────────────────────────┘ */
|
||||||
imports = [
|
imports = [
|
||||||
self.nixosModules.laptopHardware
|
self.nixosModules.nixxxHardware
|
||||||
|
|
||||||
|
# тут программки
|
||||||
self.nixosModules.base
|
self.nixosModules.base
|
||||||
|
|
||||||
|
# тут описанные через flakes
|
||||||
self.nixosModules.fastfetch
|
self.nixosModules.fastfetch
|
||||||
self.nixosModules.home-manager
|
self.nixosModules.home-manager
|
||||||
|
self.nixosModules.vscode
|
||||||
|
|
||||||
#self.nixosModules.cinnamon
|
# тут графические окружения
|
||||||
self.nixosModules.niri
|
self.nixosModules.niri
|
||||||
self.nixosModules.xfcerdp
|
self.nixosModules.xfcerdp
|
||||||
self.nixosModules.vscode
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Use the systemd-boot EFI boot loader.
|
|
||||||
# boot.loader.systemd-boot.enable = true;
|
|
||||||
# boot.loader.efi.canTouchEfiVariables = true;
|
|
||||||
# boot.loader.timeout = 1;
|
|
||||||
|
|
||||||
# Use the GRUB EFI boot loader.
|
|
||||||
# boot.loader = {
|
|
||||||
# grub = {
|
|
||||||
# enable = true;
|
|
||||||
# device = "nodev"; # "nodev" is used for UEFI
|
|
||||||
# efiSupport = true;
|
|
||||||
# useOSProber = true;
|
|
||||||
# };
|
|
||||||
# efi.canTouchEfiVariables = true;
|
|
||||||
# };
|
|
||||||
|
|
||||||
|
/* ┌──────────────────────────────────────────┐
|
||||||
|
│ GRUB │
|
||||||
|
└──────────────────────────────────────────┘ */
|
||||||
boot.loader.grub.enable = true;
|
boot.loader.grub.enable = true;
|
||||||
boot.loader.grub.device = "/dev/sda";
|
boot.loader.grub.device = "/dev/sda";
|
||||||
boot.loader.grub.useOSProber = true;
|
boot.loader.grub.useOSProber = true;
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
/* ┌──────────────────────────────────────────┐
|
||||||
|
│ где модули │
|
||||||
|
└──────────────────────────────────────────┘ */
|
||||||
|
{ inputs, self, ... }:
|
||||||
|
{
|
||||||
|
flake.nixosConfigurations.nixos = inputs.nixpkgs.lib.nixosSystem {
|
||||||
|
modules = [ self.nixosModules.nixxx ];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
/* ┌───────────────────────────────────────────────────┐
|
||||||
|
│системные настройки через команду надо взять конфиг│
|
||||||
|
└───────────────────────────────────────────────────┘ */
|
||||||
|
{ self, ... }:
|
||||||
|
{
|
||||||
|
flake.nixosModules.nixxxHardware = { config, lib, pkgs, modulesPath, ... }: {
|
||||||
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [ "ata_piix" "mptspi" "uhci_hcd" "ehci_pci" "ahci" "sd_mod" "sr_mod" ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
/* ┌──────────────────────────────────────────┐
|
||||||
|
│ VMware │
|
||||||
|
└──────────────────────────────────────────┘ */
|
||||||
|
services.xserver.videoDrivers = [ "vmware" ];
|
||||||
|
virtualisation.vmware.guest.enable = true;
|
||||||
|
hardware.graphics.enable = true;
|
||||||
|
|
||||||
|
/* ┌──────────────────────────────────────────┐
|
||||||
|
│ диски │
|
||||||
|
└──────────────────────────────────────────┘ */
|
||||||
|
fileSystems."/" = {
|
||||||
|
device = "/dev/disk/by-uuid/d0270880-39ef-4ae8-8701-87606a0d4578";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
swapDevices = [
|
||||||
|
{ device = "/dev/disk/by-uuid/b5ad4e1d-8495-4ebc-be6b-b8be539d0ac1"; }
|
||||||
|
];
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -7,8 +7,8 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
user = {
|
user = {
|
||||||
name = "Senior Matt";
|
name = "andre";
|
||||||
email = "matthew.prakhov@gmail.com";
|
email = "vaylinnnn6@gmail.com";
|
||||||
};
|
};
|
||||||
core = {
|
core = {
|
||||||
editor = "nvim";
|
editor = "nvim";
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
/* ┌──────────────────────────────────────────┐
|
||||||
|
│ темы шрифты обои и тд │
|
||||||
|
└──────────────────────────────────────────┘ */
|
||||||
|
|
||||||
|
|
||||||
{ self, ... }:
|
{ self, ... }:
|
||||||
let
|
let
|
||||||
wallpaper = "/home/${self.user}/Pictures/romashki.jpg";
|
wallpaper = "/home/${self.user}/Pictures/romashki.jpg";
|
||||||
|
|||||||
Reference in New Issue
Block a user