Refactoring

This commit is contained in:
2024-07-25 22:09:33 -04:00
parent 5ead141a35
commit 1945dbbdda
4 changed files with 69 additions and 78 deletions

View File

@@ -7,6 +7,14 @@
../../nixos-modules
];
# 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. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "23.11"; # Did you read the comment?
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
@@ -83,10 +91,14 @@
# packages = with pkgs; [];
# };
main-user.enable = true;
main-user.userName = "mbessette";
###########
# MUTABLE #
###########
_1password.enable = true;
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
nix.settings.experimental-features = [ "nix-command" "flakes" ];
home-manager = {
extraSpecialArgs = { inherit inputs; inherit system; };
@@ -94,46 +106,31 @@
users.mbessette = import ./home.nix;
};
programs.zsh.enable = true;
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
vim
nodejs_22
# wget
];
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
# programs.gnupg.agent = {
# enable = true;
# enableSSHSupport = true;
# };
##################
# CUSTOM MODULES #
##################
# List services that you want to enable:
main-user.enable = true;
main-user.userName = "mbessette";
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
_1password.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
############
# PROGRAMS #
############
# 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. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "23.11"; # Did you read the comment?
programs.zsh.enable = true;
############
# SERVICES #
############
# ...
}