[WIP] New pbp
host and modules
This commit is contained in:
parent
6d8b757919
commit
f62f6ff7f4
8 changed files with 139 additions and 5 deletions
23
.github/workflows/build.yaml
vendored
23
.github/workflows/build.yaml
vendored
|
@ -55,3 +55,26 @@ jobs:
|
|||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||
|
||||
- run: nix --print-build-logs --verbose build --allow-import-from-derivation .#nixosConfigurations.hs.config.system.build.toplevel
|
||||
|
||||
build-pbp:
|
||||
if: ${{ always() }}
|
||||
needs: check
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- uses: cachix/install-nix-action@v17
|
||||
|
||||
- run: |
|
||||
DEBIAN_FRONTEND=noninteractive
|
||||
sudo apt-get update -q -y && sudo apt-get install -q -y qemu-system-aarch64 qemu-efi binfmt-support qemu-user-static
|
||||
mkdir -p ~/.config/nix
|
||||
sudo bash -c "echo system-features = aarch64-linux arm-linux >> /etc/nix/nix.conf"
|
||||
|
||||
- uses: cachix/cachix-action@v10
|
||||
with:
|
||||
name: aciceri-fleet
|
||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||
|
||||
- run: nix --print-build-logs --verbose build --allow-import-from-derivation --option system aarch64-linux --option sandbox false --extra-platforms aarch64-linux .#nixosConfigurations.pbp.config.system.build.toplevel
|
||||
|
|
|
@ -12,9 +12,27 @@
|
|||
"common"
|
||||
"ssh"
|
||||
"ccr"
|
||||
#"mara"
|
||||
"mara"
|
||||
"xfce"
|
||||
"battery"
|
||||
];
|
||||
|
||||
ccr.enable = true;
|
||||
# mara.enable = true;
|
||||
mara = {
|
||||
enable = true;
|
||||
modules = [
|
||||
"shell"
|
||||
"mpv"
|
||||
"firefox"
|
||||
"git"
|
||||
"chrome"
|
||||
"udiskie"
|
||||
];
|
||||
};
|
||||
|
||||
home-manager.users.mara = {
|
||||
programs.chromium.package = lib.mkForce pkgs.chromium;
|
||||
};
|
||||
|
||||
i18n.defaultLocale = lib.mkForce "it_IT.UTF-8";
|
||||
}
|
||||
|
|
|
@ -48,16 +48,16 @@
|
|||
|
||||
fileSystems = {
|
||||
"/" = {
|
||||
device = "/dev/nvme0n1p1";
|
||||
device = "/dev/disk/by-label/nixos";
|
||||
fsType = "btrfs";
|
||||
};
|
||||
"/boot" = {
|
||||
device = "/dev/disk/by-uuid/C406-2AFC";
|
||||
device = "/dev/disk/by-label/boot";
|
||||
fsType = "vfat";
|
||||
};
|
||||
};
|
||||
|
||||
swapDevices = [{device = "/dev/disk/by-uuid/e236d328-496e-4cf8-ba54-857789ca258f";}];
|
||||
swapDevices = [{device = "/dev/disk/by-label/swap";}];
|
||||
|
||||
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
|
||||
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
"transmission"
|
||||
"fprintd"
|
||||
"binfmt"
|
||||
"udisks2"
|
||||
];
|
||||
|
||||
ccr = {
|
||||
|
|
71
modules/mara/default.nix
Normal file
71
modules/mara/default.nix
Normal file
|
@ -0,0 +1,71 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
fleetHmModules,
|
||||
...
|
||||
}: {
|
||||
options.mara = {
|
||||
enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
};
|
||||
|
||||
modules = lib.mkOption {
|
||||
type = with lib.types; listOf str;
|
||||
default = ["shell" "git"];
|
||||
};
|
||||
|
||||
packages = lib.mkOption {
|
||||
type = with lib.types; listOf package;
|
||||
default = [];
|
||||
};
|
||||
|
||||
autologin = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
};
|
||||
|
||||
authorizedKeys = lib.mkOption {
|
||||
type = with lib.types; listOf str;
|
||||
default = [
|
||||
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDJmn7H6wxrxCHypvY74Z6pBr5G6v564NaUZb9xIILV92JEdpZzuTLLlP+JkMx/8MLRy+pC7prMwR+FhH+LaTm/9x3T6FYP/q9UIAL3cFwBAwj5XQXQKzx9f6pX/7iJrMfAUQ+ZrRUNJHt5Gl+8UypmDgnQLuv5vmQSMRzKnUPuu4lCJtWOpSPhXffz3Ec1tm5nAMuxIMRPY91PYu1fMLlFrjB1FX1goVHKB1uWx16GjJszYCVbN6xcPac0sgUg+qNGBhWkUh0F073rhepQJeWp5FtwIxe2zRsZBxxTy5qxNLmHzBeNDxlOkcy2/Lr+BxVy+mhF/2fJziX80/bWSEA1"
|
||||
];
|
||||
};
|
||||
|
||||
hashedPassword = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "$6$znc6qUe/VpJFtoo4$1JWwDiykkqlUgXM2qfjyGoJT5J8kWKko83uMutB7eK1ApJToxawM8SSlksMUpJKJJ2DIPuJZZ7JIXN8U/Am8r."; # mkpasswd -m sha-512
|
||||
};
|
||||
|
||||
extraGroups = lib.mkOption {
|
||||
type = with lib.types; listOf str;
|
||||
default = ["wheel" "fuse" "networkmanager" "dialout"];
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.mara.enable {
|
||||
users.users.mara = {
|
||||
uid = 1001;
|
||||
hashedPassword = config.mara.hashedPassword;
|
||||
description = "Mara Savastano";
|
||||
isNormalUser = true;
|
||||
extraGroups = config.mara.extraGroups;
|
||||
shell = pkgs.zsh;
|
||||
openssh.authorizedKeys.keys = config.mara.authorizedKeys;
|
||||
};
|
||||
|
||||
services.getty.autologinUser =
|
||||
if config.mara.autologin
|
||||
then "mara"
|
||||
else null;
|
||||
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.mara = {
|
||||
imports = fleetHmModules config.mara.modules;
|
||||
home.packages = config.mara.packages;
|
||||
home.stateVersion = config.system.stateVersion;
|
||||
};
|
||||
};
|
||||
}
|
3
modules/udisks2/default.nix
Normal file
3
modules/udisks2/default.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
services.udisks2.enable = true;
|
||||
}
|
18
modules/xfce/default.nix
Normal file
18
modules/xfce/default.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
desktopManager = {
|
||||
xterm.enable = false;
|
||||
xfce.enable = true;
|
||||
};
|
||||
displayManager = {
|
||||
defaultSession = "xfce";
|
||||
autoLogin.user = "mara";
|
||||
};
|
||||
};
|
||||
|
||||
home-manager.users.mara.home.file."background-image" = {
|
||||
target = ".background-image";
|
||||
source = ./mlp.jpg;
|
||||
};
|
||||
}
|
BIN
modules/xfce/mlp.jpg
Normal file
BIN
modules/xfce/mlp.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 842 KiB |
Loading…
Add table
Reference in a new issue