mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 18:30:43 -06:00
pass enabled down
This commit is contained in:
parent
9ee360aa66
commit
88e2379516
10 changed files with 62 additions and 68 deletions
|
@ -1,11 +1,9 @@
|
||||||
{
|
{
|
||||||
self,
|
self,
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
enabled,
|
||||||
...
|
...
|
||||||
}: let
|
}: {
|
||||||
inherit (lib) enabled;
|
|
||||||
in {
|
|
||||||
imports = with self.nixosModules; [
|
imports = with self.nixosModules; [
|
||||||
restic
|
restic
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
{lib, ...}: let
|
{
|
||||||
inherit (lib) enabled;
|
lib,
|
||||||
in {
|
enabled,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
users.motd = lib.mkRune {
|
users.motd = lib.mkRune {
|
||||||
number = "6";
|
number = "6";
|
||||||
rune = "algiz";
|
rune = "algiz";
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
{
|
{
|
||||||
self,
|
self,
|
||||||
lib,
|
enabled,
|
||||||
...
|
...
|
||||||
}: let
|
}: {
|
||||||
inherit (lib) enabled;
|
|
||||||
in {
|
|
||||||
imports = with self.nixosModules; [
|
imports = with self.nixosModules; [
|
||||||
nix-ld
|
nix-ld
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,12 +1,11 @@
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
enabled,
|
||||||
|
mkRune,
|
||||||
...
|
...
|
||||||
}: let
|
}: {
|
||||||
inherit (lib) enabled;
|
users.motd = mkRune {
|
||||||
in {
|
|
||||||
users.motd = lib.mkRune {
|
|
||||||
number = "2";
|
number = "2";
|
||||||
rune = "mannaz";
|
rune = "mannaz";
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
enabled,
|
||||||
...
|
...
|
||||||
}: let
|
}: {
|
||||||
inherit (lib) enabled;
|
|
||||||
in {
|
|
||||||
oizys = {
|
oizys = {
|
||||||
desktop = enabled;
|
desktop = enabled;
|
||||||
hyprland = enabled;
|
hyprland = enabled;
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
enabled,
|
||||||
|
mkRune,
|
||||||
...
|
...
|
||||||
}: let
|
}: {
|
||||||
inherit (lib) enabled;
|
|
||||||
in {
|
|
||||||
networking.networkmanager = enabled;
|
networking.networkmanager = enabled;
|
||||||
services.printing = enabled;
|
services.printing = enabled;
|
||||||
services.fwupd = enabled;
|
services.fwupd = enabled;
|
||||||
|
@ -28,7 +27,7 @@ in {
|
||||||
pamixer
|
pamixer
|
||||||
];
|
];
|
||||||
|
|
||||||
services.getty.greetingLine = lib.mkRune {
|
services.getty.greetingLine = mkRune {
|
||||||
rune = "othalan";
|
rune = "othalan";
|
||||||
runeKind = "ascii";
|
runeKind = "ascii";
|
||||||
};
|
};
|
||||||
|
|
|
@ -3,7 +3,7 @@ inputs: let
|
||||||
lib = nixpkgs.lib.extend (import ./extended.nix);
|
lib = nixpkgs.lib.extend (import ./extended.nix);
|
||||||
|
|
||||||
inherit (builtins) mapAttrs readDir filter listToAttrs;
|
inherit (builtins) mapAttrs readDir filter listToAttrs;
|
||||||
inherit (lib) nixosSystem genAttrs isNixFile mkDefaultOizysModule mkOizysModule;
|
inherit (lib) nixosSystem genAttrs isNixFile mkDefaultOizysModule mkOizysModule enabled mkRune;
|
||||||
inherit (lib.filesystem) listFilesRecursive;
|
inherit (lib.filesystem) listFilesRecursive;
|
||||||
|
|
||||||
inherit (import ./find-modules.nix {inherit lib;}) findModulesList;
|
inherit (import ./find-modules.nix {inherit lib;}) findModulesList;
|
||||||
|
@ -26,7 +26,7 @@ in rec {
|
||||||
isNixFile
|
isNixFile
|
||||||
(listFilesRecursive (../. + "/hosts/${hostname}"));
|
(listFilesRecursive (../. + "/hosts/${hostname}"));
|
||||||
|
|
||||||
specialArgs = {inherit inputs lib self mkDefaultOizysModule mkOizysModule;};
|
specialArgs = {inherit inputs lib self mkDefaultOizysModule mkOizysModule enabled mkRune;};
|
||||||
};
|
};
|
||||||
|
|
||||||
oizysHosts = mapAttrs (name: _: mkSystem name) (readDir ../hosts);
|
oizysHosts = mapAttrs (name: _: mkSystem name) (readDir ../hosts);
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
config,
|
config,
|
||||||
mkOizysModule,
|
mkOizysModule,
|
||||||
lib,
|
enabled,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
# let
|
# let
|
||||||
|
@ -14,10 +14,10 @@
|
||||||
# swaylock -c 1e1e2e
|
# swaylock -c 1e1e2e
|
||||||
# '';
|
# '';
|
||||||
# };
|
# };
|
||||||
let inherit (lib) enabled;
|
mkOizysModule config "hyprland" {
|
||||||
in
|
programs.hyprland =
|
||||||
mkOizysModule config "hyprland" {
|
enabled
|
||||||
programs.hyprland = enabled // {
|
// {
|
||||||
package = inputs.hyprland.packages.${pkgs.system}.default;
|
package = inputs.hyprland.packages.${pkgs.system}.default;
|
||||||
};
|
};
|
||||||
security.pam.services.swaylock = {};
|
security.pam.services.swaylock = {};
|
||||||
|
@ -59,4 +59,4 @@ in
|
||||||
# Must have been one of the other non-hyprland packages modified in the overlay
|
# Must have been one of the other non-hyprland packages modified in the overlay
|
||||||
# inputs.hyprland.overlays.default
|
# inputs.hyprland.overlays.default
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,7 @@ mkOizysModule config "chrome" {
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
(chromium.override{
|
(chromium.override {
|
||||||
commandLineArgs = [
|
commandLineArgs = [
|
||||||
"--force-dark-mode"
|
"--force-dark-mode"
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue