This commit is contained in:
parent
37c36112e3
commit
43df5bcd08
4 changed files with 8 additions and 3 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
{
|
||||
flake.modules.nixos = {
|
||||
pc = {
|
||||
base = {
|
||||
imports = [ inputs.home-manager.nixosModules.home-manager ];
|
||||
|
||||
home-manager = {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
};
|
||||
|
||||
modules = {
|
||||
nixos.pc = {
|
||||
nixos.base = {
|
||||
users.users.${config.flake.meta.owner.username} = {
|
||||
isNormalUser = true;
|
||||
initialPassword = lib.mkForce "";
|
||||
|
|
5
modules/pc.nix
Normal file
5
modules/pc.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
flake.modules.nixos.pc.imports = with config.flake.modules.nixos; [ base ];
|
||||
}
|
|
@ -12,7 +12,7 @@
|
|||
predicate = pkg: builtins.elem (lib.getName pkg) config.nixpkgs.allowedUnfreePackages;
|
||||
in
|
||||
{
|
||||
nixos.pc.nixpkgs.config.allowUnfreePredicate = predicate;
|
||||
nixos.base.nixpkgs.config.allowUnfreePredicate = predicate;
|
||||
|
||||
homeManager.base = args: {
|
||||
nixpkgs.config = lib.mkIf (!(args.hasGlobalPkgs or false)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue