1755718461
This commit is contained in:
@@ -2,10 +2,9 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
# Include the results of the hardware scan
|
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
|
||||||
# Import modular configuration files
|
# Import Modules
|
||||||
./modules/boot.nix
|
./modules/boot.nix
|
||||||
./modules/networking.nix
|
./modules/networking.nix
|
||||||
./modules/locale.nix
|
./modules/locale.nix
|
||||||
@@ -19,11 +18,5 @@
|
|||||||
./modules/aliases.nix
|
./modules/aliases.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
system.stateVersion = "25.05";
|
||||||
# settings for stateful data, like file locations and database versions
|
|
||||||
# on your system were taken. It's perfectly fine and recommended to leave
|
|
||||||
# this value at the release version of the first install of this system.
|
|
||||||
# Before changing this value read the documentation for this option
|
|
||||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
|
||||||
system.stateVersion = "25.05"; # Did you read the comment?
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,9 +2,6 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
environment.shellAliases = {
|
environment.shellAliases = {
|
||||||
# Help command - shows all available nix commands
|
|
||||||
"nix:help" = "echo '\n🔧 NixOS Configuration Commands:\n\n📋 Basic Operations:\n nix:rebuild - Rebuild and switch to new configuration\n nix:conf:edit - Edit the main configuration file\n nix:conf:sync - Sync local config to /etc/nixos/ without rebuild\n\n📝 Module Editing:\n nix:edit:boot - Edit boot configuration\n nix:edit:net - Edit networking configuration\n nix:edit:desktop - Edit desktop configuration\n nix:edit:audio - Edit audio configuration\n nix:edit:users - Edit user configuration\n nix:edit:pkgs - Edit packages configuration\n nix:edit:programs - Edit programs configuration\n nix:edit:hardware - Edit hardware configuration\n nix:edit:services - Edit services configuration\n nix:edit:aliases - Edit aliases configuration\n\n🔄 Git Operations:\n nix:conf:push - Copy config to /etc/nixos/, commit changes, and push to remote\n nix:conf:pull - Pull latest changes from remote and sync to /etc/nixos/\n\n💡 Use nix:help to see this list anytime!\n'";
|
|
||||||
|
|
||||||
# Basic operations
|
# Basic operations
|
||||||
"nix:rebuild" = "sudo nixos-rebuild switch";
|
"nix:rebuild" = "sudo nixos-rebuild switch";
|
||||||
"nix:conf:edit" = "sudo nano ~/Developer/lavitz/configuration.nix";
|
"nix:conf:edit" = "sudo nano ~/Developer/lavitz/configuration.nix";
|
||||||
|
|||||||
@@ -1,19 +1,17 @@
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
# Enable sound with pipewire
|
# Pulse Audio
|
||||||
services.pulseaudio.enable = false;
|
services.pulseaudio.enable = false;
|
||||||
security.rtkit.enable = true;
|
security.rtkit.enable = true;
|
||||||
|
|
||||||
|
# Pipewire
|
||||||
services.pipewire = {
|
services.pipewire = {
|
||||||
enable = true;
|
enable = true;
|
||||||
alsa.enable = true;
|
alsa.enable = true;
|
||||||
alsa.support32Bit = true;
|
alsa.support32Bit = true;
|
||||||
pulse.enable = true;
|
pulse.enable = true;
|
||||||
# If you want to use JACK applications, uncomment this
|
|
||||||
#jack.enable = true;
|
|
||||||
|
|
||||||
# use the example session manager (no others are packaged yet so this is enabled by default,
|
media-session.enable = true;
|
||||||
# no need to redefine it in your config for now)
|
|
||||||
#media-session.enable = true;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -16,7 +16,4 @@
|
|||||||
|
|
||||||
# Enable CUPS to print documents
|
# Enable CUPS to print documents
|
||||||
services.printing.enable = true;
|
services.printing.enable = true;
|
||||||
|
|
||||||
# Enable touchpad support (enabled default in most desktopManager)
|
|
||||||
# services.xserver.libinput.enable = true;
|
|
||||||
}
|
}
|
||||||
@@ -1,13 +1,7 @@
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
# Networking configuration
|
networking.hostName = "lavitz";
|
||||||
networking.hostName = "lavitz"; # Define your hostname.
|
|
||||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
|
||||||
|
|
||||||
# Configure network proxy if necessary
|
|
||||||
# networking.proxy.default = "http://user:password@proxy:port/";
|
|
||||||
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
|
||||||
|
|
||||||
# Enable networking
|
# Enable networking
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
@@ -15,6 +9,4 @@
|
|||||||
# Open ports in the firewall.
|
# Open ports in the firewall.
|
||||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||||
# Or disable the firewall altogether.
|
|
||||||
# networking.firewall.enable = false;
|
|
||||||
}
|
}
|
||||||
@@ -16,7 +16,7 @@ in
|
|||||||
environment.systemPackages =
|
environment.systemPackages =
|
||||||
# Packages from the stable channel (pkgs)
|
# Packages from the stable channel (pkgs)
|
||||||
with pkgs; [
|
with pkgs; [
|
||||||
# Browsers and communication
|
# Browsers and comms
|
||||||
ungoogled-chromium
|
ungoogled-chromium
|
||||||
discord
|
discord
|
||||||
signal-desktop-bin
|
signal-desktop-bin
|
||||||
@@ -61,7 +61,7 @@ in
|
|||||||
# GNOME extensions
|
# GNOME extensions
|
||||||
gnomeExtensions.appindicator
|
gnomeExtensions.appindicator
|
||||||
]
|
]
|
||||||
# Packages from the unstable channel (unstablePkgs)
|
# Unstable packages
|
||||||
++ (with unstablePkgs; [
|
++ (with unstablePkgs; [
|
||||||
onlyoffice-desktopeditors
|
onlyoffice-desktopeditors
|
||||||
]);
|
]);
|
||||||
|
|||||||
@@ -4,9 +4,9 @@
|
|||||||
# Steam
|
# Steam
|
||||||
programs.steam = {
|
programs.steam = {
|
||||||
enable = true;
|
enable = true;
|
||||||
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
|
remotePlay.openFirewall = true;
|
||||||
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
|
dedicatedServer.openFirewall = true;
|
||||||
localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers
|
localNetworkGameTransfers.openFirewall = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.noisetorch.enable = true;
|
programs.noisetorch.enable = true;
|
||||||
|
|||||||
@@ -1,18 +1,18 @@
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
# Define groups
|
# Groups
|
||||||
users.groups.plugdev = {
|
users.groups.plugdev = {
|
||||||
gid = 69420;
|
gid = 69420;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Define a user account. Don't forget to set a password with 'passwd'.
|
# User Accounts
|
||||||
users.users.atridad = {
|
users.users.atridad = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Atridad";
|
description = "Atridad";
|
||||||
extraGroups = [ "networkmanager" "wheel" "docker" "plugdev" ];
|
extraGroups = [ "networkmanager" "wheel" "docker" "plugdev" ];
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
# thunderbird
|
thunderbird
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user