Rename Init.nix files to default.nix.

This commit is contained in:
Dmitry Voronin 2024-04-14 22:54:20 +03:00
parent 9c22ee3ac1
commit 7be39bb2bb
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
28 changed files with 17 additions and 17 deletions

View file

@ -1,5 +1,5 @@
{ pkgs, style, util, ... } @args: let { pkgs, style, util, ... } @args: let
bash = import ../../module/common/bash/Init.nix args; bash = import ../../module/common/bash args;
script = pkgs.writeText "backupScript" '' script = pkgs.writeText "backupScript" ''
source ${bash.modules} source ${bash.modules}

View file

@ -1,5 +1,5 @@
{ pkgs, style, util, ... } @args: let { pkgs, style, util, ... } @args: let
bash = import ../../module/common/bash/Init.nix args; bash = import ../../module/common/bash args;
script = '' script = ''
docker exec -u 33 cloud php -f /var/www/html/cron.php || notify 'Nextcloud : Failed to run cron.' docker exec -u 33 cloud php -f /var/www/html/cron.php || notify 'Nextcloud : Failed to run cron.'
''; '';

View file

@ -1,5 +1,5 @@
{ pkgs, lib, wallpaper, style, ... } @args: let { pkgs, lib, wallpaper, style, ... } @args: let
sway = import ./sway/Init.nix args; sway = import ./sway args;
config = pkgs.writeText "swayConfig" sway.config; config = pkgs.writeText "swayConfig" sway.config;
in { in {
imports = [ imports = [

View file

@ -1,5 +1,5 @@
{ lib, style, util, pkgs, ... } @args: let { lib, style, util, pkgs, ... } @args: let
bash = import ./bash/Init.nix args; bash = import ./bash args;
in { in {
programs.bash.interactiveShellInit = bash.config; programs.bash.interactiveShellInit = bash.config;
environment.shellAliases = lib.mkForce {}; environment.shellAliases = lib.mkForce {};

View file

@ -1,5 +1,5 @@
{ pkgs, util, ... } @args: let { pkgs, util, ... } @args: let
firefox = import ./firefox/Init.nix args; firefox = import ./firefox args;
in { in {
# Disable profile switching on rebuild. # Disable profile switching on rebuild.
environment.variables = { environment.variables = {

View file

@ -1,5 +1,5 @@
{ inputs, pkgs, util, key, setting, ... } @args: let { inputs, pkgs, util, key, setting, ... } @args: let
nvim = import ./nvim/Init.nix args; nvim = import ./nvim args;
in { in {
environment = { environment = {
variables = { variables = {

View file

@ -1,5 +1,5 @@
{ pkgs, util, ... } @args: let { pkgs, util, ... } @args: let
ssh = import ./ssh/Init.nix args; ssh = import ./ssh args;
in { in {
environment.systemPackages = with pkgs; [ sshfs ]; environment.systemPackages = with pkgs; [ sshfs ];
programs.ssh.extraConfig = ssh.config; programs.ssh.extraConfig = ssh.config;

View file

@ -1,5 +1,5 @@
{ pkgs, style, key, util, ... } @args: let { pkgs, style, key, util, ... } @args: let
tmux = import ./tmux/Init.nix args; tmux = import ./tmux args;
script = pkgs.writeShellScriptBin "tmux_script" tmux.script; script = pkgs.writeShellScriptBin "tmux_script" tmux.script;
in { in {
programs.tmux = { programs.tmux = {

View file

@ -1,6 +1,6 @@
{ const, util, style, pkgs, setting, key, secret, ... } @args: { { const, util, style, pkgs, setting, key, secret, ... } @args: {
imports = [ imports = [
(import ./Default.nix (args // { (import ./common (args // {
username = "dasha"; username = "dasha";
homeDir = "/home/dasha"; homeDir = "/home/dasha";
})) }))

View file

@ -1,6 +1,6 @@
{ const, util, style, pkgs, setting, key, secret, ... } @args: { { const, util, style, pkgs, setting, key, secret, ... } @args: {
imports = [ imports = [
(import ./Default.nix (args // { (import ./common (args // {
username = "root"; username = "root";
homeDir = "/root"; homeDir = "/root";
})) }))

View file

@ -1,6 +1,6 @@
{ const, util, style, pkgs, setting, key, secret, ... } @args: { { const, util, style, pkgs, setting, key, secret, ... } @args: {
imports = [ imports = [
(import ./Default.nix (args // { (import ./common (args // {
username = "voronind"; username = "voronind";
homeDir = "/home/voronind"; homeDir = "/home/voronind";
})) }))

View file

@ -1,9 +1,9 @@
{ const, username, homeDir, util, style, pkgs, setting, key, secret, ... } @args: let { const, username, homeDir, util, style, pkgs, setting, key, secret, ... } @args: let
foot = import ./module/foot/Init.nix args; foot = import ./foot args;
mako = import ./module/mako/Init.nix args; mako = import ./mako args;
editorconfig = import ./module/editorconfig/Init.nix args; editorconfig = import ./editorconfig args;
btop = import ./module/top/btop/Init.nix args; btop = import ./top/btop args;
htop = import ./module/top/htop/Init.nix args; htop = import ./top/htop args;
in { in {
home-manager.backupFileExtension = "old"; home-manager.backupFileExtension = "old";
@ -20,7 +20,7 @@ in {
".config/foot/foot.ini".text = foot.config; ".config/foot/foot.ini".text = foot.config;
".editorconfig".text = editorconfig.config; ".editorconfig".text = editorconfig.config;
".parallel/will-cite".text = ""; ".parallel/will-cite".text = "";
"media/template".source = ./module/template; "media/template".source = ./template;
}; };
# Directories. # Directories.