Compare commits
3 commits
ceeec5be41
...
95eb2fa1cb
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
95eb2fa1cb | ||
|
|
e394a6e21e | ||
|
|
704e14251f |
7 changed files with 22 additions and 15 deletions
|
|
@ -38,6 +38,7 @@ in
|
|||
};
|
||||
muede-lpt2 = {
|
||||
system = "x86_64-linux";
|
||||
isDesktop = true;
|
||||
home-manager-users = {
|
||||
inherit (self.homeConfigurations) muede;
|
||||
};
|
||||
|
|
@ -50,6 +51,7 @@ in
|
|||
};
|
||||
muede-pc2 = {
|
||||
system = "x86_64-linux";
|
||||
isDesktop = true;
|
||||
home-manager-users = {
|
||||
inherit (self.homeConfigurations) muede;
|
||||
};
|
||||
|
|
@ -63,6 +65,7 @@ in
|
|||
};
|
||||
ronja-pc = {
|
||||
system = "x86_64-linux";
|
||||
isDesktop = true;
|
||||
home-manager-users = {
|
||||
inherit (self.homeConfigurations) ronja;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -80,7 +80,6 @@
|
|||
onefetch
|
||||
servicepoint-cli
|
||||
servicepoint-simulator
|
||||
tailscale
|
||||
telegram-desktop
|
||||
thunderbird
|
||||
vlc
|
||||
|
|
@ -93,9 +92,6 @@
|
|||
"idea.properties".text = "idea.filewatcher.executable.path = ${pkgs.fsnotifier}/bin/fsnotifier";
|
||||
};
|
||||
|
||||
services = {
|
||||
trayscale.enable = true;
|
||||
poweralertd.enable = true;
|
||||
};
|
||||
services.poweralertd.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
...
|
||||
}:
|
||||
{
|
||||
options.muede.gnome-extensions =
|
||||
options.my.gnome-extensions =
|
||||
let
|
||||
mkDefaultEnabledOption =
|
||||
name:
|
||||
|
|
@ -40,7 +40,7 @@
|
|||
|
||||
config =
|
||||
let
|
||||
cfg = config.muede.gnome-extensions;
|
||||
cfg = config.my.gnome-extensions;
|
||||
in
|
||||
lib.mkIf cfg.enable (
|
||||
lib.mkMerge [
|
||||
|
|
|
|||
4
homeModules/tailscale.nix
Normal file
4
homeModules/tailscale.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{ osConfig, thisDevice, ... }:
|
||||
{
|
||||
services.tailscale-systray.enable = (thisDevice.isDesktop or false) && osConfig.my.tailscale.enable;
|
||||
}
|
||||
|
|
@ -21,6 +21,7 @@ forDevice (
|
|||
{
|
||||
device,
|
||||
system,
|
||||
isDesktop ? false,
|
||||
home-manager-users ? { },
|
||||
nixosSystem ? inputs.nixpkgs.lib.nixosSystem,
|
||||
...
|
||||
|
|
@ -87,7 +88,7 @@ forDevice (
|
|||
};
|
||||
}
|
||||
]
|
||||
++ lib.optionals (home-manager-users != { }) [
|
||||
++ lib.optionals isDesktop [
|
||||
# Desktop config
|
||||
{
|
||||
home-manager = {
|
||||
|
|
@ -100,6 +101,7 @@ forDevice (
|
|||
# keep-sorted start
|
||||
self.homeModules.gnome-extensions
|
||||
self.homeModules.nano
|
||||
self.homeModules.tailscale
|
||||
self.homeModules.templates
|
||||
self.homeModules.zsh-basics
|
||||
# keep-sorted end
|
||||
|
|
|
|||
|
|
@ -102,11 +102,13 @@ in
|
|||
(lib.mkIf isClient {
|
||||
programs.ssh = {
|
||||
knownHosts = buildServerKnownHosts;
|
||||
extraConfig = ''
|
||||
Match Host ${lib.concatStringsSep " " (lib.attrNames buildServerDevices)} User ${buildUser}
|
||||
IdentityFile ${clientSshKeyPath}
|
||||
IdentitiesOnly yes
|
||||
'';
|
||||
extraConfig = lib.concatStringsSep "\n" (
|
||||
lib.mapAttrsToList (name: _: ''
|
||||
Match host ${name} user ${buildUser}
|
||||
IdentityFile ${clientSshKeyPath}
|
||||
IdentitiesOnly yes
|
||||
'') buildServerDevices
|
||||
);
|
||||
};
|
||||
nix = {
|
||||
distributedBuilds = buildMachines != [ ];
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
{
|
||||
options = {
|
||||
my.gnome.enable = lib.mkEnableOption "GNOME desktop environment";
|
||||
muede.keep-gnome-default-apps = lib.mkEnableOption "keep gnome default apps";
|
||||
my.gnome.keep-default-apps = lib.mkEnableOption "keep gnome default apps";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.my.gnome.enable (
|
||||
|
|
@ -39,7 +39,7 @@
|
|||
gpaste.enable = true;
|
||||
};
|
||||
}
|
||||
(lib.mkIf (!config.muede.keep-gnome-default-apps) {
|
||||
(lib.mkIf (!config.my.gnome.keep-default-apps) {
|
||||
environment.gnome.excludePackages = with pkgs; [
|
||||
cheese # photo booth
|
||||
epiphany # web browser
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue