nixos/common.nix

71 lines
1.5 KiB
Nix
Raw Normal View History

2025-12-03 09:55:43 +00:00
# Common.nix
2025-12-02 21:44:07 +00:00
{ config, pkgs, lib, ... }:
{
2025-12-03 15:48:10 +00:00
imports = [
2025-12-03 15:50:10 +00:00
./settings/gnome.nix
./settings/locale.nix
2025-12-03 15:48:10 +00:00
# Add all your hosts here
];
2025-12-03 09:55:43 +00:00
# Use latest kernel
2025-12-02 21:44:07 +00:00
boot.kernelPackages = pkgs.linuxPackages_latest;
2025-12-03 10:02:45 +00:00
2025-12-03 10:07:54 +00:00
# Shell aliases
environment.shellAliases = {
2025-12-03 10:10:21 +00:00
update = "sudo nixos-rebuild switch --upgrade --option tarball-ttl 0";
clean = "sudo nix-collect-garbage -d"; # Clean old generations
ll = "ls -alh";
2025-12-03 10:07:54 +00:00
};
2025-12-03 10:02:45 +00:00
# Add packages
2025-12-03 11:38:23 +00:00
environment.systemPackages = with pkgs; [
git
2025-12-03 11:37:31 +00:00
gnomeExtensions.blur-my-shell
gnomeExtensions.just-perfection
2025-12-03 11:48:28 +00:00
gnomeExtensions.appindicator
gnomeExtensions.hot-edge
2025-12-03 10:02:45 +00:00
];
2025-12-02 21:44:07 +00:00
2025-12-03 09:55:43 +00:00
# GNOME + Keybinds
2025-12-02 21:44:07 +00:00
# Enable the X11 windowing system.
services.xserver.enable = true;
services.displayManager.gdm.enable = true;
services.desktopManager.gnome.enable = true;
2025-12-03 09:55:43 +00:00
2025-12-03 12:01:28 +00:00
2025-12-02 21:44:07 +00:00
# Define a user account. Don't forget to set a password with passwd.
users.users.fred = {
2025-12-03 13:29:41 +00:00
isNormalUser = true;
description = "fred";
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [
bazaar
fastfetch
];
};
2025-12-03 12:45:29 +00:00
2025-12-02 21:44:07 +00:00
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# Services
services.flatpak.enable = true;
2025-12-03 10:07:54 +00:00
######################
##BORING STUFF BELOW##
######################
# Enable networking
networking.networkmanager.enable = true;
# Enable sound with pipewire.
services.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
2025-12-02 21:44:07 +00:00
}