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:
6
nixos/modules/audio.nix
Normal file
6
nixos/modules/audio.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
}
|
15
nixos/modules/default.nix
Normal file
15
nixos/modules/default.nix
Normal 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
|
||||
];
|
||||
}
|
5
nixos/modules/hyprland.nix
Normal file
5
nixos/modules/hyprland.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
5
nixos/modules/mime.nix
Normal file
5
nixos/modules/mime.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
xdg.mime.defaultApplications = {
|
||||
"inode/directory" = "lf";
|
||||
};
|
||||
}
|
3
nixos/modules/net.nix
Normal file
3
nixos/modules/net.nix
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
networking.networkmanager.enable = true;
|
||||
}
|
8
nixos/modules/nh.nix
Normal file
8
nixos/modules/nh.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
programs.nh = {
|
||||
enable = true;
|
||||
# clean.enable = true;
|
||||
# clean.extraArgs = "--keep-since 4d --keep 3";
|
||||
flake = "/home/amper/flake";
|
||||
};
|
||||
}
|
3
nixos/modules/timezone.nix
Normal file
3
nixos/modules/timezone.nix
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
time.timeZone = "Asia/Tashkent";
|
||||
}
|
15
nixos/modules/user.nix
Normal file
15
nixos/modules/user.nix
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user