Add desktop configuration
This commit is contained in:
parent
6d76edc52b
commit
857be77224
23
env/nix/machines/wallwart.nix
vendored
Normal file
23
env/nix/machines/wallwart.nix
vendored
Normal 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
3
env/nix/modules/amd-gpu.nix
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{ config, pkgs, ... }: {
|
||||||
|
services.xserver.videoDrivers = [ "amdgpu" ];
|
||||||
|
}
|
5
env/nix/modules/amd.nix
vendored
Normal file
5
env/nix/modules/amd.nix
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{ config, pkgs, ... }: {
|
||||||
|
hardware = {
|
||||||
|
cpu.amd.updateMicrocode = true;
|
||||||
|
};
|
||||||
|
}
|
1
env/nix/modules/intel.nix
vendored
1
env/nix/modules/intel.nix
vendored
|
@ -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
3
env/nix/profiles/desktop.nix
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{ config, pkgs, ... }: {
|
||||||
|
imports = [ ./base.nix ];
|
||||||
|
}
|
Reference in a new issue