Compare commits
10 Commits
cef4d8654a
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c3f1f0bfb1 | ||
|
|
9eddcb81db | ||
|
|
f475232dd4 | ||
|
|
a60f8e3412 | ||
|
|
170fe3a1dc | ||
|
|
bf25d47f15 | ||
|
|
f14771fe14 | ||
|
|
ef753f2450 | ||
|
|
b4055e9364 | ||
|
|
53f8093cdb |
82
flake.lock
generated
82
flake.lock
generated
@@ -1,5 +1,21 @@
|
|||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
|
"flake-compat": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1747046372,
|
||||||
|
"narHash": "sha256-CIVLLkVgvHYbgI2UpXvIIBJ12HWgX+fjA8Xf8PUmqCY=",
|
||||||
|
"owner": "edolstra",
|
||||||
|
"repo": "flake-compat",
|
||||||
|
"rev": "9100a0f413b0c601e0533d1d94ffd501ce2e7885",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "edolstra",
|
||||||
|
"repo": "flake-compat",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"flake-parts": {
|
"flake-parts": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs-lib": "nixpkgs-lib"
|
"nixpkgs-lib": "nixpkgs-lib"
|
||||||
@@ -64,11 +80,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1753617834,
|
"lastModified": 1761845621,
|
||||||
"narHash": "sha256-WEVfKrdIdu5CpppJ0Va3vzP0DKlS+ZTLbBjugMO2Drg=",
|
"narHash": "sha256-d+R4MHsGmdebvSMsYUFWONsZSlUbOo8Zq/wjMdMiIac=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "72cc1e3134a35005006f06640724319caa424737",
|
"rev": "97e3022a8d2c09313fa49847f6da4d76abcfc72d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -83,11 +99,11 @@
|
|||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1753623188,
|
"lastModified": 1761867267,
|
||||||
"narHash": "sha256-+32GZoXlUgnxQsmDZt8AeUUy1nzcZlSZQES8FGcbm3M=",
|
"narHash": "sha256-b2vU6HzMR26JnHmnkvNZgefyfzAZOi9wLZdA+WOymHU=",
|
||||||
"owner": "ggerganov",
|
"owner": "ggerganov",
|
||||||
"repo": "llama.cpp",
|
"repo": "llama.cpp",
|
||||||
"rev": "bf78f5439ee8e82e367674043303ebf8e92b4805",
|
"rev": "6eb208d17ea29bb60295d9a2b5e7122dfb8f4b55",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -96,6 +112,25 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nix-matlab": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-compat": "flake-compat",
|
||||||
|
"nixpkgs": "nixpkgs_2"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1754476755,
|
||||||
|
"narHash": "sha256-vSF0VMEmPMzwNkrXIZwkhOSYmKES9BaDK/LlEe7/q8E=",
|
||||||
|
"owner": "doronbehar",
|
||||||
|
"repo": "nix-matlab",
|
||||||
|
"rev": "0e9c9fb660f9e1a1e4d59fd083e0212a15b513e2",
|
||||||
|
"type": "gitlab"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "doronbehar",
|
||||||
|
"repo": "nix-matlab",
|
||||||
|
"type": "gitlab"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1732014248,
|
"lastModified": 1732014248,
|
||||||
@@ -142,11 +177,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-unstable": {
|
"nixpkgs-unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1753429684,
|
"lastModified": 1761672384,
|
||||||
"narHash": "sha256-9h7+4/53cSfQ/uA3pSvCaBepmZaz/dLlLVJnbQ+SJjk=",
|
"narHash": "sha256-o9KF3DJL7g7iYMZq9SWgfS1BFlNbsm6xplRjVlOCkXI=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "7fd36ee82c0275fb545775cc5e4d30542899511d",
|
"rev": "08dacfca559e1d7da38f3cf05f1f45ee9bfd213c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -158,11 +193,25 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1744868846,
|
"lastModified": 1754340878,
|
||||||
"narHash": "sha256-5RJTdUHDmj12Qsv7XOhuospjAjATNiTMElplWnJE9Hs=",
|
"narHash": "sha256-lgmUyVQL9tSnvvIvBp7x1euhkkCho7n3TMzgjdvgPoU=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "ebe4301cbd8f81c4f8d3244b3632338bbeb6d49c",
|
"rev": "cab778239e705082fe97bb4990e0d24c50924c04",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"id": "nixpkgs",
|
||||||
|
"type": "indirect"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs_3": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1760596604,
|
||||||
|
"narHash": "sha256-J/i5K6AAz/y5dBePHQOuzC7MbhyTOKsd/GLezSbEFiM=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "3cbe716e2346710d6e1f7c559363d14e11c32a43",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -178,6 +227,7 @@
|
|||||||
"home-manager-stable": "home-manager-stable",
|
"home-manager-stable": "home-manager-stable",
|
||||||
"home-manager-unstable": "home-manager-unstable",
|
"home-manager-unstable": "home-manager-unstable",
|
||||||
"llama-cpp": "llama-cpp",
|
"llama-cpp": "llama-cpp",
|
||||||
|
"nix-matlab": "nix-matlab",
|
||||||
"nixpkgs-stable": "nixpkgs-stable",
|
"nixpkgs-stable": "nixpkgs-stable",
|
||||||
"nixpkgs-unstable": "nixpkgs-unstable",
|
"nixpkgs-unstable": "nixpkgs-unstable",
|
||||||
"sops-nix": "sops-nix"
|
"sops-nix": "sops-nix"
|
||||||
@@ -185,14 +235,14 @@
|
|||||||
},
|
},
|
||||||
"sops-nix": {
|
"sops-nix": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": "nixpkgs_2"
|
"nixpkgs": "nixpkgs_3"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1752544651,
|
"lastModified": 1760998189,
|
||||||
"narHash": "sha256-GllP7cmQu7zLZTs9z0J2gIL42IZHa9CBEXwBY9szT0U=",
|
"narHash": "sha256-ee2e1/AeGL5X8oy/HXsZQvZnae6XfEVdstGopKucYLY=",
|
||||||
"owner": "Mic92",
|
"owner": "Mic92",
|
||||||
"repo": "sops-nix",
|
"repo": "sops-nix",
|
||||||
"rev": "2c8def626f54708a9c38a5861866660395bb3461",
|
"rev": "5a7d18b5c55642df5c432aadb757140edfeb70b3",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
23
flake.nix
23
flake.nix
@@ -18,6 +18,8 @@
|
|||||||
|
|
||||||
llama-cpp.url = "github:ggerganov/llama.cpp";
|
llama-cpp.url = "github:ggerganov/llama.cpp";
|
||||||
|
|
||||||
|
nix-matlab.url = "gitlab:doronbehar/nix-matlab";
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs@{ self
|
outputs = inputs@{ self
|
||||||
@@ -28,6 +30,7 @@
|
|||||||
, flake-utils
|
, flake-utils
|
||||||
, sops-nix
|
, sops-nix
|
||||||
, llama-cpp
|
, llama-cpp
|
||||||
|
, nix-matlab
|
||||||
, ...
|
, ...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
@@ -85,6 +88,7 @@
|
|||||||
gui = {
|
gui = {
|
||||||
enable = true;
|
enable = true;
|
||||||
protonmail = true;
|
protonmail = true;
|
||||||
|
secrets = true;
|
||||||
gtk = false;
|
gtk = false;
|
||||||
|
|
||||||
sway = {
|
sway = {
|
||||||
@@ -111,13 +115,14 @@
|
|||||||
|
|
||||||
school = {
|
school = {
|
||||||
enable = true;
|
enable = true;
|
||||||
citrix = false;
|
citrix = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
games = {
|
games = {
|
||||||
enable = true;
|
enable = true;
|
||||||
lutris.enable = true;
|
lutris.enable = true;
|
||||||
minecraft.enable = true;
|
minecraft.enable = true;
|
||||||
|
vintagestory.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
common.nil.enable = true;
|
common.nil.enable = true;
|
||||||
@@ -164,7 +169,7 @@
|
|||||||
|
|
||||||
school = {
|
school = {
|
||||||
enable = true;
|
enable = true;
|
||||||
citrix = false;
|
citrix = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
games = {
|
games = {
|
||||||
@@ -233,15 +238,26 @@
|
|||||||
|
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
overlays = with overlays; [ printrun shadps4 ];
|
overlays = with overlays; [ printrun shadps4 nix-matlab.overlay ];
|
||||||
config = {
|
config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
permittedInsecurePackages = [
|
permittedInsecurePackages = [
|
||||||
"electron-31.7.7"
|
"electron-31.7.7"
|
||||||
|
# TODO: Remove when fixed https://github.com/NixOS/nixpkgs/issues/433004
|
||||||
|
"libsoup-2.74.3"
|
||||||
|
"libxml2-2.13.8"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# TODO: Remove when Citrix is fixed
|
||||||
|
pkgs_stable_tmp = import nixpkgs-stable {
|
||||||
|
inherit system;
|
||||||
|
config = {
|
||||||
|
allowUnfree = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
localPackages = pkgs.lib.genAttrs flake-utils.lib.defaultSystems (system: {
|
localPackages = pkgs.lib.genAttrs flake-utils.lib.defaultSystems (system: {
|
||||||
kickoff-dot-desktop = pkgs.callPackage ./pkgs/kickoff-dot-desktop.nix {};
|
kickoff-dot-desktop = pkgs.callPackage ./pkgs/kickoff-dot-desktop.nix {};
|
||||||
jhelioviewer = pkgs.callPackage ./pkgs/jhelioviewer.nix {};
|
jhelioviewer = pkgs.callPackage ./pkgs/jhelioviewer.nix {};
|
||||||
@@ -267,6 +283,7 @@
|
|||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit localPackages;
|
inherit localPackages;
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
|
inherit pkgs_stable_tmp;
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -65,9 +65,10 @@
|
|||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
localPackages.x86_64-linux.jhelioviewer
|
localPackages.x86_64-linux.jhelioviewer
|
||||||
bottles
|
bottles
|
||||||
quartus-prime-lite
|
matlab
|
||||||
discord
|
discord
|
||||||
wine
|
wine
|
||||||
|
matlab-language-server
|
||||||
];
|
];
|
||||||
|
|
||||||
services.printing.enable = false;
|
services.printing.enable = false;
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
|
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = [ "kvm-amd" "wl" ];
|
boot.kernelModules = [ "kvm-amd" "wl" ];
|
||||||
boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
|
boot.extraModulePackages = [];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" =
|
||||||
{ device = "/dev/disk/by-uuid/c9d87455-b02f-465d-8d63-1858dc2164fe";
|
{ device = "/dev/disk/by-uuid/c9d87455-b02f-465d-8d63-1858dc2164fe";
|
||||||
|
|||||||
@@ -57,6 +57,7 @@
|
|||||||
orca-slicer
|
orca-slicer
|
||||||
qemu
|
qemu
|
||||||
protonvpn-gui
|
protonvpn-gui
|
||||||
|
anki
|
||||||
];
|
];
|
||||||
|
|
||||||
services.hardware.openrgb.enable = true;
|
services.hardware.openrgb.enable = true;
|
||||||
|
|||||||
@@ -14,6 +14,14 @@ iron.setup {
|
|||||||
python = {
|
python = {
|
||||||
command = { "python3" }, -- or { "ipython", "--no-autoindent" }
|
command = { "python3" }, -- or { "ipython", "--no-autoindent" }
|
||||||
format = require("iron.fts.common").bracketed_paste_python
|
format = require("iron.fts.common").bracketed_paste_python
|
||||||
|
},
|
||||||
|
matlab = {
|
||||||
|
command = {
|
||||||
|
"matlab",
|
||||||
|
"-nosplash",
|
||||||
|
"-nodesktop"
|
||||||
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
-- How the repl window will be displayed
|
-- How the repl window will be displayed
|
||||||
|
|||||||
@@ -24,6 +24,16 @@ lspconfig.rust_analyzer.setup {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
lspconfig.matlab_ls.setup {
|
||||||
|
capabilities = capabilities,
|
||||||
|
settings = {
|
||||||
|
MATLAB = {
|
||||||
|
indexWorkspace = false,
|
||||||
|
installPath = "",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
lspconfig.omnisharp.setup {
|
lspconfig.omnisharp.setup {
|
||||||
cmd = { "dotnet", "/usr/lib/omnisharp-roslyn/OmniSharp.dll"}
|
cmd = { "dotnet", "/usr/lib/omnisharp-roslyn/OmniSharp.dll"}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ in
|
|||||||
"${modifier}+Shift+0" = "move container to workspace 10";
|
"${modifier}+Shift+0" = "move container to workspace 10";
|
||||||
"${modifier}+Shift+e" = "exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'";
|
"${modifier}+Shift+e" = "exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'";
|
||||||
"${modifier}+Shift+c" = "reload";
|
"${modifier}+Shift+c" = "reload";
|
||||||
"${modifier}+Shift+s" = "exec ${pkgs.grim}/bin/grim -g \"$(${pkgs.slurp}/bin/slurp)\" \"/home/eesim/Pictures/$(${pkgs.zenity}/bin/zenity --entry).png\"";
|
"${modifier}+Shift+s" = "exec 'TMPFILE=\"$(mktemp)\"; ${pkgs.grim}/bin/grim -g \"$(${pkgs.slurp}/bin/slurp)\" \"$TMPFILE\"; mv \"$TMPFILE\" \"/home/eesim/Pictures/$(${pkgs.zenity}/bin/zenity --entry).png\"'";
|
||||||
"${modifier}+Shift+o" = "exec '${pkgs.grim}/bin/grim -g \"$(${pkgs.slurp}/bin/slurp)\" - | ${localPackages.x86_64-linux.gazou}/bin/gazou | tail -n +2 | ${pkgs.wl-clipboard}/bin/wl-copy'";
|
"${modifier}+Shift+o" = "exec '${pkgs.grim}/bin/grim -g \"$(${pkgs.slurp}/bin/slurp)\" - | ${localPackages.x86_64-linux.gazou}/bin/gazou | tail -n +2 | ${pkgs.wl-clipboard}/bin/wl-copy'";
|
||||||
"${modifier}+Shift+q" = "kill";
|
"${modifier}+Shift+q" = "kill";
|
||||||
"${modifier}+p" = "focus mode_toggle";
|
"${modifier}+p" = "focus mode_toggle";
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ in
|
|||||||
++ optional cfg.gamescope.enable gamescope
|
++ optional cfg.gamescope.enable gamescope
|
||||||
++ optional cfg.discord.enable vesktop
|
++ optional cfg.discord.enable vesktop
|
||||||
++ optional cfg.minecraft.enable prismlauncher
|
++ optional cfg.minecraft.enable prismlauncher
|
||||||
|
++ optional cfg.vintagestory.enable vintagestory
|
||||||
++ optional cfg.ps4.enable localPackages.x86_64-linux.shadps4
|
++ optional cfg.ps4.enable localPackages.x86_64-linux.shadps4
|
||||||
++ optionals cfg.lutris.enable [ lutris wine ];
|
++ optionals cfg.lutris.enable [ lutris wine ];
|
||||||
|
|
||||||
|
|||||||
@@ -53,8 +53,7 @@ in
|
|||||||
liberation_ttf
|
liberation_ttf
|
||||||
noto-fonts
|
noto-fonts
|
||||||
noto-fonts-cjk-sans
|
noto-fonts-cjk-sans
|
||||||
noto-fonts-extra
|
ubuntu-classic
|
||||||
ubuntu_font_family
|
|
||||||
vazir-fonts
|
vazir-fonts
|
||||||
font-awesome
|
font-awesome
|
||||||
corefonts
|
corefonts
|
||||||
|
|||||||
@@ -1,20 +1,21 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, pkgs
|
, pkgs
|
||||||
, config
|
, config
|
||||||
|
, localPackages
|
||||||
|
, pkgs_stable_tmp
|
||||||
, ...
|
, ...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.simmer.school;
|
cfg = config.simmer.school;
|
||||||
extraCerts = [ ./incommon-rsa-ca2.pem ];
|
extraCerts = [ ./incommon-rsa-ca2.pem ];
|
||||||
citrix = pkgs.citrix_workspace_23_09_0.override { inherit extraCerts; };
|
citrix = pkgs_stable_tmp.citrix_workspace_23_09_0.override { inherit extraCerts; };
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
xournalpp
|
xournalpp
|
||||||
libreoffice
|
libreoffice
|
||||||
anki
|
|
||||||
]
|
]
|
||||||
++ optional cfg.citrix citrix
|
++ optional cfg.citrix citrix
|
||||||
++ optional cfg.kicad kicad
|
++ optional cfg.kicad kicad
|
||||||
|
|||||||
@@ -34,6 +34,12 @@ in
|
|||||||
default = true;
|
default = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
vintagestory.enable = mkOption {
|
||||||
|
description = "Whether to install Vintage Story";
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
};
|
||||||
|
|
||||||
minecraft.enable = mkOption {
|
minecraft.enable = mkOption {
|
||||||
description = "Whether to install minecraft launcher";
|
description = "Whether to install minecraft launcher";
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
|
|||||||
Reference in New Issue
Block a user