non important commit
This commit is contained in:
parent
ff071d2bf4
commit
ab6b1d3975
18 changed files with 75 additions and 14 deletions
11
configuration/modules/system/boot.nix
Normal file
11
configuration/modules/system/boot.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{pkgs, ...}: {
|
||||
boot = {
|
||||
kernelPackages = pkgs.linuxPackages_6_6;
|
||||
kernelParams = ["nvidia-drm.modeset=1"];
|
||||
|
||||
loader.grub = {
|
||||
enable = true;
|
||||
device = "/dev/disk/by-id/ata-KINGSTON_SKC300S37A60G_50026B7239039148";
|
||||
};
|
||||
};
|
||||
}
|
||||
16
configuration/modules/system/graphics.nix
Normal file
16
configuration/modules/system/graphics.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{config, ...}: {
|
||||
services.xserver.videoDrivers = [
|
||||
"nvidia"
|
||||
];
|
||||
|
||||
hardware = {
|
||||
graphics.enable = true;
|
||||
|
||||
nvidia = {
|
||||
modesetting.enable = true;
|
||||
powerManagement.enable = true;
|
||||
open = false;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.production;
|
||||
};
|
||||
};
|
||||
}
|
||||
3
configuration/modules/system/input-handle.nix
Normal file
3
configuration/modules/system/input-handle.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
services.libinput.enable = true;
|
||||
}
|
||||
6
configuration/modules/system/keyboard.nix
Normal file
6
configuration/modules/system/keyboard.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
services.xserver.xkb = {
|
||||
layout = "cz";
|
||||
options = "caps:escape";
|
||||
};
|
||||
}
|
||||
19
configuration/modules/system/locale.nix
Normal file
19
configuration/modules/system/locale.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
console.keyMap = "cz-lat2";
|
||||
time.timeZone = "Europe/Prague";
|
||||
|
||||
i18n = {
|
||||
defaultLocale = "en_US.UTF-8";
|
||||
extraLocaleSettings = {
|
||||
LC_ADDRESS = "cs_CZ.UTF-8";
|
||||
LC_IDENTIFICATION = "cs_CZ.UTF-8";
|
||||
LC_MEASUREMENT = "cs_CZ.UTF-8";
|
||||
LC_MONETARY = "cs_CZ.UTF-8";
|
||||
LC_NAME = "cs_CZ.UTF-8";
|
||||
LC_NUMERIC = "cs_CZ.UTF-8";
|
||||
LC_PAPER = "cs_CZ.UTF-8";
|
||||
LC_TELEPHONE = "cs_CZ.UTF-8";
|
||||
LC_TIME = "cs_CZ.UTF-8";
|
||||
};
|
||||
};
|
||||
}
|
||||
8
configuration/modules/system/main-user.nix
Normal file
8
configuration/modules/system/main-user.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{pkgs, ...}: {
|
||||
users.users.benag = {
|
||||
isNormalUser = true;
|
||||
extraGroups = ["wheel"];
|
||||
|
||||
shell = pkgs.nushell;
|
||||
};
|
||||
}
|
||||
6
configuration/modules/system/networking.nix
Normal file
6
configuration/modules/system/networking.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
networking = {
|
||||
hostName = "nixos";
|
||||
networkmanager.enable = true;
|
||||
};
|
||||
}
|
||||
9
configuration/modules/system/printing.nix
Normal file
9
configuration/modules/system/printing.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
services.printing.enable = true;
|
||||
|
||||
services.avahi = {
|
||||
enable = true;
|
||||
nssmdns4 = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
}
|
||||
7
configuration/modules/system/programs.nix
Normal file
7
configuration/modules/system/programs.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
programs = {
|
||||
steam.enable = true;
|
||||
bash.blesh.enable = true;
|
||||
nix-ld.enable = true;
|
||||
};
|
||||
}
|
||||
7
configuration/modules/system/sddm.nix
Normal file
7
configuration/modules/system/sddm.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
services.displayManager.sddm = {
|
||||
enable = true;
|
||||
autoNumlock = true;
|
||||
wayland.enable = false;
|
||||
};
|
||||
}
|
||||
13
configuration/modules/system/sound.nix
Normal file
13
configuration/modules/system/sound.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
services = {
|
||||
pipewire = {
|
||||
enable = true;
|
||||
pulse.enable = true;
|
||||
|
||||
alsa = {
|
||||
enable = true;
|
||||
support32Bit = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
3
configuration/modules/system/ssh.nix
Normal file
3
configuration/modules/system/ssh.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
services.openssh.enable = true;
|
||||
}
|
||||
5
configuration/modules/system/window-manager.nix
Normal file
5
configuration/modules/system/window-manager.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
services.xserver.windowManager = {
|
||||
bspwm.enable = true;
|
||||
};
|
||||
}
|
||||
14
configuration/modules/system/xdg-settings.nix
Normal file
14
configuration/modules/system/xdg-settings.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{pkgs, ...}: {
|
||||
xdg = {
|
||||
portal = {
|
||||
enable = true;
|
||||
extraPortals = [pkgs.xdg-desktop-portal-gtk];
|
||||
configPackages = with pkgs; [
|
||||
xdg-desktop-portal-gtk
|
||||
];
|
||||
};
|
||||
|
||||
mime.enable = true;
|
||||
menus.enable = true;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue