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-wayland": "nixpkgs-wayland",
"pinix": "pinix",
"stable": "stable"
"stable": "stable",
"tsm": "tsm"
}
},
"stable": {
@ -467,6 +468,28 @@
"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": {
"flake": false,
"locked": {

View file

@ -11,6 +11,9 @@
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
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.inputs.nixpkgs.follows = "nixpkgs";
hyprland-contrib.url = "github:hyprwm/contrib";

View file

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

View file

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

View file

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

View file

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