1 Commits

Author SHA1 Message Date
John Lancaster
afe391ef8e WIP 2024-12-09 17:38:18 -06:00
4 changed files with 29 additions and 10 deletions

View File

@@ -32,5 +32,5 @@
};
time.timeZone = "${systemSettings.timeZone}";
networking.hostName = systemSettings.hostname;
networking.hostName = systemSettings.hostName;
}

View File

@@ -26,12 +26,12 @@
userSettings = rec {
username = "panoptes";
gitUserName = "John Lancaster";
# gitUserEmail = "32917998+jsl12@users.noreply.github.com";
gitUserEmail = "asdfasdf@asdf.com";
gitUserEmail = "32917998+jsl12@users.noreply.github.com";
# gitUserEmail = "asdfasdf@asdf.com";
};
systemSettings = rec {
hostname = "panoptes-nix";
hostName = "panoptes-nix";
system = "x86_64-linux";
timeZone = "America/Chicago";
locale = "en_US.UTF-8";
@@ -43,7 +43,7 @@
in
{
nixosConfigurations = {
"${systemSettings.hostname}" = nixosSystem {
"${systemSettings.hostName}" = nixosSystem {
system = systemSettings.system;
specialArgs = {
inherit inputs;
@@ -65,8 +65,8 @@
homeConfigurations = {
useGlobalPkgs = true;
"${userSettings.username}" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
"panoptes@panoptes-nix" = home-manager.lib.homeManagerConfiguration {
inherit pkgs stateVersion;
specialArgs = {
inherit inputs;
inherit outputs;
@@ -74,8 +74,8 @@
inherit systemSettings;
};
modules = [
./homeManagerModules/home.nix
({...}: {home.stateVersion = "${stateVersion}";})
./home.nix
# ({...}: {home.stateVersion = "${stateVersion}";})
];
};
};

View File

@@ -28,7 +28,7 @@ in
homeDirectory = "${homePath}";
packages = [
(pkgs.writeShellScriptBin "nfs" ''
sudo nixos-rebuild switch --flake ${homePath}#${hostname} --impure
sudo nixos-rebuild switch --flake ${homePath}#${hostName} --impure
'')
(pkgs.writeShellScriptBin "init-panoptes" ''
sudo -u git clone -b ${repoBranch} ${repoURL} /srv/panoptes

19
nixosModules/default.nix Normal file
View File

@@ -0,0 +1,19 @@
{
pkgs,
config,
lib,
inputs,
outputs,
...
}: {
imports =
[
./services/loki.nix
];
config = {
nix.settings.experimental-features = ["nix-command" "flakes"];
programs.nix-ld.enable = true;
nixpkgs.config.allowUnfree = true;
};
}