Compare commits

..

10 Commits

Author SHA1 Message Date
6b6556cd80 refactor(home/work): improve configuration structure
- Add nixpkgs.config.allowUnfree setting
- Fix nixGL configuration path to targets.genericLinux.nixGL
- Remove redundant anki program import (now in modules)
- Enable gh and kubecolor programs
- Pass inputs to packages.nix for flake package access

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-03 15:41:33 +01:00
2e9c500892 feat(home): add GNOME desktop configuration
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-03 15:41:33 +01:00
4cabbcca5d chore(home): add commented experimental anki sync config
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-03 15:41:33 +01:00
1f326544d6 refactor(work): set up 'packages.local.nix' approach 2025-12-03 15:41:33 +01:00
69599c8e3d feat(home): add git config with example configuration for non-NixOS 2025-12-03 15:41:33 +01:00
7f3a7c5543 refactor: move common hosts config into 'modules/common.nix' 2025-12-03 15:41:33 +01:00
9d095ffb7e chore: formatting and cleanup
- Format shell.nix skeleton to single line
- Complete ts-node removal from astyanax packages
- Format andromache hardware config
2025-12-03 15:39:08 +01:00
9c1d77eb47 chore: update flake to 'nixos-unstable'
- Switch from 'nixos-25.05' to 'nixos-unstable'
- Update home-manager to follow main branch
2025-12-03 15:39:08 +01:00
baafd655ca fix(astyanax): correct hostname typo from astynanax to astyanax 2025-12-03 15:39:08 +01:00
022e5b17a0 Add neovim 'typescriptreact' snippets 2025-11-27 12:06:38 +01:00
2 changed files with 5 additions and 41 deletions

View File

@@ -40,7 +40,6 @@ in
]; ];
secrets.username = username; secrets.username = username;
docker.user = username;
disko.devices = { disko.devices = {
disk.data = { disk.data = {

View File

@@ -1,44 +1,9 @@
{ config, lib, ... }:
let
cfg = config.docker;
in
{ {
options.docker = { virtualisation.docker = {
rootless = lib.mkOption { enable = false;
type = lib.types.bool; rootless = {
default = false; enable = true;
}; setSocketVariable = true;
user = lib.mkOption {
type = lib.types.nullOr lib.types.str;
default = null;
}; };
}; };
config = lib.mkMerge [
{
warnings = lib.flatten [
(lib.optional (
cfg.rootless && cfg.user != null
) "'virtualisation.docker.user' is ignored when rootless mode is enabled")
(lib.optional (
!cfg.rootless && cfg.user == null
) "'virtualisation.docker.user' is not set (no user is added to the docker group)")
];
}
(lib.mkIf cfg.rootless {
virtualisation.docker = {
enable = false;
rootless = {
enable = true;
setSocketVariable = true;
};
};
})
(lib.mkIf (!cfg.rootless && cfg.user != null) {
virtualisation.docker = {
enable = true;
};
users.users.${cfg.user}.extraGroups = [ "docker" ];
})
];
} }