Compare commits

..

2 commits

10 changed files with 82 additions and 86 deletions

62
flake.lock generated
View file

@ -55,16 +55,16 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1772985280, "lastModified": 1781981105,
"narHash": "sha256-FdrNykOoY9VStevU4zjSUdvsL9SzJTcXt4omdEDZDLk=", "narHash": "sha256-/1nNBbA7PrSQpTc9Qazkhl4kIPg+TNl0CjxS3UQJKlw=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "8f736f007139d7f70752657dff6a401a585d6cbc", "rev": "7bfff44b465909f69a442701293bc0badcf476dc",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nix-community", "owner": "nix-community",
"ref": "release-25.11", "ref": "release-26.05",
"repo": "home-manager", "repo": "home-manager",
"type": "github" "type": "github"
} }
@ -76,16 +76,16 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1772129556, "lastModified": 1781772065,
"narHash": "sha256-Utk0zd8STPsUJPyjabhzPc5BpPodLTXrwkpXBHYnpeg=", "narHash": "sha256-xIbRSwDB1GBAUsWsQZUjudGfAGQt3BOpsWaO/ugVa4w=",
"owner": "LnL7", "owner": "LnL7",
"repo": "nix-darwin", "repo": "nix-darwin",
"rev": "ebec37af18215214173c98cf6356d0aca24a2585", "rev": "adda04f0bf4819575b1978c2f8d78401b3c2be12",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "LnL7", "owner": "LnL7",
"ref": "nix-darwin-25.11", "ref": "nix-darwin-26.05",
"repo": "nix-darwin", "repo": "nix-darwin",
"type": "github" "type": "github"
} }
@ -112,43 +112,43 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1772822230, "lastModified": 1782375420,
"narHash": "sha256-yf3iYLGbGVlIthlQIk5/4/EQDZNNEmuqKZkQssMljuw=", "narHash": "sha256-wiPYmEuHbJvleW489n6+lamL7JSJg3pcKUYwURU9CkI=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "71caefce12ba78d84fe618cf61644dce01cf3a96", "rev": "4062d36ebeae843c750011eef6b61ec9a9dbc9a9",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nixos", "owner": "nixos",
"ref": "nixos-25.11", "ref": "nixos-26.05",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
}, },
"nixpkgs-darwin": { "nixpkgs-darwin": {
"locked": { "locked": {
"lastModified": 1766129819, "lastModified": 1782185013,
"narHash": "sha256-crNRwvsbH2XSV8IwBjX6Tm+uWmYwhYyRuNVJ9/ZwlmA=", "narHash": "sha256-MMIaAyu3HWrWUBTWEGjhSw3CxfAOVfgqdWv4hcx/+Fs=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "eedcb27bf99430e51f83d896cd1149b828290d20", "rev": "9a54db6898b38a6beded82ce6890b46a0a517d72",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nixos", "owner": "nixos",
"ref": "nixpkgs-26.05-darwin",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "eedcb27bf99430e51f83d896cd1149b828290d20",
"type": "github" "type": "github"
} }
}, },
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1772771118, "lastModified": 1782175435,
"narHash": "sha256-xWzaTvmmACR/SRWtABgI/Z97lcqwJAeoSd5QW1KdK1s=", "narHash": "sha256-EMzXKmnOtBQ2MnvpiNOm7E+kOMvdPrIKaeg52Tip2Uk=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "e38213b91d3786389a446dfce4ff5a8aaf6012f2", "rev": "89570f24e97e614aa34aa9ab1c927b6578a43775",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -166,11 +166,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1773029295, "lastModified": 1782590177,
"narHash": "sha256-xmHhVHbaA5hR3dCEoGwqAgL6HTTJ0KEMRUTLdJuVtGM=", "narHash": "sha256-TkFqACbfUwWeD00ROAXNhxI2wflPP2poUOLeeq60bRg=",
"owner": "nix-community", "owner": "nix-community",
"repo": "NUR", "repo": "NUR",
"rev": "bf45b24de2134f1488f7a6c135f4b0420ccec6fe", "rev": "ed5872eecf655379bfe46debce7182956b9ad080",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -189,11 +189,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1772361940, "lastModified": 1775856943,
"narHash": "sha256-B1Cz+ydL1iaOnGlwOFld/C8lBECPtzhiy/pP93/CuyY=", "narHash": "sha256-b7Mp7P+q2Md5AGt4rjHfMcBykzMumFTen10ST++AuTU=",
"owner": "nix-community", "owner": "nix-community",
"repo": "plasma-manager", "repo": "plasma-manager",
"rev": "a4b33606111c9c5dcd10009042bb710307174f51", "rev": "a524a6160e6df89f7673ba293cf7d78b559eb1a5",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -204,11 +204,11 @@
}, },
"quadlet-nix": { "quadlet-nix": {
"locked": { "locked": {
"lastModified": 1770606362, "lastModified": 1782004439,
"narHash": "sha256-6pOOPOQr4rtgShBtkLkSDTql5rRqcUgTRz8O+axK2eM=", "narHash": "sha256-OANOcPKJ3JThp2x/ccz4DDrGDY2hIgM5SBLI51swgfI=",
"owner": "SEIAROTg", "owner": "SEIAROTg",
"repo": "quadlet-nix", "repo": "quadlet-nix",
"rev": "f4ae60350ea6015b6560cbd0e1f11f7e195c993d", "rev": "f1652b490b812c4e0b2a36565cdbedf87f35e438",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -240,11 +240,11 @@
}, },
"locked": { "locked": {
"dir": "pkgs/firefox-addons", "dir": "pkgs/firefox-addons",
"lastModified": 1773028978, "lastModified": 1782532968,
"narHash": "sha256-4BjOTYhHP8ljHShQyZ1gUIdwgSLjvaGN2ueKfqp6CQk=", "narHash": "sha256-nRE0OA58F9UtlZkAzfggrLfTcXhqvP89pE5CCIgujBk=",
"owner": "rycee", "owner": "rycee",
"repo": "nur-expressions", "repo": "nur-expressions",
"rev": "a6ed037ffc0b50a9bd0c92e20e31f270a03ca1e3", "rev": "06aa41fb8e537b83fab322ff2c9444ecc5bbe720",
"type": "gitlab" "type": "gitlab"
}, },
"original": { "original": {

View file

@ -3,10 +3,8 @@
inputs = { inputs = {
# Specify the source of Home Manager and Nixpkgs. # Specify the source of Home Manager and Nixpkgs.
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11"; nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05";
# Revert to a cached version of Julia for aarch64-darwin nixpkgs-darwin.url = "github:nixos/nixpkgs/nixpkgs-26.05-darwin";
nixpkgs-darwin.url =
"github:nixos/nixpkgs/eedcb27bf99430e51f83d896cd1149b828290d20";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable"; nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
# Inputs for both darwin and linux systems # Inputs for both darwin and linux systems
@ -19,7 +17,7 @@
}; };
}; };
home-manager = { home-manager = {
url = "github:nix-community/home-manager/release-25.11"; url = "github:nix-community/home-manager/release-26.05";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nur = { nur = {
@ -43,7 +41,7 @@
# Darwin-specific inputs # Darwin-specific inputs
nix-darwin = { nix-darwin = {
url = "github:LnL7/nix-darwin/nix-darwin-25.11"; url = "github:LnL7/nix-darwin/nix-darwin-26.05";
inputs.nixpkgs.follows = "nixpkgs-darwin"; inputs.nixpkgs.follows = "nixpkgs-darwin";
}; };
nix-rosetta-builder = { nix-rosetta-builder = {

View file

@ -32,7 +32,7 @@
most most
p7zip p7zip
pdfgrep pdfgrep
pipx # pipx
python3 python3
]; ];
sessionVariables = { sessionVariables = {

View file

@ -22,7 +22,7 @@
nerd-fonts.symbols-only nerd-fonts.symbols-only
nil nil
nixd nixd
nixfmt-classic nixfmt
nixos-rebuild nixos-rebuild
quarto quarto
roboto-slab roboto-slab

View file

@ -6,7 +6,7 @@ in {
imports = [ ./../programs/plasma.nix ]; imports = [ ./../programs/plasma.nix ];
home = { home = {
packages = with pkgs; [ kwalletcli sqlitebrowser custom-pkgs.sc4pac ]; packages = with pkgs; [ sqlitebrowser custom-pkgs.sc4pac ];
sessionVariables = { ZED_WINDOW_DECORATIONS = "server"; }; sessionVariables = { ZED_WINDOW_DECORATIONS = "server"; };
}; };
services = { services = {
@ -14,7 +14,7 @@ in {
# Use kwallet cli, but put it in extraConfig, otherwise gpg-agent will # Use kwallet cli, but put it in extraConfig, otherwise gpg-agent will
# ask the cli for the password, instead of asking the pinentry package for it # ask the cli for the password, instead of asking the pinentry package for it
extraConfig = '' extraConfig = ''
pinentry-program ${pkgs.kwalletcli}/bin/pinentry-kwallet pinentry-program /usr/bin/pinentry-qt
''; '';
}; };
}; };

View file

@ -1,8 +1,9 @@
{ pkgs, firefox-addons, buildFirefoxXpiAddon, lib, ... }: { { pkgs, config, firefox-addons, buildFirefoxXpiAddon, lib, ... }: {
programs.firefox = { programs.firefox = {
enable = true; enable = true;
package = package =
null; # Use native package manager/Homebrew b/c there are fewer breakages null; # Use native package manager/Homebrew b/c there are fewer breakages
configPath = "${config.xdg.configHome}/mozilla/firefox";
nativeMessagingHosts = [ ]; nativeMessagingHosts = [ ];
profileVersion = null; profileVersion = null;
profiles = { profiles = {

View file

@ -4,6 +4,8 @@
package = pkgs.neovim-unwrapped; package = pkgs.neovim-unwrapped;
defaultEditor = true; defaultEditor = true;
coc.enable = true; coc.enable = true;
withRuby = false;
withPython3 = false;
plugins = with pkgs.vimPlugins; [ plugins = with pkgs.vimPlugins; [
mason-nvim mason-nvim
mason-lspconfig-nvim mason-lspconfig-nvim
@ -16,7 +18,7 @@
lspsaga-nvim lspsaga-nvim
vim-slime vim-slime
]; ];
extraLuaConfig = '' initLua = ''
require("mason").setup() require("mason").setup()
''; '';
}; };

View file

@ -1,57 +1,57 @@
{ pkgs, lib, config, hostname, ... }: { pkgs, lib, config, hostname, ... }:
let let
sshIdPath = host: "~/.ssh/id_ed25519__${host}"; sshIdPath = host: "~/.ssh/id_ed25519__${host}";
tailnetConfig = host: { identityFile = sshIdPath host; }; tailnetConfig = host: { IdentityFile = sshIdPath host; };
gitConfig = host: tailnetConfig host // { user = "git"; }; gitConfig = host: tailnetConfig host // { User = "git"; };
tailnetHosts = [ "anderson" "mcentire" "bosephus" ]; tailnetHosts = [ "anderson" "mcentire" "bosephus" ];
gitHosts = [ "github.com" "gitlab.com" "codeberg.org" "code.millironx.com" ]; gitHosts = [ "github.com" "gitlab.com" "codeberg.org" "code.millironx.com" ];
tailnetMatchBlocks = tailnetMatchBlocks =
lib.genAttrs (lib.lists.remove hostname tailnetHosts) tailnetConfig; lib.genAttrs (lib.lists.remove hostname tailnetHosts) tailnetConfig;
gitMatchBlocks = lib.genAttrs gitHosts gitConfig // { gitMatchBlocks = lib.genAttrs gitHosts gitConfig // {
"code.millironx.com" = (gitConfig "code.millironx.com") // { "code.millironx.com" = (gitConfig "code.millironx.com") // {
proxyCommand = "ssh anderson -W localhost:2222"; ProxyCommand = "ssh anderson -W localhost:2222";
hostname = "code.millironx.com"; HostName = "code.millironx.com";
}; };
}; };
in { in {
programs.ssh = { programs.ssh = {
enable = true; enable = true;
enableDefaultConfig = false; enableDefaultConfig = false;
matchBlocks = { settings = {
"*" = { identitiesOnly = true; }; "*" = { IdentitiesOnly = true; };
"aahz" = { "aahz" = {
hostname = "nistac-108-37.dhcp.ksu.edu"; HostName = "nistac-108-37.dhcp.ksu.edu";
user = "tchristensen"; User = "tchristensen";
identityFile = sshIdPath "aahz"; IdentityFile = sshIdPath "aahz";
}; };
"skeeve" = { "skeeve" = {
hostname = "129.130.108.157"; HostName = "129.130.108.157";
user = "tchristensen"; User = "tchristensen";
identityFile = sshIdPath "skeeve"; IdentityFile = sshIdPath "skeeve";
}; };
"ceres" = { "ceres" = {
hostname = "ceres.scinet.usda.gov"; HostName = "ceres.scinet.usda.gov";
user = "thomas.christensen"; User = "thomas.christensen";
identitiesOnly = false; IdentitiesOnly = false;
serverAliveInterval = 20; ServerAliveInterval = 20;
serverAliveCountMax = 30; ServerAliveCountMax = 30;
extraOptions = { TCPKeepAlive = "yes"; }; TCPKeepAlive = "yes";
}; };
"atlas" = { "atlas" = {
hostname = "Atlas-login-1.hpc.msstate.edu"; HostName = "Atlas-login-1.hpc.msstate.edu";
user = "thomas.christensen"; User = "thomas.christensen";
identitiesOnly = false; IdentitiesOnly = false;
serverAliveInterval = 20; ServerAliveInterval = 20;
serverAliveCountMax = 30; ServerAliveCountMax = 30;
extraOptions = { TCPKeepAlive = "yes"; }; TCPKeepAlive = "yes";
}; };
"atlas-dtn" = { "atlas-dtn" = {
hostname = "Atlas-dtn.hpc.msstate.edu"; HostName = "Atlas-dtn.hpc.msstate.edu";
user = "thomas.christensen"; User = "thomas.christensen";
identitiesOnly = false; IdentitiesOnly = false;
}; };
"code.millironx.com" = { "code.millironx.com" = {
proxyCommand = "ssh anderson -W localhost:2222"; ProxyCommand = "ssh anderson -W localhost:2222";
}; };
} // tailnetMatchBlocks // gitMatchBlocks; } // tailnetMatchBlocks // gitMatchBlocks;
}; };

View file

@ -65,9 +65,7 @@
}; };
}; };
}; };
Nix = { Nix = { formatter.external.command = "${pkgs.nixfmt}/bin/nixfmt"; };
formatter.external.command = "${pkgs.nixfmt-classic}/bin/nixfmt";
};
}; };
lsp = { lsp = {
nil = { settings.nix.flake.autoArchive = true; }; nil = { settings.nix.flake.autoArchive = true; };

View file

@ -1,13 +1,9 @@
{ pkgs, lib, config, ... }: let { pkgs, lib, config, ... }:
driver-name = "iHD"; in let driver-name = "iHD";
{ in {
environment = { environment = {
sessionVariables.LIBVA_DRIVER_NAME = driver-name; sessionVariables.LIBVA_DRIVER_NAME = driver-name;
systemPackages = with pkgs; [ systemPackages = with pkgs; [ jellyfin jellyfin-web jellyfin-ffmpeg ];
jellyfin
jellyfin-web
jellyfin-ffmpeg
];
}; };
hardware.graphics = { hardware.graphics = {
@ -15,13 +11,13 @@
extraPackages = with pkgs; [ extraPackages = with pkgs; [
intel-ocl intel-ocl
intel-media-driver intel-media-driver
intel-compute-runtime-legacy1
]; ];
}; };
# Allow the unfree drivers # Allow the unfree drivers
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ nixpkgs.config.allowUnfreePredicate = pkg:
"intel-ocl" builtins.elem (lib.getName pkg) [ "intel-ocl" ];
];
services.jellyfin = { services.jellyfin = {
enable = true; enable = true;
@ -30,5 +26,6 @@
systemd.services.jellyfin.environment.LIBVA_DRIVER_NAME = driver-name; systemd.services.jellyfin.environment.LIBVA_DRIVER_NAME = driver-name;
users.users.${config.services.jellyfin.user}.extraGroups = [ "mixstudios" "render" ]; users.users.${config.services.jellyfin.user}.extraGroups =
[ "mixstudios" "render" ];
} }