linux: Separate common configuration
This commit is contained in:
parent
659d10fd78
commit
6e3fecf13e
3 changed files with 119 additions and 145 deletions
|
@ -8,13 +8,13 @@
|
|||
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../shared.nix
|
||||
];
|
||||
|
||||
nix.settings.experimental-features = [ "flakes" "nix-command" ];
|
||||
|
||||
# Use the systemd-boot EFI boot loader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = false;
|
||||
|
||||
# GPU enablement
|
||||
hardware.asahi = {
|
||||
peripheralFirmwareDirectory = /boot/asahi;
|
||||
|
@ -25,7 +25,6 @@
|
|||
};
|
||||
|
||||
networking = {
|
||||
hostName = "spotlights-macbook-air";
|
||||
wireless.iwd = {
|
||||
enable = true;
|
||||
settings.General.EnableNetworkConfiguration = true;
|
||||
|
@ -33,48 +32,8 @@
|
|||
networkmanager.enable = true;
|
||||
};
|
||||
|
||||
services = {
|
||||
# Enable GNOME
|
||||
xserver = {
|
||||
enable = true;
|
||||
displayManager.gdm.enable = true;
|
||||
desktopManager.gnome.enable = true;
|
||||
};
|
||||
avahi = {
|
||||
enable = true;
|
||||
# Enable .local resolution
|
||||
nssmdns4 = true;
|
||||
};
|
||||
|
||||
# Enable CUPS to print documents.
|
||||
printing.enable = true;
|
||||
};
|
||||
|
||||
# Our user account.
|
||||
programs.zsh.enable = true;
|
||||
users.users.spotlight = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
cachix
|
||||
firefox
|
||||
git
|
||||
htop
|
||||
gnomeExtensions.appindicator
|
||||
legcord
|
||||
minicom
|
||||
nix-output-monitor
|
||||
python3
|
||||
seafile-client
|
||||
telegram-desktop
|
||||
tmux
|
||||
usbutils
|
||||
vim
|
||||
vscode
|
||||
wget
|
||||
];
|
||||
|
||||
# :(
|
||||
|
@ -82,16 +41,5 @@
|
|||
"vscode"
|
||||
];
|
||||
|
||||
# Allow location services.
|
||||
location.provider = "geoclue2";
|
||||
services.geoclue2.enable = true;
|
||||
|
||||
# Some programs need SUID wrappers, can be configured further or are
|
||||
# started in user sessions.
|
||||
programs.gnupg.agent = {
|
||||
enable = true;
|
||||
pinentryPackage = pkgs.pinentry-gnome3;
|
||||
};
|
||||
|
||||
system.stateVersion = "24.05";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue