moving toward a multi-machine configuration !
This commit is contained in:
parent
6cc7df17a7
commit
4cef631a8c
18 changed files with 250 additions and 181 deletions
80
machines/niczos/default.nix
Normal file
80
machines/niczos/default.nix
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
{
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
pkgs = import /etc/nixos/pkgs/jailed-packages.nix;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
/etc/nixos/security.nix
|
||||
/etc/nixos/nix.nix
|
||||
/etc/nixos/machines/desktop.nix
|
||||
./bootloader.nix
|
||||
./hardware-configuration.nix
|
||||
./hardware.nix
|
||||
./kernel.nix
|
||||
./security.nix
|
||||
./users.nix
|
||||
];
|
||||
|
||||
nix.nixPath = [
|
||||
"nixos-config=/etc/nixos/machines/niczos/default.nix"
|
||||
"nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos"
|
||||
"/nix/var/nix/profiles/per-user/root/channels"
|
||||
];
|
||||
|
||||
networking.hostName = "niczos";
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
systemd = {
|
||||
services."getty@tty1" = {
|
||||
overrideStrategy = "asDropin";
|
||||
serviceConfig.ExecStart = [
|
||||
""
|
||||
"@${pkgs.util-linux}/sbin/agetty agetty --login-program ${config.services.getty.loginProgram} --autologin zo --noclear --keep-baud %I 115200,38400,9600 $TERM"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
programs = {
|
||||
steam.enable = true;
|
||||
fuse.userAllowOther = true;
|
||||
};
|
||||
|
||||
virtualisation.docker = {
|
||||
enable = true;
|
||||
storageDriver = "btrfs";
|
||||
};
|
||||
|
||||
# Waydroid configuration
|
||||
virtualisation.waydroid = {
|
||||
enable = true;
|
||||
package = pkgs.waydroid-nftables.unjailed;
|
||||
};
|
||||
security = {
|
||||
rtkit.enable = true;
|
||||
wrappers = {
|
||||
waydroid = {
|
||||
source = "${pkgs.waydroid}/bin/waydroid";
|
||||
capabilities = "cap_net_admin=ep";
|
||||
enable = true;
|
||||
owner = "root";
|
||||
group = "root";
|
||||
program = "waydroid";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = [
|
||||
pkgs.curl
|
||||
pkgs.wget
|
||||
pkgs.cryptsetup
|
||||
pkgs.cachix
|
||||
];
|
||||
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
|
||||
system.copySystemConfiguration = true;
|
||||
system.stateVersion = "26.05";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue