mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
project-wide: nixdirfmt
This commit is contained in:
parent
219efa52ba
commit
f92e21126e
46 changed files with 997 additions and 987 deletions
|
|
@ -2,7 +2,10 @@ rec {
|
||||||
sources = import ./nix/sources.nix;
|
sources = import ./nix/sources.nix;
|
||||||
pkgs = import ./pkgs { inherit sources; };
|
pkgs = import ./pkgs { inherit sources; };
|
||||||
witch = import ./lib/witch.nix { lib = pkgs.lib; };
|
witch = import ./lib/witch.nix { lib = pkgs.lib; };
|
||||||
profiles = witch.modList { modulesDir = ./profiles; defaultFile = "nixos.nix"; };
|
profiles = witch.modList {
|
||||||
|
modulesDir = ./profiles;
|
||||||
|
defaultFile = "nixos.nix";
|
||||||
|
};
|
||||||
|
|
||||||
hosts = import ./lib/hosts.nix { inherit pkgs sources witch profiles; };
|
hosts = import ./lib/hosts.nix { inherit pkgs sources witch profiles; };
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1 @@
|
||||||
{ ... }: {
|
{ ... }: { imports = [ ./sway.nix ]; }
|
||||||
imports = [
|
|
||||||
./sway.nix
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
{ ... }: {}
|
{ ... }: { }
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1 @@
|
||||||
{ ... }: {
|
{ ... }: { imports = [ ./sway.nix ]; }
|
||||||
imports = [
|
|
||||||
./sway.nix
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
{ ... }: {}
|
{ ... }: { }
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{ pkgs, hostsDir ? ../hosts, profiles, pkgsPath ? ../pkgs
|
{ pkgs, hostsDir ? ../hosts, profiles, pkgsPath ? ../pkgs, sources ? { }
|
||||||
, sources ? { }, witch ? { } }:
|
, witch ? { } }:
|
||||||
|
|
||||||
with pkgs.lib;
|
with pkgs.lib;
|
||||||
|
|
||||||
|
|
@ -10,11 +10,7 @@ rec {
|
||||||
hostConfig = hostName:
|
hostConfig = hostName:
|
||||||
{ config, ... }: {
|
{ config, ... }: {
|
||||||
_module.args = { inherit hosts groups; };
|
_module.args = { inherit hosts groups; };
|
||||||
imports = [
|
imports = [ ../nixos.nix ../modules/nixos ../modules/nixos/deploy ];
|
||||||
../nixos.nix
|
|
||||||
../modules/nixos
|
|
||||||
../modules/nixos/deploy
|
|
||||||
];
|
|
||||||
networking = { inherit hostName; };
|
networking = { inherit hostName; };
|
||||||
nixpkgs.pkgs = import pkgsPath {
|
nixpkgs.pkgs = import pkgsPath {
|
||||||
inherit (config.nixpkgs) config;
|
inherit (config.nixpkgs) config;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{ fetchFromGitHub, makeWrapper, lib, stdenv, jp2a, imagemagick, curl, neofetch }:
|
{ fetchFromGitHub, makeWrapper, lib, stdenv, jp2a, imagemagick, curl, neofetch
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "nekofetch";
|
pname = "nekofetch";
|
||||||
|
|
@ -11,10 +12,9 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "03p1br1pn9j9nsdjg29rdznm5qh34p8dx0834rgmlc3pxlr910ng";
|
sha256 = "03p1br1pn9j9nsdjg29rdznm5qh34p8dx0834rgmlc3pxlr910ng";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
buildPhase = ''true'';
|
buildPhase = "true";
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
|
|
|
||||||
|
|
@ -3,5 +3,9 @@
|
||||||
{
|
{
|
||||||
imports = [ ./home ];
|
imports = [ ./home ];
|
||||||
|
|
||||||
options = { deploy.profile.gui = lib.mkEnableOption "graphical system" // { default = true; }; };
|
options = {
|
||||||
|
deploy.profile.gui = lib.mkEnableOption "graphical system" // {
|
||||||
|
default = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,11 @@
|
||||||
{
|
{
|
||||||
imports = [ ./nixos ];
|
imports = [ ./nixos ];
|
||||||
|
|
||||||
options = { deploy.profile.gui = lib.mkEnableOption "graphical system" // { default = true; }; };
|
options = {
|
||||||
|
deploy.profile.gui = lib.mkEnableOption "graphical system" // {
|
||||||
|
default = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
config = { home-manager.users.kat = { imports = [ ./home.nix ]; }; };
|
config = { home-manager.users.kat = { imports = [ ./home.nix ]; }; };
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,5 +8,7 @@
|
||||||
# imports = [ ../../../modules/home ];
|
# imports = [ ../../../modules/home ];
|
||||||
#};
|
#};
|
||||||
|
|
||||||
options = { deploy.profile.kat = lib.mkEnableOption "uhh meow" // { default = true; };};
|
options = {
|
||||||
|
deploy.profile.kat = lib.mkEnableOption "uhh meow" // { default = true; };
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,8 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
options = { deploy.profile.kat = lib.mkEnableOption "uhh meow" // { default = true; }; };
|
options = {
|
||||||
|
deploy.profile.kat = lib.mkEnableOption "uhh meow" // { default = true; };
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,9 @@
|
||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
options = { deploy.profile.laptop = lib.mkEnableOption "lappytop" // { default = true; }; };
|
options = {
|
||||||
|
deploy.profile.laptop = lib.mkEnableOption "lappytop" // {
|
||||||
|
default = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,11 @@
|
||||||
{
|
{
|
||||||
imports = [ ./nixos ];
|
imports = [ ./nixos ];
|
||||||
|
|
||||||
options = { deploy.profile.laptop = lib.mkEnableOption "lappytop" // { default = true; }; };
|
options = {
|
||||||
|
deploy.profile.laptop = lib.mkEnableOption "lappytop" // {
|
||||||
|
default = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
config = { home-manager.users.kat = { imports = [ ./home.nix ]; }; };
|
config = { home-manager.users.kat = { imports = [ ./home.nix ]; }; };
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{ }
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -3,5 +3,7 @@
|
||||||
{
|
{
|
||||||
imports = [ ./home ];
|
imports = [ ./home ];
|
||||||
|
|
||||||
options = { deploy.profile.sway = lib.mkEnableOption "sway wm" // { default = true; }; };
|
options = {
|
||||||
|
deploy.profile.sway = lib.mkEnableOption "sway wm" // { default = true; };
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,18 +13,14 @@
|
||||||
${pkgs.swayidle}/bin/swayidle -w \
|
${pkgs.swayidle}/bin/swayidle -w \
|
||||||
timeout 300 '${pkgs.swaylock}/bin/swaylock -f -i eDP-1:${
|
timeout 300 '${pkgs.swaylock}/bin/swaylock -f -i eDP-1:${
|
||||||
../../../private/files/wallpapers/main.png
|
../../../private/files/wallpapers/main.png
|
||||||
} -i HDMI-A-1:${
|
} -i HDMI-A-1:${../../../private/files/wallpapers/main.png} -i DP-1:${
|
||||||
../../../private/files/wallpapers/main.png
|
|
||||||
} -i DP-1:${
|
|
||||||
../../../private/files/wallpapers/left.jpg
|
../../../private/files/wallpapers/left.jpg
|
||||||
} -i DVI-D-1:${../../../private/files/wallpapers/right.jpg}' \
|
} -i DVI-D-1:${../../../private/files/wallpapers/right.jpg}' \
|
||||||
#timeout 600 'swaymsg "output * dpms off"' \
|
#timeout 600 'swaymsg "output * dpms off"' \
|
||||||
# resume 'swaymsg "output * dpms on"' \
|
# resume 'swaymsg "output * dpms on"' \
|
||||||
before-sleep '${pkgs.swaylock}/bin/swaylock -f -i eDP-1:${
|
before-sleep '${pkgs.swaylock}/bin/swaylock -f -i eDP-1:${
|
||||||
../../../private/files/wallpapers/main.png
|
../../../private/files/wallpapers/main.png
|
||||||
} -i HDMI-A-1:${
|
} -i HDMI-A-1:${../../../private/files/wallpapers/main.png} -i DP-1:${
|
||||||
../../../private/files/wallpapers/main.png
|
|
||||||
} -i DP-1:${
|
|
||||||
../../../private/files/wallpapers/left.jpg
|
../../../private/files/wallpapers/left.jpg
|
||||||
} -i DVI-D-1:${../../../private/files/wallpapers/right.jpg}'
|
} -i DVI-D-1:${../../../private/files/wallpapers/right.jpg}'
|
||||||
'';
|
'';
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,9 @@
|
||||||
{
|
{
|
||||||
imports = [ ./nixos ];
|
imports = [ ./nixos ];
|
||||||
|
|
||||||
options = { deploy.profile.sway = lib.mkEnableOption "sway wm" // { default = true; }; };
|
options = {
|
||||||
|
deploy.profile.sway = lib.mkEnableOption "sway wm" // { default = true; };
|
||||||
|
};
|
||||||
|
|
||||||
config = { home-manager.users.kat = { imports = [ ./home.nix ]; }; };
|
config = { home-manager.users.kat = { imports = [ ./home.nix ]; }; };
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue