first commit
This commit is contained in:
commit
780ddcda1c
37 changed files with 981 additions and 0 deletions
10
configuration/modules/boot.nix
Normal file
10
configuration/modules/boot.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{pkgs, ...}: {
|
||||
boot = {
|
||||
kernelPackages = pkgs.linuxPackages_6_6;
|
||||
|
||||
loader.grub = {
|
||||
enable = true;
|
||||
device = "/dev/disk/by-id/ata-KINGSTON_SKC300S37A60G_50026B7239039148";
|
||||
};
|
||||
};
|
||||
}
|
||||
13
configuration/modules/graphics.nix
Normal file
13
configuration/modules/graphics.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{config, ...}: {
|
||||
services.xserver.videoDrivers = ["nvidia"];
|
||||
|
||||
hardware = {
|
||||
graphics.enable = true;
|
||||
|
||||
nvidia = {
|
||||
modesetting.enable = true;
|
||||
open = false;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.legacy_470;
|
||||
};
|
||||
};
|
||||
}
|
||||
3
configuration/modules/input-handle.nix
Normal file
3
configuration/modules/input-handle.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
services.libinput.enable = true;
|
||||
}
|
||||
6
configuration/modules/keyboard.nix
Normal file
6
configuration/modules/keyboard.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
services.xserver.xkb = {
|
||||
layout = "cz";
|
||||
options = "caps:escape";
|
||||
};
|
||||
}
|
||||
19
configuration/modules/locale.nix
Normal file
19
configuration/modules/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/main-user.nix
Normal file
8
configuration/modules/main-user.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{pkgs, ...}: {
|
||||
users.users.benag = {
|
||||
isNormalUser = true;
|
||||
extraGroups = ["wheel"];
|
||||
|
||||
shell = pkgs.nushell;
|
||||
};
|
||||
}
|
||||
6
configuration/modules/networking.nix
Normal file
6
configuration/modules/networking.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
networking = {
|
||||
hostName = "nixos";
|
||||
networkmanager.enable = true;
|
||||
};
|
||||
}
|
||||
3
configuration/modules/printing.nix
Normal file
3
configuration/modules/printing.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
services.printing.enable = true;
|
||||
}
|
||||
8
configuration/modules/programs.nix
Normal file
8
configuration/modules/programs.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
programs = {
|
||||
firefox.enable = true;
|
||||
steam.enable = true;
|
||||
bash.blesh.enable = true;
|
||||
nix-ld.enable = true;
|
||||
};
|
||||
}
|
||||
3
configuration/modules/sddm.nix
Normal file
3
configuration/modules/sddm.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
services.displayManager.sddm.enable = true;
|
||||
}
|
||||
13
configuration/modules/sound.nix
Normal file
13
configuration/modules/sound.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
services = {
|
||||
pipewire = {
|
||||
enable = true;
|
||||
pulse.enable = true;
|
||||
|
||||
alsa = {
|
||||
enable = true;
|
||||
support32Bit = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
3
configuration/modules/ssh.nix
Normal file
3
configuration/modules/ssh.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
services.openssh.enable = true;
|
||||
}
|
||||
5
configuration/modules/window-manager.nix
Normal file
5
configuration/modules/window-manager.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
services.xserver.windowManager = {
|
||||
bspwm.enable = true;
|
||||
};
|
||||
}
|
||||
9
configuration/modules/xdg-settings.nix
Normal file
9
configuration/modules/xdg-settings.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{pkgs, ...}: {
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
extraPortals = [pkgs.xdg-desktop-portal-gtk];
|
||||
configPackages = with pkgs; [
|
||||
xdg-desktop-portal-gtk
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue