mirror of
https://github.com/semere-meb/dotfiles-nix.git
synced 2026-08-03 10:24:36 +00:00
reduced kernel logs and formatted the files
This commit is contained in:
parent
839b7404cf
commit
3ba0464f5f
10 changed files with 186 additions and 94 deletions
|
|
@ -1,4 +1,9 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.dotfiles.core;
|
||||
|
|
@ -12,6 +17,17 @@ in
|
|||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
boot.consoleLogLevel = 0;
|
||||
boot.initrd.verbose = false;
|
||||
boot.kernelParams = [
|
||||
"quiet"
|
||||
"splash"
|
||||
"boot.shell_on_fail"
|
||||
"loglevel=3"
|
||||
"rd.systemd.show_status=false"
|
||||
"rd.udev.log_level=3"
|
||||
"udev.log_priority=3"
|
||||
];
|
||||
|
||||
time.timeZone = "Europe/Berlin";
|
||||
|
||||
|
|
@ -21,7 +37,10 @@ in
|
|||
|
||||
nix = {
|
||||
settings = {
|
||||
experimental-features = [ "nix-command" "flakes" ];
|
||||
experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
auto-optimise-store = true;
|
||||
};
|
||||
gc = {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,9 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
|
|
|
|||
|
|
@ -1,4 +1,10 @@
|
|||
{ config, lib, pkgs, userVars, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
userVars,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.dotfiles.desktop;
|
||||
|
|
@ -28,13 +34,16 @@ in
|
|||
];
|
||||
|
||||
fonts.fontconfig.defaultFonts = {
|
||||
monospace = [ "JetBrainsMono Nerd Font" "Noto Sans Mono" ];
|
||||
monospace = [
|
||||
"JetBrainsMono Nerd Font"
|
||||
"Noto Sans Mono"
|
||||
];
|
||||
emoji = [ "Noto Color Emoji" ];
|
||||
};
|
||||
|
||||
hardware.graphics.enable = true;
|
||||
security.polkit.enable = true;
|
||||
security.pam.services.swaylock = {};
|
||||
security.pam.services.swaylock = { };
|
||||
|
||||
services.getty.autologinUser = "${userVars.username}";
|
||||
|
||||
|
|
@ -87,8 +96,15 @@ in
|
|||
lock = "${pkgs.swaylock-effects}/bin/swaylock -f";
|
||||
};
|
||||
timeouts = [
|
||||
{ timeout = 300; command = "${pkgs.swaylock-effects}/bin/swaylock -f"; }
|
||||
{ timeout = 600; command = "${pkgs.wlopm}/bin/wlopm --off '*'"; resumeCommand = "${pkgs.wlopm}/bin/wlopm --on '*'"; }
|
||||
{
|
||||
timeout = 300;
|
||||
command = "${pkgs.swaylock-effects}/bin/swaylock -f";
|
||||
}
|
||||
{
|
||||
timeout = 600;
|
||||
command = "${pkgs.wlopm}/bin/wlopm --off '*'";
|
||||
resumeCommand = "${pkgs.wlopm}/bin/wlopm --on '*'";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,9 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.dotfiles.dev;
|
||||
|
|
|
|||
|
|
@ -1,12 +1,18 @@
|
|||
{ config, lib, pkgs, userVars, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
userVars,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.dotfiles.shell;
|
||||
|
||||
shellDir = ./.;
|
||||
otherShellFiles = builtins.filter
|
||||
(name: name != "default.nix" && lib.strings.hasSuffix ".nix" name)
|
||||
(builtins.attrNames (builtins.readDir shellDir));
|
||||
otherShellFiles = builtins.filter (
|
||||
name: name != "default.nix" && lib.strings.hasSuffix ".nix" name
|
||||
) (builtins.attrNames (builtins.readDir shellDir));
|
||||
importedModules = map (file: shellDir + "/${file}") otherShellFiles;
|
||||
in
|
||||
{
|
||||
|
|
@ -55,7 +61,6 @@ in
|
|||
pinentry.package = pkgs.pinentry-qt;
|
||||
};
|
||||
|
||||
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,10 @@ in
|
|||
auto-info = true;
|
||||
rulers = [ 80 ];
|
||||
bufferline = "multiple";
|
||||
shell = [ "zsh" "-c" ];
|
||||
shell = [
|
||||
"zsh"
|
||||
"-c"
|
||||
];
|
||||
jump-label-alphabet = "asdfghjklqwertyuiopzxcvbnm";
|
||||
|
||||
cursor-shape = {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,10 @@
|
|||
{ config, lib, pkgs, userVars, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
userVars,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.dotfiles.user;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue