generated from john/nix-docker
Compare commits
1 Commits
reorg
...
reorg_roun
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
afe391ef8e |
@@ -32,5 +32,5 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
time.timeZone = "${systemSettings.timeZone}";
|
time.timeZone = "${systemSettings.timeZone}";
|
||||||
networking.hostName = systemSettings.hostname;
|
networking.hostName = systemSettings.hostName;
|
||||||
}
|
}
|
||||||
|
|||||||
16
flake.nix
16
flake.nix
@@ -26,12 +26,12 @@
|
|||||||
userSettings = rec {
|
userSettings = rec {
|
||||||
username = "panoptes";
|
username = "panoptes";
|
||||||
gitUserName = "John Lancaster";
|
gitUserName = "John Lancaster";
|
||||||
# gitUserEmail = "32917998+jsl12@users.noreply.github.com";
|
gitUserEmail = "32917998+jsl12@users.noreply.github.com";
|
||||||
gitUserEmail = "asdfasdf@asdf.com";
|
# gitUserEmail = "asdfasdf@asdf.com";
|
||||||
};
|
};
|
||||||
|
|
||||||
systemSettings = rec {
|
systemSettings = rec {
|
||||||
hostname = "panoptes-nix";
|
hostName = "panoptes-nix";
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
timeZone = "America/Chicago";
|
timeZone = "America/Chicago";
|
||||||
locale = "en_US.UTF-8";
|
locale = "en_US.UTF-8";
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
"${systemSettings.hostname}" = nixosSystem {
|
"${systemSettings.hostName}" = nixosSystem {
|
||||||
system = systemSettings.system;
|
system = systemSettings.system;
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
@@ -65,8 +65,8 @@
|
|||||||
|
|
||||||
homeConfigurations = {
|
homeConfigurations = {
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
"${userSettings.username}" = home-manager.lib.homeManagerConfiguration {
|
"panoptes@panoptes-nix" = home-manager.lib.homeManagerConfiguration {
|
||||||
inherit pkgs;
|
inherit pkgs stateVersion;
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
inherit outputs;
|
inherit outputs;
|
||||||
@@ -74,8 +74,8 @@
|
|||||||
inherit systemSettings;
|
inherit systemSettings;
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
./homeManagerModules/home.nix
|
./home.nix
|
||||||
({...}: {home.stateVersion = "${stateVersion}";})
|
# ({...}: {home.stateVersion = "${stateVersion}";})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
2
home.nix
2
home.nix
@@ -28,7 +28,7 @@ in
|
|||||||
homeDirectory = "${homePath}";
|
homeDirectory = "${homePath}";
|
||||||
packages = [
|
packages = [
|
||||||
(pkgs.writeShellScriptBin "nfs" ''
|
(pkgs.writeShellScriptBin "nfs" ''
|
||||||
sudo nixos-rebuild switch --flake ${homePath}#${hostname} --impure
|
sudo nixos-rebuild switch --flake ${homePath}#${hostName} --impure
|
||||||
'')
|
'')
|
||||||
(pkgs.writeShellScriptBin "init-panoptes" ''
|
(pkgs.writeShellScriptBin "init-panoptes" ''
|
||||||
sudo -u git clone -b ${repoBranch} ${repoURL} /srv/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