Compare commits

..

No commits in common. "51b7a18449210535cb19d8220093002d5b17476c" and "7acf6a1c13935a5a5b4fb8b4a078697bf322dca3" have entirely different histories.

8 changed files with 520 additions and 537 deletions

View file

@ -1,4 +1,10 @@
{osConfig, ...}: let {
pkgs,
lib,
config,
osConfig,
...
}: let
userConfig = osConfig.host.users.eve; userConfig = osConfig.host.users.eve;
in { in {
nixpkgs.config = { nixpkgs.config = {
@ -51,5 +57,42 @@ in {
sessionVariables = { sessionVariables = {
# EDITOR = "emacs"; # EDITOR = "emacs";
}; };
packages = lib.lists.optionals userConfig.isDesktopUser (
with pkgs; [
firefox
bitwarden
discord
makemkv
signal-desktop-bin
ungoogled-chromium
]
);
};
programs = {
# Let Home Manager install and manage itself.
home-manager.enable = true;
git = {
enable = true;
userName = "Eve";
userEmail = "evesnrobins@gmail.com";
extraConfig.init.defaultBranch = "main";
};
vscode = {
enable = true;
package = pkgs.vscodium;
};
openssh = {
hostKeys = [
{
type = "ed25519";
path = "${config.home.username}_${osConfig.networking.hostName}_ed25519";
}
];
};
}; };
} }

View file

@ -1,52 +0,0 @@
{
lib,
pkgs,
config,
osConfig,
...
}: let
userConfig = osConfig.host.users.eve;
in {
config = {
# Packages that can be installed without any extra configuration
# See https://search.nixos.org/packages for all options
home.packages = lib.lists.optionals userConfig.isDesktopUser (
with pkgs; [
firefox
bitwarden
discord
makemkv
signal-desktop-bin
ungoogled-chromium
]
);
# Packages that need to be installed with some extra configuration
# See https://home-manager-options.extranix.com/ for all options
programs = {
# Let Home Manager install and manage itself.
home-manager.enable = true;
git = {
enable = true;
userName = "Eve";
userEmail = "evesnrobins@gmail.com";
extraConfig.init.defaultBranch = "main";
};
vscode = {
enable = true;
package = pkgs.vscodium;
};
openssh = {
hostKeys = [
{
type = "ed25519";
path = "${config.home.username}_${osConfig.networking.hostName}_ed25519";
}
];
};
};
};
}

View file

@ -1,4 +1,8 @@
{osConfig, ...}: { {
osConfig,
config,
...
}: {
imports = [ imports = [
./i18n.nix ./i18n.nix
./packages.nix ./packages.nix
@ -104,5 +108,44 @@
}; };
}; };
}; };
programs = {
# Let Home Manager install and manage itself.
home-manager.enable = true;
# set up git defaults
git = {
enable = true;
userName = "Leyla Becker";
userEmail = "git@jan-leila.com";
extraConfig.init.defaultBranch = "main";
};
# add direnv to auto load flakes for development
direnv = {
enable = true;
enableBashIntegration = true;
nix-direnv.enable = true;
config = {
global.hide_env_diff = true;
whitelist.exact = ["/home/leyla/documents/code/nix-config"];
};
};
bash.enable = true;
openssh = {
authorizedKeys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJHeItmt8TRW43uNcOC+eIurYC7Eunc0V3LGocQqLaYj leyla@horizon"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIILimFIW2exEH/Xo7LtXkqgE04qusvnPNpPWSCeNrFkP leyla@defiant"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKBiZkg1c2aaNHiieBX4cEziqvJVj9pcDfzUrKU/mO0I leyla@twilight"
];
hostKeys = [
{
type = "ed25519";
path = "${config.home.username}_${osConfig.networking.hostName}_ed25519";
}
];
};
};
}; };
} }

View file

@ -2,12 +2,8 @@
lib, lib,
pkgs, pkgs,
inputs, inputs,
osConfig,
... ...
}: let }: {
is-desktop-user = osConfig.host.users.leyla.isDesktopUser;
in {
config = lib.mkIf is-desktop-user {
programs.firefox = { programs.firefox = {
enable = true; enable = true;
profiles.leyla = { profiles.leyla = {
@ -343,5 +339,4 @@ in {
}; };
}; };
}; };
};
} }

View file

@ -1,6 +1,5 @@
{ {
lib, lib,
config,
osConfig, osConfig,
pkgs, pkgs,
... ...
@ -13,22 +12,22 @@ in {
./firefox.nix ./firefox.nix
]; ];
config = lib.mkMerge [ nixpkgs.config = {
(lib.mkIf userConfig.isTerminalUser { allowUnfree = true;
home.packages = with pkgs; [ };
home = {
packages =
lib.lists.optionals userConfig.isTerminalUser (
with pkgs; [
# command line tools # command line tools
sox sox
yt-dlp yt-dlp
ffmpeg ffmpeg
imagemagick imagemagick
]; ]
}) )
(lib.mkIf userConfig.isDesktopUser { ++ (
nixpkgs.config = {
allowUnfree = true;
};
home.packages = (
lib.lists.optionals userConfig.isDesktopUser ( lib.lists.optionals userConfig.isDesktopUser (
(with pkgs; [ (with pkgs; [
# helvetica font # helvetica font
@ -92,44 +91,5 @@ in {
) )
) )
); );
programs = lib.mkIf userConfig.isDesktopUser {
# Let Home Manager install and manage itself.
home-manager.enable = true;
# set up git defaults
git = {
enable = true;
userName = "Leyla Becker";
userEmail = "git@jan-leila.com";
extraConfig.init.defaultBranch = "main";
}; };
# add direnv to auto load flakes for development
direnv = {
enable = true;
enableBashIntegration = true;
nix-direnv.enable = true;
config = {
global.hide_env_diff = true;
whitelist.exact = ["/home/leyla/documents/code/nix-config"];
};
};
bash.enable = true;
openssh = {
authorizedKeys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJHeItmt8TRW43uNcOC+eIurYC7Eunc0V3LGocQqLaYj leyla@horizon"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIILimFIW2exEH/Xo7LtXkqgE04qusvnPNpPWSCeNrFkP leyla@defiant"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKBiZkg1c2aaNHiieBX4cEziqvJVj9pcDfzUrKU/mO0I leyla@twilight"
];
hostKeys = [
{
type = "ed25519";
path = "${config.home.username}_${osConfig.networking.hostName}_ed25519";
}
];
};
};
})
];
} }

View file

@ -8,9 +8,7 @@
}: let }: let
nix-development-enabled = osConfig.host.nix-development.enable; nix-development-enabled = osConfig.host.nix-development.enable;
ai-tooling-enabled = config.user.continue.enable && osConfig.host.ai.enable; ai-tooling-enabled = config.user.continue.enable && osConfig.host.ai.enable;
is-desktop-user = osConfig.host.users.leyla.isDesktopUser;
in { in {
config = lib.mkIf is-desktop-user {
nixpkgs = { nixpkgs = {
overlays = [ overlays = [
inputs.nix-vscode-extensions.overlays.default inputs.nix-vscode-extensions.overlays.default
@ -117,5 +115,4 @@ in {
}; };
}; };
}; };
};
} }

View file

@ -83,14 +83,13 @@
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
# Packages that can be installed without any extra configuration # List packages installed in system profile.
# See https://search.nixos.org/packages for all options # You can use https://search.nixos.org/ to find more packages (and options).
environment.systemPackages = with pkgs; [ # environment.systemPackages = with pkgs; [
wget # vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
]; # wget
# ];
# Packages that need to be installed with some extra configuration
# See https://search.nixos.org/options for all options
programs.steam = { programs.steam = {
enable = true; enable = true;
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play

View file

@ -1,9 +1,6 @@
{ config, lib, pkgs, ... }:
{ {
config,
lib,
pkgs,
...
}: {
# Enable OpenGL # Enable OpenGL
hardware.graphics = { hardware.graphics = {
enable = true; enable = true;
@ -13,6 +10,7 @@
services.xserver.videoDrivers = ["nvidia"]; services.xserver.videoDrivers = ["nvidia"];
hardware.nvidia = { hardware.nvidia = {
# Modesetting is required. # Modesetting is required.
modesetting.enable = true; modesetting.enable = true;