graphical: sddm display manager
This commit is contained in:
parent
5f8899e769
commit
92648918af
|
@ -4,7 +4,7 @@ let
|
|||
in
|
||||
{
|
||||
imports = [
|
||||
../users/nrd.nix
|
||||
../users/nrd
|
||||
../profiles/graphical
|
||||
../profiles/misc
|
||||
];
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
{ stdenv, fetchFromGitHub, ... }:
|
||||
stdenv.mkDerivation rec {
|
||||
name = "sddm-chili";
|
||||
version = "0.5.5";
|
||||
src = fetchFromGitHub {
|
||||
owner = "MarianArlt";
|
||||
repo = "kde-plasma-chili";
|
||||
rev = "${version}";
|
||||
hash = "sha256-fWRf96CPRQ2FRkSDtD+N/baZv+HZPO48CfU5Subt854=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/sddm/themes/chili
|
||||
|
||||
cp -r * $out/share/sddm/themes/chili
|
||||
'';
|
||||
}
|
|
@ -43,8 +43,6 @@ in
|
|||
|
||||
# Theme settings
|
||||
QT_QPA_PLATFORMTHEME = "gtk2";
|
||||
GDK_PIXBUF_MODULE_FILE =
|
||||
"$(echo ${pkgs.librsvg.out}/lib/gdk-pixbuf-2.0/*/loaders.cache)";
|
||||
GTK2_RC_FILES = let
|
||||
gtk = ''
|
||||
gtk-icon-theme-name="Papirus-Adapta"
|
||||
|
@ -75,11 +73,23 @@ in
|
|||
papirus-icon-theme
|
||||
qute
|
||||
qutebrowser
|
||||
sddm-chili
|
||||
youtubeDL
|
||||
zathura
|
||||
];
|
||||
};
|
||||
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
|
||||
desktopManager.plasma5.enable = true;
|
||||
|
||||
displayManager.sddm = {
|
||||
enable = true;
|
||||
theme = "chili";
|
||||
};
|
||||
};
|
||||
|
||||
nixpkgs.overlays = let
|
||||
overlay = self: super: {
|
||||
qute = super.writeShellScriptBin "qute" ''
|
||||
|
@ -90,6 +100,8 @@ in
|
|||
[icon theme]
|
||||
Inherits=Adwaita
|
||||
'';
|
||||
|
||||
sddm-chili = super.callPackage ../../pkgs/applications/display-managers/sddm/themes/chili {};
|
||||
};
|
||||
in
|
||||
[ overlay ];
|
||||
|
|
|
@ -15,7 +15,7 @@ let
|
|||
in
|
||||
{
|
||||
imports = [
|
||||
../profiles/develop
|
||||
../../profiles/develop
|
||||
];
|
||||
|
||||
programs.gnupg.agent = {
|
||||
|
@ -24,6 +24,7 @@ in
|
|||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
nrd-logo
|
||||
pinentry_gnome
|
||||
];
|
||||
|
||||
|
@ -32,8 +33,8 @@ in
|
|||
packages = mkForce [];
|
||||
|
||||
file = {
|
||||
".ec2-keys".source = ../secrets/ec2;
|
||||
".cargo/credentials".source = ../secrets/cargo;
|
||||
".ec2-keys".source = ../../secrets/ec2;
|
||||
".cargo/credentials".source = ../../secrets/cargo;
|
||||
".zshrc".text = "#";
|
||||
};
|
||||
};
|
||||
|
@ -135,10 +136,10 @@ in
|
|||
|
||||
matchBlocks = let
|
||||
githubKey = toFile "github"
|
||||
(readFile ../secrets/github);
|
||||
(readFile ../../secrets/github);
|
||||
|
||||
gitlabKey = toFile "gitlab"
|
||||
(readFile ../secrets/gitlab);
|
||||
(readFile ../../secrets/gitlab);
|
||||
in
|
||||
{
|
||||
github = {
|
||||
|
@ -170,7 +171,7 @@ in
|
|||
uid = 1000;
|
||||
description = name;
|
||||
isNormalUser = true;
|
||||
hashedPassword = fileContents ../secrets/nrd;
|
||||
hashedPassword = fileContents ../../secrets/nrd;
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
"input"
|
||||
|
@ -178,4 +179,19 @@ in
|
|||
"adbusers"
|
||||
];
|
||||
};
|
||||
|
||||
nixpkgs.overlays = let
|
||||
overlay = self: super: {
|
||||
nrd-logo = super.stdenv.mkDerivation {
|
||||
name = "nrdxp-logo";
|
||||
src = ./logo.png;
|
||||
dontUnpack = true;
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/sddm/faces
|
||||
cp $src $out/share/sddm/faces/nrd.face.icon
|
||||
'';
|
||||
};
|
||||
};
|
||||
in
|
||||
[ overlay ];
|
||||
}
|
BIN
users/nrd/logo.png
Normal file
BIN
users/nrd/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 330 KiB |
Loading…
Reference in a new issue