Refactor config to merge modules from platforms
This commit is contained in:
parent
a3eecd7007
commit
0c4ce3e936
32 changed files with 95 additions and 116 deletions
31
config/login.nix
Normal file
31
config/login.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{ config, lib, pkgs, tokyo-night-sddm-src, ... }:
|
||||
lib.mkIf (config.custom.platform != "mobile")
|
||||
(let
|
||||
tokyo-night-sddm = with pkgs.libsForQt5; pkgs.stdenv.mkDerivation {
|
||||
name = "tokyo-night-sddm";
|
||||
src = tokyo-night-sddm-src;
|
||||
installPhase = ''
|
||||
cp -f ${./tokyo-night-sddm/theme.conf} ./theme.conf
|
||||
mkdir -p $out/share/sddm/themes/tokyo-night-sddm
|
||||
mv * $out/share/sddm/themes/tokyo-night-sddm
|
||||
'';
|
||||
};
|
||||
in {
|
||||
environment.systemPackages = with pkgs.libsForQt5; [
|
||||
tokyo-night-sddm # Theme
|
||||
qtbase
|
||||
qtsvg
|
||||
qtquickcontrols2
|
||||
qtgraphicaleffects
|
||||
];
|
||||
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
|
||||
displayManager.defaultSession = "sway";
|
||||
displayManager.sddm = {
|
||||
enable = true;
|
||||
theme = "tokyo-night-sddm";
|
||||
};
|
||||
};
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue