Basic Gnome install

This commit is contained in:
Greg Hellings
2022-05-04 13:57:19 -05:00
parent fecf8d6b41
commit 11a8eab867
7 changed files with 82 additions and 27 deletions
+2
View File
@@ -39,6 +39,8 @@
"linode" = machine "x86_64-linux" "linode";
"jude" = machine "x86_64-linux" "jude";
"iso" = machine "x86_64-linux" "iso";
};
+9
View File
@@ -0,0 +1,9 @@
{ ... }:
{
# Use the systemd-boot EFI boot loader.
#boot.loader.systemd-boot.enable = true;
boot.loader.grub.device = "/dev/nvme0n1";
boot.loader.efi.canTouchEfiVariables = true;
networking.interfaces.enp4s0.useDHCP = true;
}
+10
View File
@@ -0,0 +1,10 @@
{ ... }:
{
imports = [
./boot.nix
./hardware-configuration.nix
];
networking.hostName = "jude";
greg.gnome = true;
}
+24
View File
@@ -0,0 +1,24 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/27ae91ed-32e9-411e-8227-0d99e360fbbf";
fsType = "btrfs";
};
swapDevices = [ ];
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}
+1
View File
@@ -3,6 +3,7 @@
{
imports = [
./home.nix
./gnome.nix
./linode.nix
./proxy.nix
./rpi4.nix
+36
View File
@@ -0,0 +1,36 @@
{ config, pkgs, lib, ... }:
let
cfg = config.greg.gnome;
in with lib; {
options = {
greg.gnome = mkEnableOption "Enable my default Gnome3 setup";
};
config = mkIf cfg {
# Sets up a basic Gnome installation
services.xserver = {
enable = true;
displayManager.gdm.enable = true;
desktopManager.gnome.enable = true;
layout = "us";
# Trackpad support
libinput.enable = true;
};
programs.dconf.enable = true;
programs.sway.enable = true; # Gives us Wayland
xdg.portal.wlr.enable = true; # Allows screen sharing in Wayland
# Enable some Gnome plugins that I like
environment.systemPackages = with pkgs; [
gnome3.adwaita-icon-theme
gnomeExtensions.appindicator
];
services.udev.packages = with pkgs; [
gnome3.gnome-settings-daemon
];
};
}
-27
View File
@@ -1,27 +0,0 @@
{ config, pkgs, ... }:
{
# Sets up a basic Gnome installation
services.xserver = {
enable = true;
displayManager = {
gdm.enable = true;
gnome.enable = true;
};
layout = "us";
# Trackpad support
libinput.enable = true;
};
programs.dconf.enable = true;
# Enable some Gnome plugins that I like
environment.systemPackages = with pkgs; [
gnome3.adwaita-icon-theme
gnomeExtensions.appindicator
];
services.udev.packages = with pkgs; [
gnome3.gnome-settings-daemon
];
}