2024-10-04 23:23:30 +02:00
|
|
|
{ inputs, lib, ... }:
|
2024-10-15 22:32:59 +02:00
|
|
|
let
|
|
|
|
system = "x86_64-linux";
|
|
|
|
overlays = builtins.attrValues inputs.self.overlays;
|
|
|
|
config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "steam-original" ];
|
|
|
|
pkgs = import inputs.nixpkgs { inherit system overlays config; };
|
|
|
|
in
|
2024-10-04 23:23:30 +02:00
|
|
|
{
|
|
|
|
# Example vm configuration
|
2024-10-15 22:32:59 +02:00
|
|
|
flake.nixosConfigurations.vm = lib.nixosSystem {
|
|
|
|
inherit system pkgs;
|
|
|
|
modules = [
|
|
|
|
inputs.self.nixosModules.vm # import vm module
|
|
|
|
{
|
|
|
|
time.timeZone = "Europe/Berlin";
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
users.users.jdoe = {
|
|
|
|
password = "example";
|
|
|
|
isNormalUser = true;
|
|
|
|
extraGroups = [
|
|
|
|
"wheel"
|
|
|
|
"video"
|
|
|
|
"networkmanager"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
home-manager.users.jdoe = {
|
|
|
|
home = {
|
|
|
|
username = "jdoe";
|
|
|
|
homeDirectory = "/home/jdoe";
|
2024-10-04 23:23:30 +02:00
|
|
|
};
|
2024-10-15 22:32:59 +02:00
|
|
|
jhome = {
|
|
|
|
enable = true;
|
|
|
|
gui.enable = true;
|
|
|
|
dev = {
|
2024-10-04 23:23:30 +02:00
|
|
|
enable = true;
|
2024-10-15 22:32:59 +02:00
|
|
|
rust.enable = true;
|
2024-10-04 23:23:30 +02:00
|
|
|
};
|
|
|
|
};
|
2024-10-15 22:32:59 +02:00
|
|
|
};
|
|
|
|
nix.registry.nixpkgs.flake = inputs.nixpkgs;
|
|
|
|
# password is 'test' see module documentation for more options
|
|
|
|
services.jupyter.password = "'sha1:1b961dc713fb:88483270a63e57d18d43cf337e629539de1436ba'";
|
|
|
|
jconfig = {
|
|
|
|
enable = true;
|
|
|
|
dev = {
|
2024-10-04 23:23:30 +02:00
|
|
|
enable = true;
|
2024-10-15 22:32:59 +02:00
|
|
|
jupyter.enable = true;
|
2024-10-04 23:23:30 +02:00
|
|
|
};
|
2024-10-15 22:32:59 +02:00
|
|
|
gui.enable = true;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2024-10-04 23:23:30 +02:00
|
|
|
}
|