unify desktop and laptop configs
This commit is contained in:
parent
f920b9bb6f
commit
bcfb5772e4
@ -20,9 +20,32 @@
|
|||||||
inputs.lanzaboote.nixosModules.lanzaboote
|
inputs.lanzaboote.nixosModules.lanzaboote
|
||||||
];
|
];
|
||||||
|
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
|
# allow overclocking (I actually underclock but lol)
|
||||||
|
hardware.amdgpu.overdrive.ppfeaturemask = "0xFFF7FFFF";
|
||||||
|
|
||||||
hardware.enableRedistributableFirmware = true;
|
hardware.enableRedistributableFirmware = true;
|
||||||
hardware.cpu.amd.updateMicrocode = true;
|
hardware.cpu.amd.updateMicrocode = true;
|
||||||
|
|
||||||
|
services.greetd = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
default_session = {
|
||||||
|
command = "${lib.getExe pkgs.greetd.tuigreet} --time --cmd niri-session";
|
||||||
|
user = username;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
system.activationScripts = {
|
||||||
|
# FIX: https://github.com/NixOS/nix/issues/2982
|
||||||
|
"profile-channel-dummy".text = ''
|
||||||
|
#!/bin/sh
|
||||||
|
mkdir -p /nix/var/nix/profiles/per-user/root/channels
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
swapDevices = [ ];
|
swapDevices = [ ];
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
|
|||||||
@ -16,11 +16,6 @@
|
|||||||
inputs.nixos-hardware.nixosModules.common-cpu-amd-pstate
|
inputs.nixos-hardware.nixosModules.common-cpu-amd-pstate
|
||||||
inputs.nixos-hardware.nixosModules.common-cpu-amd-zenpower
|
inputs.nixos-hardware.nixosModules.common-cpu-amd-zenpower
|
||||||
];
|
];
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
|
|
||||||
# allow overclocking (I actually underclock but lol)
|
|
||||||
hardware.amdgpu.overdrive.ppfeaturemask = "0xFFF7FFFF";
|
|
||||||
|
|
||||||
networking.hostId = "abf570f9";
|
networking.hostId = "abf570f9";
|
||||||
boot = {
|
boot = {
|
||||||
kernelModules = [
|
kernelModules = [
|
||||||
@ -29,20 +24,6 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
services.xserver.enable = false;
|
|
||||||
services.desktopManager.plasma6.enable = true;
|
|
||||||
services.displayManager = {
|
|
||||||
sddm = {
|
|
||||||
enable = true;
|
|
||||||
wayland.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
autoLogin = {
|
|
||||||
enable = true;
|
|
||||||
user = username;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# services.openssh = {
|
# services.openssh = {
|
||||||
# enable = true;
|
# enable = true;
|
||||||
# ports = [ 22 ];
|
# ports = [ 22 ];
|
||||||
|
|||||||
30
home-manager/desktop.nix
Normal file
30
home-manager/desktop.nix
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
# niri wayland compositor
|
||||||
|
./progs/niri.nix
|
||||||
|
|
||||||
|
# statusbar
|
||||||
|
./progs/eww/eww.nix
|
||||||
|
|
||||||
|
# lockscreen
|
||||||
|
./progs/swaylock.nix
|
||||||
|
|
||||||
|
# notification daemon
|
||||||
|
./progs/dunst.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
wdisplays
|
||||||
|
blueman
|
||||||
|
|
||||||
|
# used by /etc/nixos logic to launch niri
|
||||||
|
config.programs.niri.package
|
||||||
|
];
|
||||||
|
|
||||||
|
}
|
||||||
@ -7,32 +7,12 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./gui.nix
|
./gui.nix
|
||||||
|
./desktop.nix
|
||||||
# niri wayland compositor
|
|
||||||
./progs/niri.nix
|
|
||||||
|
|
||||||
# statusbar
|
|
||||||
./progs/eww/eww.nix
|
|
||||||
|
|
||||||
# lockscreen
|
|
||||||
./progs/swaylock.nix
|
|
||||||
|
|
||||||
# notification daemon
|
|
||||||
./progs/dunst.nix
|
|
||||||
|
|
||||||
./progs/borg.nix
|
./progs/borg.nix
|
||||||
|
|
||||||
./progs/framework-13-easyeffects.nix
|
./progs/framework-13-easyeffects.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
wdisplays
|
|
||||||
blueman
|
|
||||||
|
|
||||||
# used by /etc/nixos logic to launch niri
|
|
||||||
config.programs.niri.package
|
|
||||||
];
|
|
||||||
|
|
||||||
# media controls
|
# media controls
|
||||||
systemd.user.services.mpris-proxy = {
|
systemd.user.services.mpris-proxy = {
|
||||||
Unit.Description = "Mpris proxy";
|
Unit.Description = "Mpris proxy";
|
||||||
|
|||||||
@ -8,6 +8,7 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./gui.nix
|
./gui.nix
|
||||||
|
./desktop.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user