generated from john/nix-docker
Compare commits
1 Commits
reorg
...
reorg_roun
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
afe391ef8e |
@@ -32,5 +32,5 @@
|
||||
};
|
||||
|
||||
time.timeZone = "${systemSettings.timeZone}";
|
||||
networking.hostName = systemSettings.hostname;
|
||||
networking.hostName = systemSettings.hostName;
|
||||
}
|
||||
|
||||
16
flake.nix
16
flake.nix
@@ -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}";})
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
2
home.nix
2
home.nix
@@ -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
19
nixosModules/default.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user