Git Product home page Git Product logo

nixfiles's Introduction

jtojnar’s configurations

Structure

  • common
    • modules – NixOS modules that will be auto-loaded by all configurations
    • overlays – Nixpkgs overlays that will be applied to package set
    • profiles – configuration profiles that can be imported
  • hosts – configurations for individual machines
  • pkgs – utilities and software not suitable/ready to be in Nixpkgs

Commands

This repo contains some commands to be available in nix-shell to make deployment and maintenance easier.

deploy [hostname] {switch,boot,test}

Wrapper around nixos-rebuild to avoid the need for specifying the full hostname and pass some default arguments.

deploy-home

Wrapper around home-manager to avoid the need for specifying the full hostname and pass some default arguments.

update <attr-path>

Run update script for a package on given attribute path.

License

The source code is licensed under MIT (just like Nixpkgs).

I was inspired by configs of many other people so it does not feel natural to claim copyright over this code but I guess this is the safest way to allow other people to copy and reuse as I did.

I try to give credit where credit is due, at minimum in the commit messages. Hopefully I did not omit anyone.

nixfiles's People

Contributors

huantianad avatar jtojnar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

jgarte jahway603

nixfiles's Issues

forum.fcp.cz unable to access cache

We are creating cache through systemd’s CacheDirectory mechanism but since the php-fpm service is running as root, the cache will be owned by root.

But php-fpm will downgrade the service to cpforum user so phpBB actually cannot access the cache.

To mitigate that, I added a tmpfiles rule attempting to change the ownership:

# The systemd service starts as root so it does not have correct ownership.
# The started phpfpm daemon lowers euid to cpforum but systemd is not aware of that.
tmpfiles.rules = [ "d %C/cpforum 0700 cpforum cpforum" ];

But there is a race sometimes, causing the root ownership to win out.

Ideally, we would avoid starting the service as root altogether: NixOS/nixpkgs#73223

Package flarum

So that we can get rid of ostrov-tucnaku.cz www root.

Fix emoji in shout

New web uses our emoji pack hosted on github through rawgit service, which has since been deprecated.

  1. Create a Nix package
  2. Make it available through nginx
  3. Change shout code to use the new URLs
  4. Update old links in DB

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.