Comments (5)
I think that hostname -f
works on both BSD (at least on Darwin) and Linux. Wouldn't that work?
from bud.
are you trying to deploy NixOS systems from darwin, or what is the usecase here? Unfortunately we still don't have great nix-darwin support in general since we don't have any MacOS users on the core team.
from bud.
The particular implementation is towards the end of:
Lines 75 to 88 in 26ba276
We internally need to work with reverse DNS of the fqdn to "reliably" match hosts's to the host raking contract: nested folders are raked as reverse DNS, like so:
com
example
host1
host2
net
example
host1
host2
(sorry for that bash sequence)
from bud.
are you trying to deploy NixOS systems from darwin, or what is the usecase here?
@nrdxp use case is working with a flake providing an output matching my current darwin host's hostname. The flake provides a set of configurations for nix-darwin and home-manager. Essentially just dotfiles. But I'd like to reuse these profiles on NixOS systems as I build them out (via VMs or Linodes). So at least on darwin, I'd only be using the commands that aren't NixOS-specific (e.g. bud repl
or bud switch
if it could be used with darwin-rebuild
)
@blaggacao Thanks, that points me in the right direction. I'm going to assume I'm doing something kind of wrong in the process of setting up this darwin host, as I don't think I should have ended up hitting that call to hostname
at all.
from bud.
@montchr It should alwasy hit hostname
unless you'd be running already from within the host that you (still) want to build.
That is: in the devshell, it should always try to figure out your current host via hostname
.
Could you think of a BSD compatible implementation?
from bud.
Related Issues (17)
- Pass a generalized reference to `self` HOT 1
- Revising `flk`
- Issue: `pkgs.nixos-install-tools` does not build on darwin
- Add complete `check-devos` check the same as in `digga`
- Make scripts reproducible
- Have an ex-post discussion about the design of this HOT 5
- bud rebuild errors with: unrecognised flag '--extra-experimental-features'
- bud can't build portable user HOT 2
- Revise "layer violations" HOT 2
- readme
- bud is deprecated HOT 3
- Properly add `fup-repl` here.
- up acessors suites.core. Now it's suites.base
- Implement Tests & BORS HOT 1
- Impelement contextual reference to flake, hostname and user where possible
- Improve `flk vm` (bash script) HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bud.