refactors
This commit is contained in:
parent
26b798c4b3
commit
d18110a018
15 changed files with 230 additions and 379 deletions
13
configuration/modules/audio.nix
Normal file
13
configuration/modules/audio.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa = {
|
||||
enable = true;
|
||||
support32Bit = true;
|
||||
};
|
||||
pulse.enable = true;
|
||||
jack.enable = true;
|
||||
};
|
||||
|
||||
security.rtkit.enable = true;
|
||||
}
|
||||
11
configuration/modules/boot.nix
Normal file
11
configuration/modules/boot.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{pkgs, ...}: {
|
||||
boot = {
|
||||
loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
#kernelPackages = pkgs.linuxPackages_zen;
|
||||
};
|
||||
}
|
||||
52
configuration/modules/desktop.nix
Normal file
52
configuration/modules/desktop.nix
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
wl-clipboard
|
||||
libsForQt5.qt5.qtquickcontrols2
|
||||
libsForQt5.qt5.qtgraphicaleffects
|
||||
];
|
||||
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
enable32Bit = true;
|
||||
};
|
||||
|
||||
xdg = {
|
||||
mime.enable = true;
|
||||
menus.enable = true;
|
||||
portal.enable = true;
|
||||
};
|
||||
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
withUWSM = true;
|
||||
package = inputs.hyprland.packages."x86_64-linux".hyprland;
|
||||
portalPackage = inputs.hyprland.packages."x86_64-linux".xdg-desktop-portal-hyprland;
|
||||
};
|
||||
|
||||
services = {
|
||||
xserver = {
|
||||
enable = true;
|
||||
videoDrivers = ["amdgpu"];
|
||||
xkb = {
|
||||
layout = "cz";
|
||||
variant = "";
|
||||
options = "caps:escape";
|
||||
};
|
||||
};
|
||||
displayManager.sddm = {
|
||||
enable = true;
|
||||
theme = "${import ./sddm-theme.nix {inherit pkgs;}}";
|
||||
autoNumlock = true;
|
||||
};
|
||||
};
|
||||
|
||||
environment.sessionVariables = {
|
||||
XDG_CURRENT_DESKTOP = "Hyprland";
|
||||
TERMINAL = "foot";
|
||||
EDITOR = "nvim";
|
||||
};
|
||||
}
|
||||
22
configuration/modules/file-management.nix
Normal file
22
configuration/modules/file-management.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
gvfs
|
||||
];
|
||||
|
||||
programs = {
|
||||
xfconf.enable = true;
|
||||
thunar = {
|
||||
enable = true;
|
||||
plugins = with pkgs.xfce; [
|
||||
thunar-archive-plugin
|
||||
thunar-volman
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
services = {
|
||||
devmon.enable = true;
|
||||
gvfs.enable = true;
|
||||
tumbler.enable = true;
|
||||
};
|
||||
}
|
||||
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";
|
||||
};
|
||||
};
|
||||
}
|
||||
9
configuration/modules/main-user.nix
Normal file
9
configuration/modules/main-user.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{pkgs, ...}: {
|
||||
users.users.maxag = {
|
||||
isNormalUser = true;
|
||||
description = "Max Ag";
|
||||
extraGroups = ["networkmanager" "wheel" "video" "input"];
|
||||
|
||||
shell = pkgs.nushell;
|
||||
};
|
||||
}
|
||||
3
configuration/modules/printing.nix
Normal file
3
configuration/modules/printing.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
services.printing.enable = true;
|
||||
}
|
||||
12
configuration/modules/programs.nix
Normal file
12
configuration/modules/programs.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
programs = {
|
||||
firefox.enable = true;
|
||||
bash.blesh.enable = true; # Enhanced bash
|
||||
nix-ld = {
|
||||
enable = true;
|
||||
#libraries = with pkgs; [
|
||||
# Add libraries here
|
||||
#];
|
||||
};
|
||||
};
|
||||
}
|
||||
8
configuration/modules/steam.nix
Normal file
8
configuration/modules/steam.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
dedicatedServer.openFirewall = true;
|
||||
localNetworkGameTransfers.openFirewall = true;
|
||||
};
|
||||
}
|
||||
10
configuration/modules/system.nix
Normal file
10
configuration/modules/system.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{name, ...}: {
|
||||
networking.hostName = "max-${name}";
|
||||
system = {
|
||||
stateVersion = "25.11";
|
||||
activationScripts.cleanBackups = ''
|
||||
echo "Removing .backup_nix files..."
|
||||
find /home/maxag -type f -name "*.backup_nix" -delete
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue