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.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/users.nix
./hosts/generic/home-persistence.nix
./hosts/generic/zapret.nix
./hosts/Aphelion/hardware-Aphelion.nix
./hosts/Aphelion/nvidia.nix
./desktop/gnome.nix
+1
View File
@@ -73,6 +73,7 @@ in
nil
obs-studio
nicotine-plus
qbittorrent
];
xdg.enable = true;
+14 -1
View File
@@ -19,8 +19,12 @@ programs.neovim = {
mini-nvim
nvim-tree-lua
nvim-lspconfig
coq_nvim
vim-nix
cmp-nvim-lsp
cmp-buffer
cmp-path
cmp-cmdline
nvim-cmp
];
extraLuaConfig = ''
local function my_on_attach(bufnr)
@@ -55,6 +59,15 @@ programs.neovim = {
}
vim.lsp.enable('pyright')
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" ];
};
fileSystems."/home/yaroslav" =
{ device = "none";
fsType = "tmpfs";
options = [ "defaults" "size=1G" "uid=1000" "gid=100" ];
};
# fileSystems."/home/yaroslav" =
# { device = "none";
# fsType = "tmpfs";
# options = [ "defaults" "size=1G" "uid=1000" "gid=100" ];
# };
fileSystems."/vol/Trash" = {
device = "/dev/mapper/yarikpc-trash";
fsType = "ext4";
+4 -1
View File
@@ -8,6 +8,8 @@
".local/share/nicotine"
".local/share/mpd"
".local/share/AyuGramDesktop"
".config/dconf"
".mozilla"
".local/state"
# XDG User directories
"Downloads"
@@ -15,13 +17,14 @@
"Pictures"
"Documents"
"Videos"
"some-trash"
".cert"
".ssh"
".steam"
];
files = [
".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"
];
};
}