Skip to content

Commit

Permalink
feat: t510 updates
Browse files Browse the repository at this point in the history
  • Loading branch information
tcarrio committed Aug 29, 2024
1 parent e0db0cc commit 8839d62
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 9 deletions.
3 changes: 2 additions & 1 deletion nixos/mixins/desktop/mate-apps.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{ pkgs, ... }: {
imports = [
../services/flatpak.nix
../services/sane.nix
];

oxc.services.flatpak.enable = true;

# Add some packages to complete the MATE desktop
environment.systemPackages = with pkgs; [
celluloid
Expand Down
3 changes: 2 additions & 1 deletion nixos/mixins/desktop/pantheon-apps.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{ pkgs, ... }: {
imports = [
../services/flatpak.nix
../services/sane.nix
];

oxc.services.flatpak.enable = true;

# Add additional apps and include Yaru for syntax highlighting
environment.systemPackages = with pkgs; [
appeditor
Expand Down
2 changes: 1 addition & 1 deletion nixos/mixins/services/sane.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ desktop, pkgs, ... }: {
config.oxc.desktop.simple-scan.enable = true;
oxc.desktop.simple-scan.enable = true;

hardware = {
sane = {
Expand Down
1 change: 0 additions & 1 deletion nixos/mixins/users/tcarrio/desktop.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
spotify.enable = true;
tilix.enable = true;
vscode.enable = true;
zed.enable = false;
};

environment.systemPackages = with pkgs; [
Expand Down
1 change: 1 addition & 0 deletions nixos/modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
imports = [
./hardware
./services
./virt
] ++ lib.optionals (desktop != null) [ ./desktop ];
}
6 changes: 6 additions & 0 deletions nixos/modules/desktop/vscode.nix
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ in
default = true;
description = "Whether to enable VS Code support for CPP development";
};
deno = mkOption {
type = types.bool;
default = true;
description = "Whether to enable VS Code support for Deno development";
};
diff = mkOption {
type = types.bool;
default = true;
Expand Down Expand Up @@ -230,6 +235,7 @@ in
vscodeExtensions = with vscode-extensions;
# globally enabled extensions
lib.optionals vscode.support.cpp [ ms-vscode.cpptools ]
++ lib.optionals vscode.support.deno [ denoland.vscode-deno ]
++ lib.optionals vscode.support.diff [ ryu1kn.partial-diff ]
++ lib.optionals vscode.support.docker [ ms-azuretools.vscode-docker ]
++ lib.optionals vscode.support.editorconfig [ editorconfig.editorconfig ]
Expand Down
2 changes: 1 addition & 1 deletion nixos/modules/hardware/network-wait-online.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
enable = lib.mkOption {
type = lib.types.bool;
default = true;
description = "Disable the wait-online service";
description = "Enable the wait-online service";
};
};

Expand Down
File renamed without changes.
22 changes: 18 additions & 4 deletions nixos/workstation/t510/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,29 @@
inputs.nixos-hardware.nixosModules.common-pc
inputs.nixos-hardware.nixosModules.common-pc-ssd

../../mixins/desktop/bitwarden.nix
# fix for nixos-rebuild hangups on certain hardware
../../mixins/hardware/disable-nm-wait.nix
../../mixins/hardware/grub-legacy-boot.nix
../../mixins/services/pipewire.nix
../../mixins/virt
];

oxc.services.tailscale.enable = true;
oxc = {
desktop = {
bitwarden.enable = true;
zed.enable = true;

vscode.support = {
deno = true;
};
};
services = {
tailscale.enable = true;
};
containerisation = {
enable = true;
engine = "podman";
};
virtualisation.enable = true;
};

boot = {
kernelPackages = pkgs.linuxPackages_latest;
Expand Down

0 comments on commit 8839d62

Please sign in to comment.