Add desktop configuration

This commit is contained in:
Daniel Flanagan 2020-10-26 13:15:11 -05:00
parent 6d76edc52b
commit 857be77224
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4
5 changed files with 35 additions and 0 deletions

23
env/nix/machines/wallwart.nix vendored Normal file
View file

@ -0,0 +1,23 @@
{ config, pkgs, ... }: {
imports = [
../profiles/desktop.nix
../modules/systemd-boot-efi.nix
../modules/amd.nix
../modules/amd-gpu.nix
../modules/docker.nix
../modules/network-manager.nix
../modules/bluetooth.nix
../modules/pulseaudio.nix
../modules/de/sway.nix
../modules/users/daniel.nix
../modules/users/valerie.nix
];
networking = {
hostName = "wallwart.lyte.dev";
firewall.enable = false;
};
console.useXkbConfig = true;
services.xserver.xkbOptions = "ctrl:nocaps";
}

3
env/nix/modules/amd-gpu.nix vendored Normal file
View file

@ -0,0 +1,3 @@
{ config, pkgs, ... }: {
services.xserver.videoDrivers = [ "amdgpu" ];
}

5
env/nix/modules/amd.nix vendored Normal file
View file

@ -0,0 +1,5 @@
{ config, pkgs, ... }: {
hardware = {
cpu.amd.updateMicrocode = true;
};
}

View file

@ -1,4 +1,5 @@
{ config, pkgs, ... }: { { config, pkgs, ... }: {
services.xserver.videoDrivers = [ "intel" ];
nixpkgs.config = { nixpkgs.config = {
allowUnfree = true; allowUnfree = true;
packageOverrides = pkgs: { packageOverrides = pkgs: {

3
env/nix/profiles/desktop.nix vendored Normal file
View file

@ -0,0 +1,3 @@
{ config, pkgs, ... }: {
imports = [ ./base.nix ];
}