mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-05-24 13:26:06 -07:00
Compare commits
No commits in common. "9399b584f8538141d77aa3f6edc83d8111b7b57d" and "3beb73443154631398e1ab737a5f7790863a4478" have entirely different histories.
9399b584f8
...
3beb734431
@ -18,7 +18,7 @@
|
||||
# Modules
|
||||
modules = {
|
||||
desktop = {
|
||||
enable = true;
|
||||
browser.enable = true;
|
||||
gnome.enable = true;
|
||||
};
|
||||
devel = {
|
||||
|
@ -34,7 +34,7 @@
|
||||
# Modules
|
||||
modules = {
|
||||
desktop = {
|
||||
enable = true;
|
||||
browser.enable = true;
|
||||
gnome.enable = true;
|
||||
};
|
||||
devel = {
|
||||
|
@ -25,13 +25,12 @@
|
||||
docker-compose
|
||||
podman-tui
|
||||
dive
|
||||
appgate-sdp
|
||||
];
|
||||
|
||||
# Modules
|
||||
modules = {
|
||||
desktop = {
|
||||
enable = true;
|
||||
browser.enable = true;
|
||||
gnome.enable = true;
|
||||
};
|
||||
devel = {
|
||||
|
@ -21,7 +21,7 @@
|
||||
# Modules
|
||||
modules = {
|
||||
desktop = {
|
||||
enable = true;
|
||||
browser.enable = true;
|
||||
gnome.enable = true;
|
||||
};
|
||||
devel = {
|
||||
|
@ -36,10 +36,4 @@
|
||||
{ "url" = "https://old.reddit.com/r/nixos/"; name = "nixos-reddit"; }
|
||||
{ "url" = "https://nixos.wiki/"; name = "nixos-wiki"; }
|
||||
]; }
|
||||
{ "name" = "Work"; "children" = [
|
||||
{ url = "https://webmail.apps.mil/owa"; name = "WebMail";}
|
||||
{ url = "https://dod.teams.microsoft.us/"; name = "Teams";}
|
||||
{ url = "https://usaf-my.dps.mil/"; name = "OneDrive";}
|
||||
]; }
|
||||
|
||||
]
|
@ -1,16 +1,9 @@
|
||||
{ config, lib, pkgs, user, ... }:
|
||||
|
||||
let cfg1 = config.modules.desktop;
|
||||
cfg2 = config.modules.programs.chrome;
|
||||
let cfg = config.modules.desktop.browser;
|
||||
in {
|
||||
options.modules.programs.chrome = with lib; {
|
||||
enable = lib.mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf (cfg1.enable && cfg2.enable) {
|
||||
# Enable option declared in firefox.nix
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
google-chrome # Web browser developed by Google.
|
||||
];
|
||||
@ -53,7 +46,7 @@ in {
|
||||
# Setup bookmarks
|
||||
"BookmarkBarEnabled" = true;
|
||||
"ShowAppsShortcutInBookmarkBar" = false;
|
||||
"ManagedBookmarks" = import ./bookmarks.nix;
|
||||
"ManagedBookmarks" = import ./bookmarks/chrome.nix;
|
||||
};
|
||||
};
|
||||
|
4
provision/modules/desktop/browser/default.nix
Normal file
4
provision/modules/desktop/browser/default.nix
Normal file
@ -0,0 +1,4 @@
|
||||
{ ... }:
|
||||
{
|
||||
imports = [ ./chrome.nix ./firefox.nix ];
|
||||
}
|
@ -1,17 +1,10 @@
|
||||
{ config, lib, pkgs, user, ... }:
|
||||
|
||||
let cfg1 = config.modules.desktop;
|
||||
cfg2 = config.modules.programs.firefox;
|
||||
let cfg = config.modules.desktop.browser;
|
||||
in {
|
||||
options.modules.programs.firefox = with lib; {
|
||||
enable = lib.mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf (cfg1.enable && cfg2.enable) {
|
||||
# Applications for CAC usage
|
||||
options.modules.desktop.browser.enable = lib.mkEnableOption "browser";
|
||||
config = lib.mkIf cfg.enable {
|
||||
# Install applications for CAC
|
||||
environment.systemPackages = with pkgs; [
|
||||
opensc
|
||||
pcsc-tools
|
||||
@ -22,7 +15,7 @@ in {
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
profiles.default = {
|
||||
bookmarks = import ./bookmarks.nix;
|
||||
bookmarks = import ./bookmarks/firefox.nix;
|
||||
isDefault = true;
|
||||
name = "default";
|
||||
settings = {
|
@ -1,14 +1,7 @@
|
||||
{ config, lib, pkgs, user, inputs, ... }:
|
||||
{
|
||||
imports = [ ./browser ./keyd.nix ./gnome.nix ];
|
||||
|
||||
let cfg = config.modules.desktop;
|
||||
in {
|
||||
imports = [
|
||||
./keyd.nix
|
||||
./gnome.nix
|
||||
];
|
||||
|
||||
options.modules.desktop.enable = lib.mkEnableOption "desktop";
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
bc # Arbitrary-precision arithmetic language.
|
||||
fzf # Command-line fuzzy finder for Unix-like operating systems.
|
||||
@ -43,5 +36,4 @@ in {
|
||||
"application/x-extension-xht" = [ "google-chrome.desktop" ];
|
||||
"application/pdf" = [ "google-chrome.desktop" ]; };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@ -1,8 +1,6 @@
|
||||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./chrome
|
||||
./firefox
|
||||
./git.nix
|
||||
./chezmoi.nix
|
||||
./kitty.nix
|
||||
|
@ -1,8 +0,0 @@
|
||||
self: super: {
|
||||
appgate-sdp = super.appgate-sdp.overrideAttrs (old: {
|
||||
src = super.fetchurl {
|
||||
url = "https://bin.appgate-sdp.com/6.4/client/appgate-sdp_6.4.0_amd64.deb";
|
||||
sha256 = "sha256-0h6Mz3B7fADGL5tGbrKNYpVIAvRu7Xx0n9OvjOeVCds=";
|
||||
};
|
||||
});
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user