test
This commit is contained in:
+31
-27
@@ -8,22 +8,24 @@
|
|||||||
vpnSecretFile = "/home/biscuit/Wireguard/secret";
|
vpnSecretFile = "/home/biscuit/Wireguard/secret";
|
||||||
};
|
};
|
||||||
|
|
||||||
allowUnfree = true;
|
terminal = {
|
||||||
touchpadSupport = false;
|
termFont = "JetBrainsMono Nerd Font"; # e.g., JetBrainsMono Nerd Font
|
||||||
|
termShell = "fish";
|
||||||
termFont = "JetBrainsMono Nerd Font"; # e.g., JetBrainsMono Nerd Font
|
shellAliases = {
|
||||||
|
update = ''
|
||||||
shellAliases = {
|
if [[ $(uname) == "Darwin" ]]; then
|
||||||
update = ''
|
sudo darwin-rebuild switch --flake ~/.config/nixos#macos
|
||||||
if [[ $(uname) == "Darwin" ]]; then
|
else
|
||||||
darwin-rebuild switch --flake ~/.config/nixos#macos
|
sudo nixos-rebuild switch --flake ~/.config/nixos#desktop && home-manager switch --flake ~/.config/nixos#desktop
|
||||||
else
|
fi
|
||||||
sudo nixos-rebuild switch --flake ~/.config/nixos#desktop && home-manager switch --flake ~/.config/nixos#desktop
|
'';
|
||||||
fi
|
agu = "pkill gjs & ags run ~/.config/nixos/pkgs/ags/biscuit/app.ts & disown (jobs -p) &";
|
||||||
'';
|
};
|
||||||
agu = "pkill gjs & ags run ~/.config/nixos/pkgs/ags/biscuit/app.ts & disown (jobs -p) &";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
allowUnfree = true; # allows installation of commercial apps.
|
||||||
|
touchpadSupport = false;
|
||||||
|
|
||||||
# Custom Applications
|
# Custom Applications
|
||||||
linux-apps = pkgs:
|
linux-apps = pkgs:
|
||||||
with pkgs; [
|
with pkgs; [
|
||||||
@@ -37,17 +39,19 @@
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
# BUILD (optional), you can remove these blocks.
|
# BUILD (optional), you can remove these blocks.
|
||||||
trustedUsers = [
|
builder = {
|
||||||
"@groups"
|
trustedUsers = [
|
||||||
"biscuit"
|
"@groups"
|
||||||
];
|
"biscuit"
|
||||||
buildMachines = [
|
];
|
||||||
{
|
buildMachines = [
|
||||||
hostName = "192.168.68.81";
|
{
|
||||||
sshUser = "biscuit";
|
hostName = "192.168.68.81";
|
||||||
sshKey = "/home/biscuit/.ssh/id_rsa.pub";
|
sshUser = "biscuit";
|
||||||
system = "x86_64-linux";
|
sshKey = "/home/biscuit/.ssh/id_rsa.pub";
|
||||||
supportedFeatures = ["big-parallel" "kvm" "nixos-test"];
|
system = "x86_64-linux";
|
||||||
}
|
supportedFeatures = ["big-parallel" "kvm" "nixos-test"];
|
||||||
];
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
{...}: {
|
|
||||||
imports = [
|
|
||||||
../../pkgs/fastfetch/default.nix
|
|
||||||
../../pkgs/git/default.nix
|
|
||||||
../../pkgs/kitty/default.nix
|
|
||||||
../../pkgs/neovim/default.nix
|
|
||||||
../../pkgs/fish/default.nix
|
|
||||||
../../pkgs/starship/default.nix
|
|
||||||
# ../../pkgs/zsh/default.nix
|
|
||||||
];
|
|
||||||
}
|
|
||||||
+1
-1
@@ -6,6 +6,6 @@
|
|||||||
../pkgs/neovim/default.nix
|
../pkgs/neovim/default.nix
|
||||||
../pkgs/fish/default.nix
|
../pkgs/fish/default.nix
|
||||||
../pkgs/starship/default.nix
|
../pkgs/starship/default.nix
|
||||||
# ../../pkgs/zsh/default.nix
|
../pkgs/zsh/default.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
allowUnfree,
|
allowUnfree,
|
||||||
buildMachines,
|
builder,
|
||||||
trustedUsers,
|
|
||||||
sshExtraConfig,
|
sshExtraConfig,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
@@ -22,7 +21,7 @@
|
|||||||
nixpkgs.config.allowUnfree = allowUnfree;
|
nixpkgs.config.allowUnfree = allowUnfree;
|
||||||
|
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
trusted-users = trustedUsers;
|
trusted-users = builder.trustedUsers;
|
||||||
experimental-features = ["nix-command" "flakes"];
|
experimental-features = ["nix-command" "flakes"];
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -31,6 +30,6 @@
|
|||||||
nix.distributedBuilds = true;
|
nix.distributedBuilds = true;
|
||||||
nix.settings.builders-use-substitutes = true;
|
nix.settings.builders-use-substitutes = true;
|
||||||
|
|
||||||
# nix.buildMachines = buildMachines;
|
# nix.buildMachines = builder.buildMachines;
|
||||||
system.stateVersion = "25.05";
|
system.stateVersion = "25.05";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
trustedUsers,
|
builder,
|
||||||
|
terminal,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
# List packages installed in system profile. To search by name, run:
|
# List packages installed in system profile. To search by name, run:
|
||||||
@@ -17,11 +18,11 @@
|
|||||||
|
|
||||||
# Necessary for using flakes on this system.
|
# Necessary for using flakes on this system.
|
||||||
nix.settings.experimental-features = "nix-command flakes";
|
nix.settings.experimental-features = "nix-command flakes";
|
||||||
nix.settings.trusted-users = trustedUsers;
|
nix.settings.trusted-users = builder.trustedUsers;
|
||||||
|
|
||||||
# Create /etc/zshrc that loads the nix-darwin environment.
|
# Create /etc/zshrc that loads the nix-darwin environment.
|
||||||
programs.zsh.enable = true; # default shell on catalina
|
programs.zsh.enable = true; # default shell on catalina
|
||||||
# programs.fish.enable = true;
|
programs.fish.enable = true;
|
||||||
|
|
||||||
# $ darwin-rebuild changelog
|
# $ darwin-rebuild changelog
|
||||||
system.stateVersion = 5;
|
system.stateVersion = 5;
|
||||||
@@ -32,6 +33,7 @@
|
|||||||
users.users.lsoriano = {
|
users.users.lsoriano = {
|
||||||
name = "lsoriano";
|
name = "lsoriano";
|
||||||
home = "/Users/lsoriano";
|
home = "/Users/lsoriano";
|
||||||
|
shell = pkgs.${terminal.termShell};
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager.users.lsoriano = import ../../home/macos/home.nix;
|
home-manager.users.lsoriano = import ../../home/macos/home.nix;
|
||||||
|
|||||||
@@ -1,4 +1,8 @@
|
|||||||
{pkgs, shellAliases, ...}: {
|
{
|
||||||
|
pkgs,
|
||||||
|
terminal,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
programs.zoxide.enable = true;
|
programs.zoxide.enable = true;
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -8,7 +12,7 @@
|
|||||||
zoxide init fish | source
|
zoxide init fish | source
|
||||||
|
|
||||||
'';
|
'';
|
||||||
shellAliases = shellAliases;
|
shellAliases = terminal.shellAliases;
|
||||||
|
|
||||||
plugins = with pkgs.fishPlugins; [
|
plugins = with pkgs.fishPlugins; [
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{termFont, ...}: {
|
{terminal, ...}: {
|
||||||
programs.kitty = {
|
programs.kitty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
themeFile = "Catppuccin-Mocha";
|
themeFile = "Catppuccin-Mocha";
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
window_padding_width = 10;
|
window_padding_width = 10;
|
||||||
|
|
||||||
font_size = 12.0;
|
font_size = 12.0;
|
||||||
font_family = termFont;
|
font_family = terminal.termFont;
|
||||||
bold_font = "auto";
|
bold_font = "auto";
|
||||||
italic_font = "auto";
|
italic_font = "auto";
|
||||||
bold_italic_font = "auto";
|
bold_italic_font = "auto";
|
||||||
|
|||||||
@@ -1,4 +1,8 @@
|
|||||||
{pkgs, shellAliases,...}: {
|
{
|
||||||
|
pkgs,
|
||||||
|
terminal,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
zoxide
|
zoxide
|
||||||
oh-my-posh
|
oh-my-posh
|
||||||
@@ -28,7 +32,7 @@
|
|||||||
];
|
];
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
syntaxHighlighting.enable = true;
|
syntaxHighlighting.enable = true;
|
||||||
shellAliases = shellAliases;
|
shellAliases = terminal.shellAliases;
|
||||||
history.size = 10000;
|
history.size = 10000;
|
||||||
oh-my-zsh = {
|
oh-my-zsh = {
|
||||||
plugins = [];
|
plugins = [];
|
||||||
|
|||||||
+9
-5
@@ -1,11 +1,15 @@
|
|||||||
{ pkgs, username, ... }: {
|
{
|
||||||
|
pkgs,
|
||||||
|
username,
|
||||||
|
terminal,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
users.users.${username} = {
|
users.users.${username} = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ "wheel" "networkmanager" ];
|
extraGroups = ["wheel" "networkmanager"];
|
||||||
initialHashedPassword = "$6$Qab6SSvEJM2YRtVA$7Oyl7E3pp/FKtCC.2Tb2tyzp3yp7BFHFAKngUYJssQJ.v1Q2mqsgW9m7njpaKNcka2vyCwrnmw1R.YPlFqR0p1";
|
initialHashedPassword = "$6$Qab6SSvEJM2YRtVA$7Oyl7E3pp/FKtCC.2Tb2tyzp3yp7BFHFAKngUYJssQJ.v1Q2mqsgW9m7njpaKNcka2vyCwrnmw1R.YPlFqR0p1";
|
||||||
# shell = pkgs.zsh;
|
# shell = pkgs.zsh;
|
||||||
shell = pkgs.fish;
|
shell = pkgs.${terminal.termShell};
|
||||||
packages = with pkgs; [
|
packages = [];
|
||||||
];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user