Update common.nix

This commit is contained in:
ediblerope 2025-12-03 16:14:14 +00:00 committed by GitHub
parent be7ee37c98
commit 61537e1ebb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,12 +7,22 @@ imports = [
./settings/gnome.nix ./settings/gnome.nix
./settings/locale.nix ./settings/locale.nix
./settings/audio.nix ./settings/audio.nix
./settings/users.nix
# Add all your hosts here # Add all your hosts here
]; ];
# Use latest kernel # Use latest kernel
boot.kernelPackages = pkgs.linuxPackages_latest; boot.kernelPackages = pkgs.linuxPackages_latest;
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# Services
services.flatpak.enable = true;
# Enable networking
networking.networkmanager.enable = true;
# Shell aliases # Shell aliases
environment.shellAliases = { environment.shellAliases = {
update = "sudo nixos-rebuild switch --upgrade --option tarball-ttl 0"; update = "sudo nixos-rebuild switch --upgrade --option tarball-ttl 0";
@ -25,27 +35,6 @@ environment.systemPackages = with pkgs; [
git git
]; ];
# Define a user account. Don't forget to set a password with passwd.
users.users.fred = {
isNormalUser = true;
description = "fred";
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [
bazaar
fastfetch
];
};
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# Services
services.flatpak.enable = true;
######################
##BORING STUFF BELOW##
######################
# Enable networking
networking.networkmanager.enable = true;
} }