added zapret.nix

This commit is contained in:
2025-06-08 10:36:13 +03:00
parent f3150a6c99
commit 72f0c6057c
8 changed files with 43 additions and 39 deletions
+7 -1
View File
@@ -1,5 +1,11 @@
{ config, ... }: { pkgs, ... }:
{ {
services.displayManager.gdm.enable = true; services.displayManager.gdm.enable = true;
services.desktopManager.gnome.enable = true; services.desktopManager.gnome.enable = true;
environment.gnome.excludePackages =
(with pkgs; [
gnome-tour
epiphany
gnome-disk-utility
]);
} }
-31
View File
@@ -1,31 +0,0 @@
{
description = "NixOS configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
outputs =
{ nixpkgs, home-manager, ... }:
{
nixosConfigurations = {
hostname = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.jdoe = ./home.nix;
# Optionally, use home-manager.extraSpecialArgs to pass
# arguments to home.nix
}
];
};
};
};
}
+1
View File
@@ -43,6 +43,7 @@
./hosts/generic/configuration_generic.nix ./hosts/generic/configuration_generic.nix
./hosts/generic/users.nix ./hosts/generic/users.nix
./hosts/generic/home-persistence.nix ./hosts/generic/home-persistence.nix
./hosts/generic/zapret.nix
./hosts/Aphelion/hardware-Aphelion.nix ./hosts/Aphelion/hardware-Aphelion.nix
./hosts/Aphelion/nvidia.nix ./hosts/Aphelion/nvidia.nix
./desktop/gnome.nix ./desktop/gnome.nix
+1
View File
@@ -73,6 +73,7 @@ in
nil nil
obs-studio obs-studio
nicotine-plus nicotine-plus
qbittorrent
]; ];
xdg.enable = true; xdg.enable = true;
+14 -1
View File
@@ -19,8 +19,12 @@ programs.neovim = {
mini-nvim mini-nvim
nvim-tree-lua nvim-tree-lua
nvim-lspconfig nvim-lspconfig
coq_nvim
vim-nix vim-nix
cmp-nvim-lsp
cmp-buffer
cmp-path
cmp-cmdline
nvim-cmp
]; ];
extraLuaConfig = '' extraLuaConfig = ''
local function my_on_attach(bufnr) local function my_on_attach(bufnr)
@@ -55,6 +59,15 @@ programs.neovim = {
} }
vim.lsp.enable('pyright') vim.lsp.enable('pyright')
vim.lsp.enable('nil_ls') vim.lsp.enable('nil_ls')
local cmp = require 'cmp'
cmp.setup({
snippet = {
expand = function(args)
vim.fn["vsnip#anonymous"](args.body)
end,
},
})
''; '';
}; };
+5 -5
View File
@@ -42,11 +42,11 @@
options = [ "fmask=0022" "dmask=0022" ]; options = [ "fmask=0022" "dmask=0022" ];
}; };
fileSystems."/home/yaroslav" = # fileSystems."/home/yaroslav" =
{ device = "none"; # { device = "none";
fsType = "tmpfs"; # fsType = "tmpfs";
options = [ "defaults" "size=1G" "uid=1000" "gid=100" ]; # options = [ "defaults" "size=1G" "uid=1000" "gid=100" ];
}; # };
fileSystems."/vol/Trash" = { fileSystems."/vol/Trash" = {
device = "/dev/mapper/yarikpc-trash"; device = "/dev/mapper/yarikpc-trash";
fsType = "ext4"; fsType = "ext4";
+4 -1
View File
@@ -8,6 +8,8 @@
".local/share/nicotine" ".local/share/nicotine"
".local/share/mpd" ".local/share/mpd"
".local/share/AyuGramDesktop" ".local/share/AyuGramDesktop"
".config/dconf"
".mozilla"
".local/state" ".local/state"
# XDG User directories # XDG User directories
"Downloads" "Downloads"
@@ -15,13 +17,14 @@
"Pictures" "Pictures"
"Documents" "Documents"
"Videos" "Videos"
"some-trash"
".cert" ".cert"
".ssh" ".ssh"
".steam" ".steam"
]; ];
files = [ files = [
".p10k.zsh" ".p10k.zsh"
".zhistory" ".zsh_history"
]; ];
}; };
}; };
+11
View File
@@ -0,0 +1,11 @@
{ ... }:
{
services.zapret = {
enable = true;
params = [
"--dpi-desync=fake,disorder2"
"--dpi-desync-ttl=1"
"--dpi-desync-autottl=2"
];
};
}