mirror of
https://github.com/Noratrieb/nixos.git
synced 2026-01-14 11:45:06 +01:00
hm
This commit is contained in:
parent
09159584f3
commit
5874a94a21
3 changed files with 207 additions and 194 deletions
|
|
@ -52,7 +52,7 @@
|
|||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.nora = import ./home-manager/home.nix;
|
||||
home-manager.users.nora = import ./home-manager/laptop.nix;
|
||||
home-manager.extraSpecialArgs = { inherit inputs; };
|
||||
}
|
||||
];
|
||||
|
|
|
|||
7
home-manager/laptop.nix
Normal file
7
home-manager/laptop.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{ ... }: {
|
||||
imports = [
|
||||
./home.nix
|
||||
];
|
||||
|
||||
is-laptop = true;
|
||||
}
|
||||
|
|
@ -1,6 +1,9 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
options.is-laptop = lib.mkEnableOption "whether the computer is a laptop";
|
||||
|
||||
config = {
|
||||
home.file."${config.xdg.configHome}/waybar/config.jsonc" = {
|
||||
text =
|
||||
builtins.toJSON {
|
||||
|
|
@ -24,7 +27,9 @@
|
|||
"memory"
|
||||
"tray"
|
||||
] ++
|
||||
(if (config.networking.hostName == "scrap") then [ "battery" ] else [ ]) ++
|
||||
(if (config.networking.hostName == "scrap") then
|
||||
[ "network" "power-profiles-daemon" "battery" ]
|
||||
else [ ]) ++
|
||||
[
|
||||
"custom/power"
|
||||
];
|
||||
|
|
@ -211,4 +216,5 @@
|
|||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue