WIP: switch to open modules
This commit is contained in:
parent
fec002c10b
commit
2d93d5c465
4 changed files with 30 additions and 22 deletions
43
flake.nix
43
flake.nix
|
|
@ -64,19 +64,6 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# Home manager configuration
|
# Home manager configuration
|
||||||
homeManagerModules = [
|
|
||||||
inputs.home-manager.nixosModules.default
|
|
||||||
{
|
|
||||||
home-manager = {
|
|
||||||
useGlobalPkgs = true;
|
|
||||||
useUserPackages = true;
|
|
||||||
extraSpecialArgs = {
|
|
||||||
stable = inputs.nixpkgs;
|
|
||||||
unstable = inputs.nixpkgs-u;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
|
||||||
homeManagerUModules = [
|
homeManagerUModules = [
|
||||||
inputs.home-manager-u.nixosModules.default
|
inputs.home-manager-u.nixosModules.default
|
||||||
{
|
{
|
||||||
|
|
@ -246,6 +233,8 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nixosModules = { };
|
||||||
|
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
thor = inputs.nixpkgs-u.lib.nixosSystem {
|
thor = inputs.nixpkgs-u.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
|
@ -382,14 +371,24 @@
|
||||||
./instances/freya/hardware-configuration.nix
|
./instances/freya/hardware-configuration.nix
|
||||||
./instances/freya/configuration.nix
|
./instances/freya/configuration.nix
|
||||||
|
|
||||||
|
./nixos/users/tiziano.nix
|
||||||
|
|
||||||
./nixos/torrentbox.nix
|
./nixos/torrentbox.nix
|
||||||
./nixos/minio_server.nix
|
./nixos/minio_server.nix
|
||||||
# ./nixos/nextcloud.nix
|
# ./nixos/nextcloud.nix
|
||||||
./nixos/ntfy.nix
|
./nixos/ntfy.nix
|
||||||
# S3 cache read
|
# S3 cache read
|
||||||
# ./nixos/s3_cache_read.nix
|
# ./nixos/s3_cache_read.nix
|
||||||
] ++ homeManagerModules ++ [{
|
] ++ homeManagerUModules ++ [{
|
||||||
home-manager.users.bertof = import ./instances/freya/hm.nix;
|
home-manager.users.bertof = import ./instances/freya/hm.nix;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
age.secrets = {
|
||||||
|
rclone_bertof = { file = ./secrets/rclone_bertof.age; owner = "bertof"; };
|
||||||
|
rclone_tiziano = { file = ./secrets/rclone_tiziano.age; owner = "tiziano"; };
|
||||||
|
};
|
||||||
|
|
||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -401,12 +400,19 @@
|
||||||
./instances/baldur/configuration.nix
|
./instances/baldur/configuration.nix
|
||||||
# ./nixos/digitalocean.nix
|
# ./nixos/digitalocean.nix
|
||||||
|
|
||||||
|
./nixos/users/tiziano.nix
|
||||||
|
|
||||||
# ./nixos/users/tiziano.nix
|
# ./nixos/users/tiziano.nix
|
||||||
# S3 cache read
|
# S3 cache read
|
||||||
# ./nixos/s3_cache_read.nix
|
# ./nixos/s3_cache_read.nix
|
||||||
] ++ homeManagerUModules ++ [{
|
] ++ homeManagerUModules ++ [{
|
||||||
home-manager.users.bertof = import ./instances/baldur/hm.nix;
|
home-manager.users.bertof = import ./instances/baldur/hm.nix;
|
||||||
# home-manager.users.tiziano = import ./instances/baldur/hm_tiziano.nix;
|
home-manager.users.tiziano = import ./instances/baldur/hm_tiziano.nix;
|
||||||
|
|
||||||
|
age.secrets = {
|
||||||
|
rclone_bertof = { file = ./secrets/rclone_bertof.age; owner = "bertof"; };
|
||||||
|
rclone_tiziano = { file = ./secrets/rclone_tiziano.age; owner = "tiziano"; };
|
||||||
|
};
|
||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -423,9 +429,14 @@
|
||||||
./nixos/users/tiziano.nix
|
./nixos/users/tiziano.nix
|
||||||
# S3 cache read
|
# S3 cache read
|
||||||
# ./nixos/s3_cache_read.nix
|
# ./nixos/s3_cache_read.nix
|
||||||
] ++ homeManagerModules ++ [{
|
] ++ homeManagerUModules ++ [{
|
||||||
home-manager.users.bertof = import ./instances/odin/hm.nix;
|
home-manager.users.bertof = import ./instances/odin/hm.nix;
|
||||||
home-manager.users.tiziano = import ./instances/odin/hm_tiziano.nix;
|
home-manager.users.tiziano = import ./instances/odin/hm_tiziano.nix;
|
||||||
|
|
||||||
|
age.secrets = {
|
||||||
|
rclone_bertof = { file = ./secrets/rclone_bertof.age; owner = "bertof"; };
|
||||||
|
rclone_tiziano = { file = ./secrets/rclone_tiziano.age; owner = "tiziano"; };
|
||||||
|
};
|
||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -30,10 +30,7 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
# package = pkgs.bluezFull;
|
# package = pkgs.bluezFull;
|
||||||
};
|
};
|
||||||
opengl = {
|
opengl.enable = true;
|
||||||
enable = true;
|
|
||||||
driSupport = true;
|
|
||||||
};
|
|
||||||
raspberry-pi."4" = {
|
raspberry-pi."4" = {
|
||||||
# audio.enable = true; # AUDIO
|
# audio.enable = true; # AUDIO
|
||||||
fkms-3d.enable = true; # GPU
|
fkms-3d.enable = true; # GPU
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
let
|
let
|
||||||
hosts = import ../../hosts.nix;
|
hosts = import ../../hosts.nix;
|
||||||
in
|
in
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
settings = {
|
settings = {
|
||||||
KbdInteractiveAuthentication = lib.mkDefault false;
|
KbdInteractiveAuthentication = lib.mkDefault false;
|
||||||
PermitRootLogin = lib.mkDefault "prohibit-password";
|
# PermitRootLogin = lib.mkDefault "prohibit-password";
|
||||||
PasswordAuthentication = lib.mkDefault false;
|
PasswordAuthentication = lib.mkDefault false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue