config_dir = os.path.join(
os.environ.get('XDG_CONFIG_HOME', os.path.expanduser('~/.config')),
'nixpkgs',
config_dir = os.path.join(
os.environ.get('XDG_CONFIG_HOME', os.path.expanduser('~/.config')),
'nixpkgs',
os.makedirs(config_dir, exist_ok=True)
config_file = os.path.join(config_dir, 'userPackages.nix')
try:
os.makedirs(config_dir, exist_ok=True)
config_file = os.path.join(config_dir, 'userPackages.nix')
try:
try:
os.execvp(terminal, [terminal] + args)
except FileNotFoundError:
pass
try:
os.execvp(terminal, [terminal] + args)
except FileNotFoundError:
pass
command = ['nix-env', '-riA', 'nixos.userPackages']
command_string = ' '.join(command)
command = ['nix-env', '-riA', 'nixos.userPackages']
command_string = ' '.join(command)
# This should be a simple `xdg-terminal` invocation, but as of 2025,
# xdg-terminal is extremely broken in Gnome:
# * It doesn't cause a terminal window to appear
# This should be a simple `xdg-terminal` invocation, but as of 2025,
# xdg-terminal is extremely broken in Gnome:
# * It doesn't cause a terminal window to appear
app = Gtk.Application(application_id='net.chkno.nix-env-apps')
app.connect('activate', on_activate)
app.run(None)
app = Gtk.Application(application_id='net.chkno.nix-env-apps')
app.connect('activate', on_activate)
app.run(None)