1
0
mirror of https://github.com/Andrey0189/nixos-config-reborn.git synced 2025-09-15 10:06:00 +03:00

separate as a module

This commit is contained in:
andrey_varnavskiy
2024-11-25 11:46:30 +05:00
parent a953507211
commit b8f08e9301
8 changed files with 60 additions and 0 deletions

6
nixos/modules/audio.nix Normal file
View File

@@ -0,0 +1,6 @@
{
services.pipewire = {
enable = true;
pulse.enable = true;
};
}

15
nixos/modules/default.nix Normal file
View File

@@ -0,0 +1,15 @@
{
imports = [
./audio.nix
./bluetooth.nix
./boot.nix
./env.nix
./hyprland.nix
./mime.nix
./net.nix
./nh.nix
./timezone.nix
./user.nix
./zram.nix
];
}

View File

@@ -0,0 +1,5 @@
{
programs.hyprland = {
enable = true;
};
}

5
nixos/modules/mime.nix Normal file
View File

@@ -0,0 +1,5 @@
{
xdg.mime.defaultApplications = {
"inode/directory" = "lf";
};
}

3
nixos/modules/net.nix Normal file
View File

@@ -0,0 +1,3 @@
{
networking.networkmanager.enable = true;
}

8
nixos/modules/nh.nix Normal file
View File

@@ -0,0 +1,8 @@
{
programs.nh = {
enable = true;
# clean.enable = true;
# clean.extraArgs = "--keep-since 4d --keep 3";
flake = "/home/amper/flake";
};
}

View File

@@ -0,0 +1,3 @@
{
time.timeZone = "Asia/Tashkent";
}

15
nixos/modules/user.nix Normal file
View File

@@ -0,0 +1,15 @@
{ pkgs, user, ... }: {
programs.zsh.enable = true;
users = {
defaultUserShell = pkgs.zsh;
users.${user} = {
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" ];
packages = with pkgs; [
];
};
};
services.getty.autologinUser = user;
}