mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
feat: adds swaylock for desktop + formatting
This commit is contained in:
parent
281de396ec
commit
7744c92905
1 changed files with 25 additions and 17 deletions
|
|
@ -1,8 +1,16 @@
|
||||||
{ lib, pkgs, config, username, home-manager, ... }:
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
username,
|
||||||
|
home-manager,
|
||||||
|
...
|
||||||
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.liv.desktop;
|
cfg = config.liv.desktop;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.liv.desktop = {
|
options.liv.desktop = {
|
||||||
enable = mkEnableOption "Enable desktop";
|
enable = mkEnableOption "Enable desktop";
|
||||||
};
|
};
|
||||||
|
|
@ -12,6 +20,7 @@ in {
|
||||||
users.${username} = {
|
users.${username} = {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
# Home packages
|
# Home packages
|
||||||
|
swaylock
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -19,9 +28,8 @@ in {
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
kernelModules = ["acpi_call"];
|
kernelModules = [ "acpi_call" ];
|
||||||
extraModulePackages = with config.boot.kernelPackages;
|
extraModulePackages = with config.boot.kernelPackages; [
|
||||||
[
|
|
||||||
acpi_call
|
acpi_call
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue