hopefully the last complete restructure of this repo
This commit is contained in:
42
system-config/services/sddm/flake.lock
generated
Normal file
42
system-config/services/sddm/flake.lock
generated
Normal file
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"nodes": {
|
||||
"repo": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1686823900,
|
||||
"narHash": "sha256-JRVVzyefqR2L3UrEK2iWyhUKfPMUNUnfRZmwdz05wL0=",
|
||||
"owner": "siddrs",
|
||||
"repo": "tokyo-night-sddm",
|
||||
"rev": "320c8e74ade1e94f640708eee0b9a75a395697c6",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "siddrs",
|
||||
"repo": "tokyo-night-sddm",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"theme": "theme"
|
||||
}
|
||||
},
|
||||
"theme": {
|
||||
"inputs": {
|
||||
"repo": "repo"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1,
|
||||
"narHash": "sha256-eXmGZXA4mlXGERWWjh2QZCQV8GphWPf+yKt+Fg16OOI=",
|
||||
"path": "/nix/store/dfaqxn91asadchiwlldsjvjr24jypbd8-source/themes/tokyo-night",
|
||||
"type": "path"
|
||||
},
|
||||
"original": {
|
||||
"path": "/nix/store/dfaqxn91asadchiwlldsjvjr24jypbd8-source/themes/tokyo-night",
|
||||
"type": "path"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
||||
45
system-config/services/sddm/flake.nix
Normal file
45
system-config/services/sddm/flake.nix
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
description = "sddm config";
|
||||
|
||||
inputs = {
|
||||
|
||||
theme.url = "./themes/tokyo-night";
|
||||
|
||||
};
|
||||
|
||||
outputs = { self, ... }@inputs: {
|
||||
|
||||
module = { config, lib, pkgs, ... }: {
|
||||
|
||||
options.sysconfig.opts.sddm.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
};
|
||||
|
||||
config = lib.mkIf config.sysconfig.opts.sddm.enable {
|
||||
|
||||
qt.enable = true;
|
||||
|
||||
services.displayManager.sddm = {
|
||||
enable = true;
|
||||
wayland.enable = true;
|
||||
autoNumlock = true;
|
||||
theme = "${inputs.theme.theme { inherit pkgs; }}";
|
||||
enableHidpi = true;
|
||||
extraPackages = with pkgs; [
|
||||
libsForQt5.qtsvg
|
||||
libsForQt5.qtquickcontrols2
|
||||
libsForQt5.qtgraphicaleffects
|
||||
];
|
||||
settings = {
|
||||
Autologin = {
|
||||
User = "nathan";
|
||||
Session = "hyprland";
|
||||
Relogin = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
29
system-config/services/sddm/themes/sugar-dark/flake.nix
Normal file
29
system-config/services/sddm/themes/sugar-dark/flake.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
description = "Package Sugar Dark SDDM theme";
|
||||
|
||||
inputs = {
|
||||
|
||||
repo = {
|
||||
url = "github:MarianArlt/sddm-sugar-dark";
|
||||
flake = false;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
outputs = { self, repo, ... }: {
|
||||
|
||||
theme = { pkgs }: pkgs.stdenv.mkDerivation {
|
||||
|
||||
name = "sugar-dark";
|
||||
|
||||
src = repo;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp -R $src/* $out/
|
||||
'';
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
27
system-config/services/sddm/themes/tokyo-night/flake.lock
generated
Normal file
27
system-config/services/sddm/themes/tokyo-night/flake.lock
generated
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"nodes": {
|
||||
"repo": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1686823900,
|
||||
"narHash": "sha256-JRVVzyefqR2L3UrEK2iWyhUKfPMUNUnfRZmwdz05wL0=",
|
||||
"owner": "siddrs",
|
||||
"repo": "tokyo-night-sddm",
|
||||
"rev": "320c8e74ade1e94f640708eee0b9a75a395697c6",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "siddrs",
|
||||
"repo": "tokyo-night-sddm",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"repo": "repo"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
||||
29
system-config/services/sddm/themes/tokyo-night/flake.nix
Normal file
29
system-config/services/sddm/themes/tokyo-night/flake.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
description = "Package Tokyo Night SDDM theme";
|
||||
|
||||
inputs = {
|
||||
|
||||
repo = {
|
||||
url = "github:siddrs/tokyo-night-sddm";
|
||||
flake = false;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
outputs = { self, repo, ... }: {
|
||||
|
||||
theme = { pkgs }: pkgs.stdenv.mkDerivation {
|
||||
|
||||
name = "tokyo-night";
|
||||
|
||||
src = repo;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp -R $src/* $out/
|
||||
'';
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user