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
bash = import ../../module/common/bash/Init.nix args;
bash = import ../../module/common/bash args;
script = pkgs.writeText "backupScript" ''
source ${bash.modules}

View file

@ -1,5 +1,5 @@
{ pkgs, style, util, ... } @args: let
bash = import ../../module/common/bash/Init.nix args;
bash = import ../../module/common/bash args;
script = ''
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
sway = import ./sway/Init.nix args;
sway = import ./sway args;
config = pkgs.writeText "swayConfig" sway.config;
in {
imports = [

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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