2024-08-24 14:21:48 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
2024-08-27 11:17:30 +00:00
|
|
|
}:
|
|
|
|
let
|
|
|
|
puppeteer-socket = (pkgs.callPackage (import ./puppeteer-socket/puppeteer-socket.nix) { });
|
|
|
|
puppeteer-run = (pkgs.callPackage (import ./puppeteer-socket/puppeteer-run.nix) { });
|
|
|
|
in
|
|
|
|
{
|
2024-08-25 00:41:29 +00:00
|
|
|
imports = [ ./global.nix ];
|
2024-08-24 14:21:48 +00:00
|
|
|
|
2024-08-26 17:00:57 +00:00
|
|
|
security.polkit.enable = true;
|
|
|
|
|
|
|
|
environment.systemPackages = [
|
|
|
|
puppeteer-run
|
|
|
|
pkgs.alacritty
|
|
|
|
];
|
|
|
|
|
|
|
|
services.getty.autologinUser = config.pub-solar-os.authentication.username;
|
|
|
|
|
2024-08-27 11:17:30 +00:00
|
|
|
virtualisation.qemu.options = [ "-vga std" ];
|
2024-08-26 17:00:57 +00:00
|
|
|
|
|
|
|
home-manager.users.${config.pub-solar-os.authentication.username} = {
|
|
|
|
programs.bash.profileExtra = ''
|
|
|
|
[ "$(tty)" = "/dev/tty1" ] && exec systemd-cat --identifier=sway ${pkgs.sway}/bin/sway
|
|
|
|
'';
|
2024-08-24 14:21:48 +00:00
|
|
|
|
2024-08-26 17:00:57 +00:00
|
|
|
wayland.windowManager.sway = {
|
|
|
|
enable = true;
|
|
|
|
extraSessionCommands = ''
|
|
|
|
export WLR_RENDERER=pixman
|
|
|
|
'';
|
|
|
|
config = {
|
|
|
|
modifier = "Mod4";
|
2024-08-27 11:17:30 +00:00
|
|
|
terminal = "${pkgs.alacritty}/bin/alacritty";
|
2024-08-26 17:00:57 +00:00
|
|
|
startup = [
|
2024-08-27 11:17:30 +00:00
|
|
|
{ command = "EXECUTABLE=${pkgs.firefox}/bin/firefox ${puppeteer-socket}/bin/puppeteer-socket"; }
|
2024-08-25 00:28:02 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-08-24 14:21:48 +00:00
|
|
|
|
|
|
|
networking.interfaces.eth0.ipv4.addresses = [
|
|
|
|
{
|
|
|
|
address = "192.168.1.2";
|
|
|
|
prefixLength = 32;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|