From cfc7255631d2b67138cedc72870599859f04932b Mon Sep 17 00:00:00 2001 From: Pierre Martin Date: Fri, 2 Sep 2022 02:36:05 +0200 Subject: [PATCH] refactor: move dotfiles into files + symlink from home-manager --- .i3status.conf => files/.i3status.conf | 0 files/traefik.toml | 17 +++++++++++++++++ home.nix | 20 ++------------------ 3 files changed, 19 insertions(+), 18 deletions(-) rename .i3status.conf => files/.i3status.conf (100%) create mode 100644 files/traefik.toml diff --git a/.i3status.conf b/files/.i3status.conf similarity index 100% rename from .i3status.conf rename to files/.i3status.conf diff --git a/files/traefik.toml b/files/traefik.toml new file mode 100644 index 0000000..a932137 --- /dev/null +++ b/files/traefik.toml @@ -0,0 +1,17 @@ +logLevel = "INFO" +defaultEntryPoints = ["http", "https"] + +[web] +address = ":8080" + +# [entryPoints] +# [entryPoints.http] +# address = ":80" +# [entryPoints.https] +# address = ":443" +# [entryPoints.https.tls] + +[docker] +domain = "test" +watch = true +network = "traefik" \ No newline at end of file diff --git a/home.nix b/home.nix index fea56d6..c97d62d 100644 --- a/home.nix +++ b/home.nix @@ -5,25 +5,9 @@ let in { home.stateVersion = "22.05"; - home.file.".config/traefik/traefik.toml".text = '' -logLevel = "INFO" -defaultEntryPoints = ["http", "https"] -[web] -address = ":8080" - -# [entryPoints] -# [entryPoints.http] -# address = ":80" -# [entryPoints.https] -# address = ":443" -# [entryPoints.https.tls] - -[docker] -domain = "test" -watch = true -network = "traefik" - ''; + home.file.".i3status.conf".source = ./files/.i3status.conf; + home.file.".config/traefik/traefik.toml".source = ./files/traefik.toml; home.packages = with pkgs; [ latest.wget