-
I had a question regarding how to setup multiple machines. I am looking to manage one macos and one Pop!OS machine using nixos-unified. I can get each working independently, but I would like to create a config which can setup home-manager for both. My current config follows the patterns laid out in the templates here: .
├── configurations
│ ├── darwin
│ │ └── mac.nix
│ └── home
│ └── rhodee.nix
├── flake.lock
├── flake.nix
└── modules
├── darwin
│ └── default.nix
├── flake-parts
│ ├── activate-home.nix
│ ├── devshell.nix
│ └── toplevel.nix
└── home
├── all
├── default.nix
├── editor
├── fonts.nix
├── gc.nix
├── git
├── linux.nix
├── macos.nix
├── nix-index.nix
└── packages.nix On Linux I need to have How can I structure my configuration such that it works for both OS environments in the same repo? Is it possible to only trigger |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The quick answer for now is: Delete But yes, a proper generic solution here is needed so that |
Beta Was this translation helpful? Give feedback.
The quick answer for now is:
Delete
activate-home.nix
, and runnix run . $USER@
on PopOS while runningnix run
on macOS.But yes, a proper generic solution here is needed so that
nix run
works for all platforms. Let me think about this. I suppose we can have the activate script inspect the system type and act accordingly.