Skip to content

Commit f565ee8

Browse files
committed
refactor(installer): remove Russia mode
1 parent 5b7aa4f commit f565ee8

12 files changed

Lines changed: 16 additions & 40 deletions

File tree

Linux/NixOS/home/programs/packages.nix

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ let
1111
packageSets = import ../../lib/package-sets.nix {
1212
inherit lib pkgs pkgs-stable;
1313
};
14-
home = packageSets.home {
15-
inherit (mysetup.features) russiaMode;
16-
};
14+
home = packageSets.home { };
1715
in
1816
{
1917
config = lib.mkMerge [

Linux/NixOS/hosts/NixOS/host-vars.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
secureBoot = false;
3939
ctfTools = false;
4040
omnirouter = false;
41-
russiaMode = false;
4241
observability = false;
4342
};
4443

Linux/NixOS/lib/package-sets/home.nix

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
lib,
33
pkgs,
44
pkgs-stable ? pkgs,
5-
russiaMode ? false,
65
}:
76

87
let
@@ -31,20 +30,17 @@ let
3130
});
3231
in
3332
{
34-
apiTools =
35-
(with pkgs; [
36-
yaak
37-
insomnia
38-
dbeaver-bin
39-
sqlit-tui
40-
ngrok
41-
pkgs-stable.pgbadger
42-
warp-terminal
43-
termius
44-
])
45-
++ lib.optionals (!russiaMode) [
46-
pkgs.jetbrains.datagrip
47-
];
33+
apiTools = with pkgs; [
34+
yaak
35+
insomnia
36+
dbeaver-bin
37+
sqlit-tui
38+
ngrok
39+
pkgs-stable.pgbadger
40+
warp-terminal
41+
termius
42+
jetbrains.datagrip
43+
];
4844
containers = with pkgs-stable; [
4945
podman-desktop
5046
];

Linux/NixOS/modules/mysetup-options.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ let
7878
};
7979
features = mkOption {
8080
type = types.submodule {
81+
freeformType = types.attrsOf types.bool;
8182
options = {
8283
secureBoot = boolOption false;
8384
ctfTools = boolOption false;
8485
omnirouter = boolOption false;
85-
russiaMode = boolOption false;
8686
observability = boolOption false;
8787
};
8888
};

Linux/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,7 @@ Secret files must be regular files, non-symlinks, and not group/world readable.
156156

157157
- Host/user settings: hostname, username, full name, home directory.
158158
- Git identity: `user.name` and `user.email` for Home Manager Git config.
159-
- Region: timezone, locale, console keymap, weather location, Russia mode
160-
(`mysetup.features.russiaMode` - when `true`, drops JetBrains products
161-
such as `jetbrains.datagrip` from the home package set).
159+
- Locale/region fields: timezone, locale, console keymap, weather location.
162160
- Display: monitor name, mode, position, scale, Hypr keyboard layouts/toggle.
163161
- Package preset: `personal`, `developer`, `desktop`, or `minimal`.
164162
- Feature flags: GPU type, Secure Boot, CTF tools, OmniRouter.

Linux/installer/internal/apply/generate.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ var hostVarsTemplate = template.Must(template.New("host-vars.nix").Funcs(templat
145145
secureBoot = {{ nixBool .Features.SecureBoot }};
146146
ctfTools = {{ nixBool .Features.CTFTools }};
147147
omnirouter = {{ nixBool .Features.OmniRouter }};
148-
russiaMode = {{ nixBool .Features.RussiaMode }};
149148
observability = {{ nixBool .Features.Observability }};
150149
};
151150

Linux/installer/internal/config/state.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ type Features struct {
102102
SecureBoot bool `json:"secureBoot"`
103103
CTFTools bool `json:"ctfTools"`
104104
OmniRouter bool `json:"omniRouter"`
105-
RussiaMode bool `json:"russiaMode"`
106105
Observability bool `json:"observability"`
107106
}
108107
type Zapret struct {

Linux/installer/internal/config/state_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,6 @@ func TestDefaultFeatureAndDotsToggles(t *testing.T) {
9191
if state.Features.SecureBoot {
9292
t.Fatal("secure boot must be disabled by default")
9393
}
94-
if state.Features.RussiaMode {
95-
t.Fatal("russia mode must be disabled by default")
96-
}
9794
if state.Zapret.Enable {
9895
t.Fatal("zapret must be disabled by default")
9996
}

Linux/installer/internal/tui/section_preview.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ func previewRegion(s config.State) []string {
6161
previewSetting("Extra locale", "Additional generated locale for regional tools/input.", s.Locale.ExtraLocale),
6262
previewSetting("Console keymap", "TTY keyboard map only. Default is us; Hypr graphical layouts are configured in Display.", s.Locale.ConsoleKeyMap),
6363
previewSetting("Weather location", "City name used by shell/weather widgets.", s.Locale.WeatherLocation),
64-
previewSetting("Russia mode", "Region-specific defaults in this config.", formatBool(s.Features.RussiaMode)),
6564
)
6665
}
6766

Linux/installer/internal/tui/tui_region.go

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
package tui
22

3-
import (
4-
"github.com/charmbracelet/huh"
5-
)
6-
73
func editRegion(s *session) error {
84
return newForm(
95
newBottomFilterSelect().
@@ -23,7 +19,7 @@ func editRegion(s *session) error {
2319
Value(&s.state.Locale.DefaultLocale),
2420
newBottomFilterSelect().
2521
Title("Extra locale").
26-
Description("Additional generated locale, usually ru_RU.UTF-8 for Russian input/tools.").
22+
Description("Additional generated locale for regional input/tools.").
2723
Options(localeOptions(s.state.Locale.ExtraLocale)...).
2824
Height(12).
2925
Value(&s.state.Locale.ExtraLocale),
@@ -37,9 +33,5 @@ func editRegion(s *session) error {
3733
Title("Weather location").
3834
Description("City name used by shell/weather widgets if enabled.").
3935
Value(&s.state.Locale.WeatherLocation),
40-
huh.NewConfirm().
41-
Title("Russia mode").
42-
Description("Enables region-specific defaults in this config. VPN/proxy services are separate.").
43-
Value(&s.state.Features.RussiaMode),
4436
).Run()
4537
}

0 commit comments

Comments
 (0)