2024-07-10 05:46:07 +02:00
|
|
|
{ self, pkgs, lib, config, ... }:
|
2024-06-15 16:46:45 +02:00
|
|
|
|
2024-06-15 17:56:02 +02:00
|
|
|
let
|
2024-06-16 18:50:49 +02:00
|
|
|
inherit (builtins) attrValues;
|
2024-07-10 05:46:07 +02:00
|
|
|
|
|
|
|
transparency = "0.7";
|
|
|
|
getColorCh = colorName: channel: config.lib.stylix.colors."${colorName}-rgb-${channel}";
|
|
|
|
rgba = color: ''rgba(${getColorCh color "r"}, ${getColorCh color "g"}, ${getColorCh color "b"}, ${transparency})'';
|
2024-06-15 17:56:02 +02:00
|
|
|
in
|
2024-06-15 16:46:45 +02:00
|
|
|
{
|
2024-06-28 05:02:38 +02:00
|
|
|
imports = attrValues self.nixosModules;
|
2024-06-25 02:12:02 +02:00
|
|
|
|
|
|
|
nixpkgs.overlays = attrValues {
|
|
|
|
inherit (self.overlays) phinger-cursors;
|
|
|
|
};
|
2024-06-25 01:10:49 +02:00
|
|
|
|
|
|
|
home-manager.sharedModules = attrValues {
|
|
|
|
inherit (self.homeManagerModules)
|
|
|
|
eza
|
|
|
|
fish
|
|
|
|
git
|
|
|
|
gpg
|
|
|
|
gtk
|
|
|
|
htop
|
|
|
|
librewolf
|
|
|
|
neovim
|
|
|
|
starship
|
|
|
|
xdg-user-dirs
|
|
|
|
xresources
|
|
|
|
;
|
2024-07-10 05:46:07 +02:00
|
|
|
|
|
|
|
background = {
|
|
|
|
stylix.targets.gtk.extraCss = /* css */ ''
|
|
|
|
phosh-lockscreen, .phosh-lockshield {
|
|
|
|
background-image: linear-gradient(${rgba "base00"}, ${rgba "base00"}), url('file:///home/user/wall-lock.jpg');
|
|
|
|
background-size: cover;
|
|
|
|
background-position: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
phosh-app-grid {
|
|
|
|
background-image: linear-gradient(${rgba "base00"}, ${rgba "base00"}), url('file:///home/user/wall-grid.jpg');
|
|
|
|
background-size: cover;
|
|
|
|
background-position: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
phosh-top-panel {
|
|
|
|
background-image: linear-gradient(${rgba "base00"}, ${rgba "base00"}), url('file:///home/user/wall-panel.jpg');
|
|
|
|
background-size: cover;
|
|
|
|
background-position: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
phosh-home {
|
|
|
|
background-image: linear-gradient(${rgba "base00"}, ${rgba "base00"}), url('file:///home/user/wall-home.jpg');
|
|
|
|
background-size: cover;
|
|
|
|
background-position: center;
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
2024-06-25 01:10:49 +02:00
|
|
|
};
|
|
|
|
|
2024-07-08 20:07:18 +02:00
|
|
|
environment.systemPackages = attrValues {
|
|
|
|
inherit (self.packages.${pkgs.system})
|
|
|
|
webp-thumbnailer
|
|
|
|
;
|
|
|
|
};
|
2024-06-16 21:45:01 +02:00
|
|
|
|
2024-06-19 08:09:54 +02:00
|
|
|
modules = {
|
|
|
|
system = {
|
|
|
|
hostName = "mobile-nixos";
|
|
|
|
stateVersion = "23.11";
|
|
|
|
phone = true;
|
2024-06-16 21:45:01 +02:00
|
|
|
};
|
|
|
|
|
2024-06-20 19:22:41 +02:00
|
|
|
desktop = {
|
|
|
|
phone = true;
|
2024-06-28 05:02:38 +02:00
|
|
|
phosh = true;
|
2024-06-20 19:22:41 +02:00
|
|
|
};
|
2024-06-20 17:08:22 +02:00
|
|
|
|
2024-06-24 22:21:22 +02:00
|
|
|
hardware.keyboardBinds = true;
|
2024-06-22 01:12:01 +02:00
|
|
|
|
|
|
|
system = {
|
|
|
|
mullvad = true;
|
|
|
|
};
|
2024-06-16 18:50:49 +02:00
|
|
|
};
|
|
|
|
|
2024-06-15 17:56:02 +02:00
|
|
|
programs = {
|
|
|
|
calls.enable = true;
|
|
|
|
};
|
2024-06-15 16:46:45 +02:00
|
|
|
|
2024-06-27 05:57:01 +02:00
|
|
|
services.pipewire.enable = lib.mkForce false;
|
|
|
|
|
2024-06-15 16:46:45 +02:00
|
|
|
networking = {
|
|
|
|
wireless.enable = false;
|
2024-06-15 18:07:24 +02:00
|
|
|
wireguard.enable = true;
|
2024-06-15 16:46:45 +02:00
|
|
|
};
|
|
|
|
|
2024-06-15 18:06:53 +02:00
|
|
|
services = {
|
|
|
|
openssh.enable = true;
|
2024-06-17 17:27:00 +02:00
|
|
|
};
|
|
|
|
|
2024-06-28 19:55:20 +02:00
|
|
|
powerManagement = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
cpufreq = rec {
|
|
|
|
min = 648000;
|
|
|
|
max = min;
|
|
|
|
};
|
|
|
|
|
|
|
|
cpuFreqGovernor = "powersave";
|
|
|
|
};
|
2024-06-15 16:46:45 +02:00
|
|
|
}
|