From 475368203b0c7740e3e3f9eff39b2f1b5355707b Mon Sep 17 00:00:00 2001 From: Yusuf Bera Ertan Date: Sat, 28 May 2022 14:44:46 +0300 Subject: [PATCH] stuff --- hosts/lungmen/default.nix | 1 + locale/default.nix | 4 ++-- modules/base/default.nix | 2 +- secrets/default.nix | Bin 128 -> 128 bytes treefmt.toml | 11 +++++++++++ users/patriot/default.nix | 36 +++++++++++++++++++++--------------- 6 files changed, 36 insertions(+), 18 deletions(-) create mode 100644 treefmt.toml diff --git a/hosts/lungmen/default.nix b/hosts/lungmen/default.nix index ef8ba4d..315a12b 100644 --- a/hosts/lungmen/default.nix +++ b/hosts/lungmen/default.nix @@ -203,6 +203,7 @@ in { }; virtualisation = { + waydroid.enable = false; podman.enable = true; libvirtd.enable = false; }; diff --git a/locale/default.nix b/locale/default.nix index 757712d..4ea90f0 100644 --- a/locale/default.nix +++ b/locale/default.nix @@ -1,7 +1,7 @@ {...}: { i18n = { - defaultLocale = "tr_TR.UTF-8"; - supportedLocales = ["tr_TR.UTF-8/UTF-8" "en_US.UTF-8/UTF-8"]; + defaultLocale = "en_US.UTF-8"; + supportedLocales = ["en_US.UTF-8/UTF-8" "tr_TR.UTF-8/UTF-8"]; }; time.timeZone = "Turkey"; services.xserver.layout = "tr"; diff --git a/modules/base/default.nix b/modules/base/default.nix index 82b9cbf..5ff9575 100644 --- a/modules/base/default.nix +++ b/modules/base/default.nix @@ -142,6 +142,6 @@ in { diff-closures /run/current-system "$systemConfig" ''; users.mutableUsers = false; - programs.command-not-found.enable = false; + programs.command-not-found.enable = true; nixpkgs.config.allowUnfree = true; } diff --git a/secrets/default.nix b/secrets/default.nix index ec5152470606b6086847bdf92b39121182dfbaa1..ce8cf47a55307d2c8daa0dd74047417ff70c07c7 100644 GIT binary patch literal 128 zcmV-`0Du1gM@dveQdv+`06SID|AMQbuR~zx?SEI-U;n)`bJ4q_3~eKRio~xFr6Qn* z2Ky$6ig$W3^#{t9XZbJ6$f{L1$j*a2*iMZ_M0ZOY%=;7!)M i9G%9wC7AY4R`)9^_*yN`lc-R<5m|$vUN_xZ1DtjdF+pqq literal 128 zcmV-`0Du1gM@dveQdv+`0RI{|q(Ge`>=>zmAoy)ymklsA!5%H0P$o27X?57Y6{_Ya zX;^Pbt{K@@FkIK>|Kvs4}^O!QtppRE#x+U(u=7tt|)< i{&oPmu|;W&EHi>}sHZPSVW$o)h%P!hAv{Vna0|1S2sUB> diff --git a/treefmt.toml b/treefmt.toml new file mode 100644 index 0000000..560bba8 --- /dev/null +++ b/treefmt.toml @@ -0,0 +1,11 @@ +# One CLI to format the code tree - https://github.com/numtide/treefmt + +[formatter.nix] +# Formatter to run +command = "alejandra" +# Command-line arguments for the command +options = [] +# Glob pattern of files to include +includes = [ "*.nix" ] +# Glob patterns of files to exclude +excludes = [] diff --git a/users/patriot/default.nix b/users/patriot/default.nix index a81fb06..0eccc41 100644 --- a/users/patriot/default.nix +++ b/users/patriot/default.nix @@ -183,8 +183,19 @@ in { cloudflared ripcord ]; + shellAliases = + nixosConfig.environment.shellAliases + // { + harmony-ssh = '' + ${pkgBin "mosh"} root@chat.harmonyapp.io + ''; + }; + sessionVariables = { + NIX_AUTO_RUN = 1; + }; }; programs = { + command-not-found.enable = nixosConfig.programs.command-not-found.enable; firefox = { enable = true; }; @@ -192,22 +203,24 @@ in { enable = true; package = pkgs.chromium; extensions = [ - "gcbommkclmclpchllfjekcdonpmejbdp" # https everywhere - "cjpalhdlnbpafiamejdnhcphjbkeiagm" + "gcbommkclmclpchllfjekcdonpmejbdp" # ublock - "nngceckbapebfimnlniiiahkandclblb" + "cjpalhdlnbpafiamejdnhcphjbkeiagm" # bitwarden - "ldpochfccmkkmhdbclfhpagapcfdljkj" + "nngceckbapebfimnlniiiahkandclblb" # decentraleyes - "annfbnbieaamhaimclajlajpijgkdblo" + "ldpochfccmkkmhdbclfhpagapcfdljkj" # dark theme - "eimadpbcbfnmbkopoojfekhnkhdbieeh" + "annfbnbieaamhaimclajlajpijgkdblo" # dark reader - "hlepfoohegkhhmjieoechaddaejaokhf" + "eimadpbcbfnmbkopoojfekhnkhdbieeh" # github refined - "pmcmeagblkinmogikoikkdjiligflglb" + "hlepfoohegkhhmjieoechaddaejaokhf" # privacy redirect + "pmcmeagblkinmogikoikkdjiligflglb" + # pronoundb + "nblkbiljcjfemkfjnhoobnojjgjdmknf" ]; }; git = { @@ -279,13 +292,6 @@ in { eval "$(zoxide init zsh)" ''; - shellAliases = - nixosConfig.environment.shellAliases - // { - harmony-ssh = '' - ${pkgBin "mosh"} root@chat.harmonyapp.io - ''; - }; }; fzf.enable = true; vscode = {