add tsm flake

This commit is contained in:
Daylin Morgan 2024-03-18 17:20:18 -05:00
parent e0a3123035
commit 13b42e2511
Signed by: daylin
GPG key ID: 950D13E9719334AD
6 changed files with 36 additions and 8 deletions

View file

@ -381,7 +381,8 @@
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nixpkgs-wayland": "nixpkgs-wayland", "nixpkgs-wayland": "nixpkgs-wayland",
"pinix": "pinix", "pinix": "pinix",
"stable": "stable" "stable": "stable",
"tsm": "tsm"
} }
}, },
"stable": { "stable": {
@ -467,6 +468,28 @@
"type": "github" "type": "github"
} }
}, },
"tsm": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"dir": "nix",
"lastModified": 1710799014,
"narHash": "sha256-QQMkhLc3UPOziGHCKHLkLffbbUxhXBOpmaarTX1LfxM=",
"owner": "daylinmorgan",
"repo": "tsm",
"rev": "ebdf050743bfac25a08944b2a348327909371ce2",
"type": "github"
},
"original": {
"dir": "nix",
"owner": "daylinmorgan",
"repo": "tsm",
"type": "github"
}
},
"wlroots": { "wlroots": {
"flake": false, "flake": false,
"locked": { "locked": {

View file

@ -11,6 +11,9 @@
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
stable.url = "github:nixos/nixpkgs/nixos-23.11"; stable.url = "github:nixos/nixpkgs/nixos-23.11";
tsm.url = "github:daylinmorgan/tsm?dir=nix";
tsm.inputs.nixpkgs.follows = "nixpkgs";
hyprland.url = "github:hyprwm/Hyprland/main"; hyprland.url = "github:hyprwm/Hyprland/main";
hyprland.inputs.nixpkgs.follows = "nixpkgs"; hyprland.inputs.nixpkgs.follows = "nixpkgs";
hyprland-contrib.url = "github:hyprwm/contrib"; hyprland-contrib.url = "github:hyprwm/contrib";

View file

@ -20,8 +20,8 @@
"tex" "tex"
"node" "node"
]; ];
chrome.enable = true;
}; };
vivaldi.enable = true;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
zk zk

View file

@ -26,7 +26,7 @@
languages languages
# programs # programs
vivaldi chrome
vscode vscode
]; ];

View file

@ -1,7 +1,8 @@
{ {
config, inputs,
lib, lib,
pkgs, pkgs,
config,
... ...
}: let }: let
inherit (lib) mkOption mkIf types; inherit (lib) mkOption mkIf types;
@ -32,6 +33,7 @@ in {
ripgrep ripgrep
btop btop
inputs.tsm.packages.${pkgs.system}.tsm
]; ];
}; };
} }

View file

@ -5,9 +5,9 @@
... ...
}: let }: let
inherit (lib) mkIf mkEnableOption; inherit (lib) mkIf mkEnableOption;
cfg = config.vivaldi; cfg = config.oizys.chrome;
in { in {
options.vivaldi.enable = mkEnableOption "enable vivaldi + extensions"; options.oizys.chrome.enable = mkEnableOption "enable chrome + extensions";
config = mkIf cfg.enable { config = mkIf cfg.enable {
programs.chromium = { programs.chromium = {
enable = true; enable = true;
@ -18,15 +18,15 @@ in {
"pbmlfaiicoikhdbjagjbglnbfcbcojpj" # simplify gmail "pbmlfaiicoikhdbjagjbglnbfcbcojpj" # simplify gmail
"oemmndcbldboiebfnladdacbdfmadadm" # pdf viewer "oemmndcbldboiebfnladdacbdfmadadm" # pdf viewer
"clngdbkpkpeebahjckkjfobafhncgmne" # stylus "clngdbkpkpeebahjckkjfobafhncgmne" # stylus
"cjpalhdlnbpafiamejdnhcphjbkeiagm" # ublock origin
]; ];
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
(vivaldi.override { (google-chrome.override {
commandLineArgs = [ commandLineArgs = [
"--force-dark-mode" "--force-dark-mode"
]; ];
proprietaryCodecs = true;
}) })
]; ];
}; };