2024-04-22 10:39:12 -07:00
|
|
|
inputs:
|
2023-11-02 10:55:47 -07:00
|
|
|
let
|
|
|
|
common = {
|
2024-04-22 10:39:12 -07:00
|
|
|
catppuccin = {
|
|
|
|
enable = true;
|
|
|
|
flavour = "mocha";
|
2023-11-02 10:55:47 -07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-04-22 10:39:12 -07:00
|
|
|
# shorthand enable
|
|
|
|
enable = { enable = true; };
|
2023-11-02 10:55:47 -07:00
|
|
|
in
|
|
|
|
{
|
|
|
|
name = "module-test";
|
|
|
|
|
|
|
|
nodes.machine = { lib, ... }: {
|
|
|
|
imports = [
|
|
|
|
inputs.home-manager.nixosModules.default
|
2024-04-22 10:39:12 -07:00
|
|
|
./modules/nixos
|
2023-11-02 10:55:47 -07:00
|
|
|
common
|
|
|
|
];
|
|
|
|
|
2024-04-22 10:39:12 -07:00
|
|
|
boot.loader.grub = enable;
|
2023-11-02 10:55:47 -07:00
|
|
|
|
2024-04-22 10:39:12 -07:00
|
|
|
console = enable;
|
2024-03-13 15:04:50 -07:00
|
|
|
|
2024-04-22 10:39:12 -07:00
|
|
|
programs.dconf = enable; # required for gtk
|
|
|
|
|
|
|
|
users.users.test = {
|
|
|
|
isNormalUser = true;
|
|
|
|
home = "/home/test";
|
|
|
|
};
|
2023-11-02 10:55:47 -07:00
|
|
|
|
|
|
|
virtualisation = {
|
|
|
|
memorySize = 4096;
|
|
|
|
writableStore = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
home-manager.users.test = {
|
|
|
|
imports = [
|
2024-04-22 10:39:12 -07:00
|
|
|
./modules/home-manager
|
|
|
|
common
|
2023-11-02 10:55:47 -07:00
|
|
|
];
|
|
|
|
|
2023-11-03 10:25:24 -07:00
|
|
|
xdg.enable = true;
|
|
|
|
|
2023-11-02 10:55:47 -07:00
|
|
|
home = {
|
|
|
|
username = "test";
|
|
|
|
stateVersion = lib.mkDefault "23.11";
|
|
|
|
};
|
|
|
|
|
|
|
|
manual.manpages.enable = lib.mkDefault false;
|
|
|
|
|
2024-04-22 10:39:12 -07:00
|
|
|
i18n.inputMethod.enabled = "fcitx5";
|
2024-04-18 12:49:10 -07:00
|
|
|
|
2023-11-02 10:55:47 -07:00
|
|
|
programs = {
|
2024-04-22 10:39:12 -07:00
|
|
|
alacritty = enable;
|
|
|
|
bat = enable;
|
|
|
|
bottom = enable;
|
|
|
|
btop = enable;
|
|
|
|
cava = enable;
|
|
|
|
fish = enable;
|
|
|
|
foot = enable;
|
|
|
|
fzf = enable;
|
2024-04-29 11:19:40 -07:00
|
|
|
gh-dash = enable;
|
2024-04-29 11:15:58 -07:00
|
|
|
git =
|
|
|
|
enable
|
|
|
|
// {
|
|
|
|
delta = enable;
|
|
|
|
};
|
2024-04-22 10:39:12 -07:00
|
|
|
gitui = enable;
|
|
|
|
# this is enabled by default already, but still
|
|
|
|
# listing explicitly so we know it's tested
|
2023-11-02 10:55:47 -07:00
|
|
|
glamour.catppuccin.enable = true;
|
2024-04-22 10:39:12 -07:00
|
|
|
helix = enable;
|
|
|
|
imv = enable;
|
|
|
|
k9s = enable;
|
|
|
|
kitty = enable;
|
|
|
|
lazygit = enable;
|
|
|
|
micro = enable;
|
|
|
|
mpv = enable;
|
|
|
|
neovim = enable;
|
|
|
|
rio = enable;
|
|
|
|
rofi = enable;
|
2024-04-22 16:47:07 -07:00
|
|
|
skim = enable;
|
2024-04-22 10:39:12 -07:00
|
|
|
starship = enable;
|
|
|
|
swaylock = enable;
|
|
|
|
tmux = enable;
|
2024-04-29 11:15:58 -07:00
|
|
|
tofi = enable;
|
2024-04-22 10:39:12 -07:00
|
|
|
yazi = enable;
|
|
|
|
zathura = enable;
|
2024-04-22 17:19:34 -07:00
|
|
|
zellij = enable;
|
2023-11-02 10:55:47 -07:00
|
|
|
};
|
|
|
|
|
2024-04-22 10:39:12 -07:00
|
|
|
gtk = lib.recursiveUpdate enable { catppuccin.cursor.enable = true; };
|
2023-11-02 10:55:47 -07:00
|
|
|
|
|
|
|
services = {
|
2024-04-22 10:39:12 -07:00
|
|
|
dunst = enable;
|
|
|
|
mako = enable;
|
2023-11-02 10:55:47 -07:00
|
|
|
polybar =
|
2024-04-22 10:39:12 -07:00
|
|
|
enable
|
2023-11-02 10:55:47 -07:00
|
|
|
// {
|
|
|
|
script = ''
|
|
|
|
polybar top &
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-04-22 10:39:12 -07:00
|
|
|
wayland.windowManager.sway = enable;
|
|
|
|
wayland.windowManager.hyprland = enable;
|
2023-11-02 10:55:47 -07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript = _: ''
|
|
|
|
machine.start()
|
|
|
|
machine.wait_for_unit("home-manager-test.service")
|
|
|
|
machine.wait_until_succeeds("systemctl status home-manager-test.service")
|
|
|
|
machine.succeed("echo \"system started!\"")
|
|
|
|
'';
|
|
|
|
}
|