setting up media server
This commit is contained in:
parent
8f3b3c5955
commit
f7de101cd5
3 changed files with 98 additions and 1 deletions
21
flake.nix
21
flake.nix
|
@ -189,6 +189,27 @@
|
||||||
inputs.sops-nix.nixosModules.sops
|
inputs.sops-nix.nixosModules.sops
|
||||||
inputs.nixarr.nixosModules.default
|
inputs.nixarr.nixosModules.default
|
||||||
./hosts/media-server/configuration.nix
|
./hosts/media-server/configuration.nix
|
||||||
|
|
||||||
|
{
|
||||||
|
home-manager = {
|
||||||
|
useGlobalPkgs = true;
|
||||||
|
useUserPackages = true;
|
||||||
|
backupFileExtension = "bak";
|
||||||
|
sharedModules = [
|
||||||
|
inputs.nix-flatpak.homeManagerModules.nix-flatpak
|
||||||
|
inputs.sops-nix.homeManagerModules.sops
|
||||||
|
];
|
||||||
|
extraSpecialArgs = {
|
||||||
|
inherit inputs;
|
||||||
|
nix-config = self;
|
||||||
|
pkgs-stable = inputs.nixpkgs-stable {
|
||||||
|
config.allowUnfree = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
users.media = import ./homes/media/default.nix;
|
||||||
|
};
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -0,0 +1,71 @@
|
||||||
|
{ nix-config, config, lib, pkgs, inputs, ... }:
|
||||||
|
{
|
||||||
|
|
||||||
|
imports = with nix-config.homeModules; [
|
||||||
|
shell-conf # shell, shell utils, cli tools, libs, tui's
|
||||||
|
];
|
||||||
|
|
||||||
|
home = {
|
||||||
|
packages = with pkgs; [
|
||||||
|
cifs-utils
|
||||||
|
];
|
||||||
|
|
||||||
|
username = "media";
|
||||||
|
homeDirectory = "/home/media";
|
||||||
|
|
||||||
|
sessionVariables = {
|
||||||
|
NH_FLAKE = "\${HOME}/nixos-config";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
programs = {
|
||||||
|
home-manager.enable = true;
|
||||||
|
|
||||||
|
pandoc.enable = true;
|
||||||
|
password-store.enable = true;
|
||||||
|
|
||||||
|
git = {
|
||||||
|
enable = true;
|
||||||
|
lfs = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
userEmail = "matt@emenel.ca";
|
||||||
|
userName = "Matt Nish-Lapidus";
|
||||||
|
ignores = [
|
||||||
|
".DS_Store"
|
||||||
|
];
|
||||||
|
extraConfig = {
|
||||||
|
core = {
|
||||||
|
editor = "$EDITOR";
|
||||||
|
pager = "${pkgs.delta}/bin/delta";
|
||||||
|
};
|
||||||
|
interactive = {
|
||||||
|
diffFilter = "${pkgs.delta}/bin/delta --color-only";
|
||||||
|
};
|
||||||
|
delta = {
|
||||||
|
navigate = true;
|
||||||
|
dark = true;
|
||||||
|
line-numbers = true;
|
||||||
|
side-by-side = true;
|
||||||
|
};
|
||||||
|
merge = {
|
||||||
|
conflictstyle = "zdiff3";
|
||||||
|
};
|
||||||
|
init = {
|
||||||
|
defaultBranch = "main";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
aliases = {
|
||||||
|
co = "checkout";
|
||||||
|
cm = "commit -m";
|
||||||
|
aa = "add .";
|
||||||
|
p = "push";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.user = {
|
||||||
|
enable = true;
|
||||||
|
startServices = "sd-switch"; # auto reload services when home is rebuilt
|
||||||
|
};
|
||||||
|
}
|
|
@ -139,12 +139,17 @@
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
|
# For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
|
||||||
system.stateVersion = "25.05"; # Did you read the comment?
|
system.stateVersion = "25.05"; # Did you read the comment?
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue