-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(system): properly configure jupyter
- Loading branch information
1 parent
3a11187
commit b49f332
Showing
3 changed files
with
144 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,55 @@ | ||
{ inputs, lib, ... }: | ||
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 | ||
{ | ||
# Example vm configuration | ||
flake.nixosConfigurations.vm = | ||
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 | ||
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" | ||
]; | ||
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"; | ||
}; | ||
home-manager.users.jdoe = { | ||
home = { | ||
username = "jdoe"; | ||
homeDirectory = "/home/jdoe"; | ||
}; | ||
jhome = { | ||
jhome = { | ||
enable = true; | ||
gui.enable = true; | ||
dev = { | ||
enable = true; | ||
gui.enable = true; | ||
dev.rust.enable = true; | ||
rust.enable = true; | ||
}; | ||
}; | ||
nix.registry.nixpkgs.flake = inputs.nixpkgs; | ||
jconfig = { | ||
}; | ||
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 = { | ||
enable = true; | ||
gui.enable = true; | ||
jupyter.enable = true; | ||
}; | ||
} | ||
]; | ||
}; | ||
gui.enable = true; | ||
}; | ||
} | ||
]; | ||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters