Compare commits
3 Commits
c45866e0b0
...
3a8fbacd74
Author | SHA1 | Date | |
---|---|---|---|
3a8fbacd74 | |||
2655971046 | |||
e9c2499304
|
20
home-manager/git/default.nix
Normal file
20
home-manager/git/default.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
delta.enable = true;
|
||||
|
||||
userName = "Noah Knegt";
|
||||
userEmail = "personal@noahknegt.com";
|
||||
|
||||
extraConfig = {
|
||||
push = { autoSetupRemote = true; };
|
||||
pull = { rebase = true; };
|
||||
fetch = { prune = true; };
|
||||
};
|
||||
};
|
||||
|
||||
imports = [
|
||||
];
|
||||
}
|
@@ -16,6 +16,8 @@
|
||||
# ./nvim.nix
|
||||
|
||||
./IDEs
|
||||
|
||||
./git
|
||||
];
|
||||
|
||||
nixpkgs = {
|
||||
@@ -51,7 +53,6 @@
|
||||
|
||||
# Enable home-manager and git
|
||||
programs.home-manager.enable = true;
|
||||
programs.git.enable = true;
|
||||
|
||||
# Nicely reload system units when changing configs
|
||||
systemd.user.startServices = "sd-switch";
|
||||
|
@@ -32,11 +32,23 @@
|
||||
channel.enable = false;
|
||||
|
||||
};
|
||||
networking = {
|
||||
hostName = "NixOS_Desktop"; # Define your hostname.
|
||||
networkmanager.enable = true;
|
||||
|
||||
firewall = {
|
||||
allowedTCPPorts = [
|
||||
# Allow discovery for spotify on the network
|
||||
57621
|
||||
];
|
||||
allowedUDPPorts = [
|
||||
# Allow discovery for spotify on the network
|
||||
5353
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
networking.hostName = "NixOS_Desktop"; # Define your hostname.
|
||||
|
||||
# Enable networking
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
# Set your time zone.
|
||||
time.timeZone = "Europe/Amsterdam";
|
||||
@@ -114,15 +126,6 @@
|
||||
spotify
|
||||
];
|
||||
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
# Allow discovery for spotify on the network
|
||||
57621
|
||||
];
|
||||
networking.firewall.allowedUDPPorts = [
|
||||
# Allow discovery for spotify on the network
|
||||
5353
|
||||
];
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
# settings for stateful data, like file locations and database versions
|
||||
# on your system were taken. It's perfectly fine and recommended to leave
|
||||
|
Reference in New Issue
Block a user