Silver
7ae6c9fa22
fix: pass hostname as a quoted string ( #243 )
2025-08-02 13:50:38 +02:00
Nikolay Yakimov
fcc225c5aa
Support implicit systemConfigs.${currentSystem}.* paths ( #235 )
...
This implements support for multiarch systemConfigs.
First, it checks for `systemConfigs.${currentSystem}.${attr}`.
`currentSystem` is evaluated ahead of time in a separate Nix invocation
for simplicitly. Then, if that does not exist, it falls back to
`systemConfigs.${attr}`.
Closes #230
Closes #233
---------
Co-authored-by: [eureka@nixos] <57543709+eureka-cpu@users.noreply.github.com>
2025-05-25 20:50:42 -05:00
commiterate
1b55512e1e
Support attribute sets with string keys
2025-04-06 22:11:48 -04:00
eureka-cpu
3378cb641a
chore: Fix clippy warnings
2025-02-27 12:07:01 -08:00
r-vdp
daf3584e66
Implement the user and group options for etc files
2025-02-04 16:00:54 +01:00
Steve Dodd
cee3aa3dd6
Simple, more elegant implementation of setting uid/gid on copied files
...
(does not yet look up user or group names.)
2025-01-29 17:29:07 +00:00
Phani Rithvij
eb602df12b
systemd: avoid using unwrap
...
Co-authored-by: Ramses <ramses@well-founded.dev>
2024-11-08 18:30:19 +05:30
phanirithvij
91323fb350
systemd: support systemd.tmpfiles.settings
...
Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
2024-11-01 18:12:13 +05:30
Michal Sojka
cb56e9662a
Fix pre-popopulate script name ( #99 )
...
Running
nix run 'github:numtide/system-manager' -- --target-host XXX pre-populate --flake .
fails with the following error:
bash: line 1: /nix/store/mij0x8wba9baq05863shk7hbdw39azvr-system-manager/bin/pre-populate: No such file or directory
The reason is that the script has no dash in its name (see
fe08568d4a/nix/modules/default.nix (L175) ).
This commit fixes the problem.
2024-06-30 16:22:59 +02:00
r-vdp
16c145bdbb
Add debug output showing the nix commands being run.
2023-10-12 12:20:51 +02:00
r-vdp
e51a1d3ed0
Provide an implementation for systemd-tmpfiles.
...
Co-authored-by: aanderse <aaron@fosslib.net>
Co-authored-by: jfroche <jfroche@pyxel.be>
2023-10-12 11:16:37 +02:00
r-vdp
1454525760
Fix reload for services without reload functionality.
2023-06-29 17:10:39 +02:00
Ramses
841efc2bc7
Remove outdated to-do.
2023-06-06 01:49:44 +02:00
r-vdp
7789f31548
Rename generate to register and make the activate subcommand hidden.
2023-06-06 01:25:57 +02:00
r-vdp
0f92086a83
Remove unneeded turbofish.
2023-05-29 01:24:12 +02:00
r-vdp
79eecb6251
Avoid a bit more allocation and make intentions clearer.
2023-05-29 01:22:07 +02:00
r-vdp
f584494464
Avoid allocating the nix options twide.
2023-05-29 00:49:37 +02:00
Ramses
9eb15be5ce
Only info logging by default.
2023-05-27 15:01:02 +02:00
r-vdp
b0430700b5
Allow passing options to nix.
2023-05-25 18:37:50 +02:00
r-vdp
4f2b808a29
Improve logic for store path construction.
2023-05-16 19:10:11 +02:00
r-vdp
1c4cf3611b
Extract a function.
2023-05-16 18:33:07 +02:00
r-vdp
779ba9c7a7
Don't crash if we can't canonicalise the path.
2023-05-16 18:32:48 +02:00
r-vdp
3009a5feaf
Fix typo.
2023-05-16 18:21:53 +02:00
r-vdp
77077427dd
Properly handle already existing but unmanaged files.
2023-05-16 16:51:23 +02:00
r-vdp
7e78522c02
Pre-populate accepts either a store path or a flake URI.
2023-05-16 12:00:30 +02:00
r-vdp
2901945cfd
Better error handling during generate.
2023-05-16 11:48:33 +02:00
r-vdp
8602403333
Improve error message.
2023-05-15 20:34:48 +02:00
r-vdp
c430035749
Print the store path to stdout for build and generate.
2023-05-15 20:02:16 +02:00
r-vdp
c6898f239c
Quote attribute name.
2023-05-12 16:31:05 +02:00
Ramses
f4c58ce90b
Fix handling of the --store argument. ( #12 )
2023-05-12 16:04:24 +02:00
Ramses
cead991210
Add a pre-populate subcommand. ( #11 )
2023-05-08 18:35:43 +02:00
r-vdp
2f8a9ba967
Improve error handling.
2023-04-27 01:57:04 +02:00
r-vdp
db9ba03678
Introduce an intermediate target for systemd services.
...
Restarting the active targets seems to cause issues on Ubuntu,
restarting certain targets causes the display manager to exit.
2023-04-27 00:21:59 +02:00
r-vdp
862f26d3e4
Remove left-over comment.
2023-04-27 00:15:58 +02:00
r-vdp
94119b4ae6
Improve error handling.
2023-04-13 12:08:05 +02:00
r-vdp
af853c014c
Rename EtcTree -> FileTree.
2023-04-13 12:07:09 +02:00
r-vdp
b83ab41394
Add TODO item.
2023-04-11 22:03:33 +02:00
r-vdp
95f792005c
Extra debug logging.
2023-04-11 21:55:39 +02:00
r-vdp
d3c8c6923f
Rework error handling and merge the two state files.
2023-04-11 21:55:26 +02:00
r-vdp
903655cb52
Simplify toplevel error handling.
2023-04-07 11:28:57 +02:00
r-vdp
5b4e7938f5
Impprove error messages when a wrong flake attr was specified.
2023-04-06 13:19:57 +02:00
r-vdp
f864149440
Always reload the daemon on deactivate.
2023-03-30 15:02:14 +02:00
r-vdp
360b0ce3c5
Fix issue with symlinking already existing directories.
...
We will now link the contents in that case, instead of the whole dir.
2023-03-30 15:01:34 +02:00
r-vdp
05e9306f21
Set required experimental features internally.
2023-03-29 11:45:15 +02:00
r-vdp
1e9d3be430
Print eval failures to the debug log.
2023-03-29 11:38:29 +02:00
r-vdp
01073b251d
Set default log level to info.
2023-03-29 11:06:59 +02:00
r-vdp
015935f46e
Move the test module into a separate dir.
2023-03-24 16:35:02 +01:00
r-vdp
0cc421ead0
Rename --flake-uri to --flake.
2023-03-24 16:19:18 +01:00
r-vdp
65321376e8
Implement deactivate with a target host + documentation
2023-03-23 17:07:04 +01:00
r-vdp
9278cc8be8
Allow for a job monitor to be reused.
2023-03-23 14:23:43 +01:00