mirror of
https://github.com/kp2pml30/dotfiles.git
synced 2026-02-16 23:34:42 +04:00
nix-update
This commit is contained in:
parent
94da1ce936
commit
284b131058
24 changed files with 7276 additions and 161 deletions
76
nix/personal/default.nix
Normal file
76
nix/personal/default.nix
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
{ config
|
||||
, pkgs
|
||||
, inputs
|
||||
, lib
|
||||
, ...
|
||||
}@args:
|
||||
let
|
||||
cfg = config.kp2pml30;
|
||||
in {
|
||||
options.kp2pml30 = {
|
||||
username = lib.mkOption {
|
||||
type = lib.types.string;
|
||||
default = "kp2pml30";
|
||||
};
|
||||
xserver = lib.mkEnableOption "";
|
||||
vscode = lib.mkEnableOption "";
|
||||
kitty = lib.mkEnableOption "";
|
||||
opera = lib.mkEnableOption "";
|
||||
steam = lib.mkEnableOption "";
|
||||
};
|
||||
|
||||
imports = [
|
||||
./graphical
|
||||
./home.nix
|
||||
./user.nix
|
||||
./neovim.nix
|
||||
];
|
||||
|
||||
config = {
|
||||
|
||||
boot.supportedFilesystems = [ "zfs" ];
|
||||
boot.zfs.forceImportRoot = false;
|
||||
|
||||
services.logind.extraConfig = ''
|
||||
HandlePowerKey=poweroff
|
||||
HandleLidSwitch=hibernate
|
||||
'';
|
||||
|
||||
i18n.supportedLocales = [
|
||||
"C.UTF-8/UTF-8"
|
||||
"en_US.UTF-8/UTF-8"
|
||||
"ru_RU.UTF-8/UTF-8"
|
||||
];
|
||||
|
||||
programs = {
|
||||
fish.enable = true;
|
||||
tmux.enable = true;
|
||||
yazi.enable = true;
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
fish
|
||||
fishPlugins.grc
|
||||
fishPlugins.bass
|
||||
|
||||
grc
|
||||
|
||||
fira-code
|
||||
fira-code-nerdfont
|
||||
#nerd-fonts.fira-code
|
||||
];
|
||||
|
||||
nixpkgs.config.allowUnfreePredicate = pkg:
|
||||
builtins.elem (pkgs.lib.getName pkg) [
|
||||
"vscode"
|
||||
"steam"
|
||||
"steam-run"
|
||||
"steam-original"
|
||||
"steam-unwrapped"
|
||||
"nvidia-x11"
|
||||
"nvidia-settings"
|
||||
"nvidia-persistenced"
|
||||
"opera"
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue