mirror of
https://gitlab.com/ahoneybun/nix-configs.git
synced 2025-05-12 11:14:02 -06:00
Remove unused nix files
This commit is contained in:
parent
b29f734e40
commit
e2cf543c79
6 changed files with 0 additions and 340 deletions
|
@ -1,133 +0,0 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[
|
||||
# ./hardware-configuration.nix
|
||||
];
|
||||
|
||||
# Latest kernel
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
||||
boot.loader = {
|
||||
systemd-boot.enable = true;
|
||||
systemd-boot.consoleMode = "0";
|
||||
systemd-boot.configurationLimit = 5;
|
||||
};
|
||||
|
||||
boot.plymouth.enable = true;
|
||||
boot.initrd.systemd.enable = true;
|
||||
boot.kernelParams = [ "quiet" ];
|
||||
|
||||
#nix.settings.auto-optimise-store = true;
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 1w";
|
||||
};
|
||||
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
# Set your time zone.
|
||||
time.timeZone = "America/Denver";
|
||||
|
||||
# Enter keyboard layout
|
||||
services.xserver.layout = "us";
|
||||
|
||||
# Define user accounts
|
||||
users.users.aaronh = {
|
||||
description = "Aaron Honeycutt";
|
||||
home = "/home/aaronh";
|
||||
extraGroups = [ "wheel" "networkmanager" "adm"];
|
||||
isNormalUser = true;
|
||||
hashedPassword = "$6$aAcbLtqiqzySifls$jdKMOQjoWITHD/dWNNZVUH/qNc6aoJ7v4zYofi0U7IJSVTbmOfChS3mzaJbp57AodjdPNKPrnrip8Nlh2Qanx.";
|
||||
|
||||
};
|
||||
|
||||
# Allow Unfree
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
# Install some packages
|
||||
environment.systemPackages =
|
||||
with pkgs;
|
||||
[
|
||||
avahi
|
||||
cargo
|
||||
dmidecode
|
||||
fira
|
||||
firefox
|
||||
git
|
||||
git-lfs
|
||||
libcamera
|
||||
lshw
|
||||
restic
|
||||
roboto-slab
|
||||
nix-index
|
||||
nvd
|
||||
unzip
|
||||
wget
|
||||
wl-clipboard
|
||||
xz
|
||||
zlib
|
||||
];
|
||||
|
||||
programs.nix-ld.enable = true;
|
||||
programs.nix-ld.libraries = with pkgs; [
|
||||
# Add any missing dynamic libraries for unpackaged programs
|
||||
# here, NOT in environment.systemPackages
|
||||
];
|
||||
|
||||
# Enable/Disable hardware
|
||||
## Turn off PulseAudio
|
||||
hardware.pulseaudio.enable = false;
|
||||
|
||||
# Enable Pipewire
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
# Enable Bluetooth
|
||||
hardware.bluetooth.enable = true;
|
||||
|
||||
# Enable services
|
||||
services.fwupd.enable = true;
|
||||
services.printing.enable = true;
|
||||
services.openssh.enable = true;
|
||||
services.upower.enable = true;
|
||||
|
||||
services.avahi = {
|
||||
enable = true;
|
||||
nssmdns4 = true;
|
||||
openFirewall = true;
|
||||
# Needed for detecting scanners
|
||||
publish = {
|
||||
enable = true;
|
||||
addresses = true;
|
||||
userServices = true;
|
||||
};
|
||||
};
|
||||
|
||||
# Scanner support
|
||||
hardware.sane.enable = true;
|
||||
hardware.sane.extraBackends = [ pkgs.sane-airscan ];
|
||||
services.ipp-usb.enable = true;
|
||||
|
||||
services.hardware.bolt.enable = true;
|
||||
|
||||
system.activationScripts.diff = {
|
||||
supportsDryActivation = true;
|
||||
text = ''
|
||||
${pkgs.nvd}/bin/nvd --nix-bin-dir=${pkgs.nix}/bin diff /run/current-system "$systemConfig"
|
||||
'';
|
||||
};
|
||||
|
||||
# System
|
||||
system.stateVersion = "24.05";
|
||||
system.autoUpgrade.enable = true;
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{ unstable, config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Enable COSMIC
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
displayManager.cosmic-greeter.enable = true;
|
||||
desktopManager.cosmic.enable = true;
|
||||
};
|
||||
|
||||
# Grab unstable NixOS packages for using and building COSMIC
|
||||
environment.systemPackages = (with pkgs; [
|
||||
rustc
|
||||
cargo
|
||||
cosmic-greeter
|
||||
]);
|
||||
}
|
|
@ -1,89 +0,0 @@
|
|||
{
|
||||
description = "Generic System Flake file";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:lilyinstarlight/nixpkgs/tmp/cosmic";
|
||||
unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
disko = {
|
||||
url = github:nix-community/disko;
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager/master";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
pinix.url = "github:remi-dupre/pinix";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, unstable, disko, home-manager, pinix, ... }@inputs: {
|
||||
nixosConfigurations = {
|
||||
"nixos" = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
# Add Disko for disk management
|
||||
disko.nixosModules.disko
|
||||
./disko-config.nix
|
||||
./configuration.nix
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
};
|
||||
|
||||
"dev-one" = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
# Add Disko for disk management
|
||||
disko.nixosModules.disko
|
||||
./disko-config.nix
|
||||
./gnome.nix
|
||||
./configuration.nix
|
||||
./hardware-configuration.nix
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.aaronh = import ./home.nix;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
"garrus" = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = { inherit unstable; };
|
||||
modules = [
|
||||
# Add Disko for disk management
|
||||
disko.nixosModules.disko
|
||||
./disko-config.nix
|
||||
./cosmic.nix
|
||||
./garrus.nix
|
||||
./configuration.nix
|
||||
./hardware-configuration.nix
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.aaronh = import ./home.nix;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
"vm" = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
# Add Disko for disk management
|
||||
disko.nixosModules.disko
|
||||
./disko-config.nix
|
||||
./vm.nix
|
||||
./configuration.nix
|
||||
./hardware-configuration.nix
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.aaronh = import ./home.nix;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,94 +0,0 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Home Manager needs a bit of information about you and the
|
||||
# paths it should manage.
|
||||
home.username = "aaronh";
|
||||
home.homeDirectory = "/home/aaronh";
|
||||
|
||||
# This value determines the Home Manager release that your
|
||||
# configuration is compatible with. This helps avoid breakage
|
||||
# when a new Home Manager release introduces backwards
|
||||
# incompatible changes.
|
||||
#
|
||||
# You can update Home Manager without changing this value. See
|
||||
# the Home Manager release notes for a list of state version
|
||||
# changes in each release.
|
||||
home.stateVersion = "24.05";
|
||||
|
||||
nixpkgs.config = {
|
||||
allowUnfree = true;
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
# GUI
|
||||
deja-dup
|
||||
discord
|
||||
libreoffice-fresh
|
||||
signal-desktop
|
||||
tuba
|
||||
#youtube-music
|
||||
|
||||
# CLI
|
||||
btop
|
||||
freshfetch
|
||||
gcc
|
||||
];
|
||||
|
||||
programs.bash = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
nix-generations = "sudo nix-env -p /nix/var/nix/profiles/system --list-generations";
|
||||
nix-upgrade = "sudo nixos-rebuild switch --upgrade";
|
||||
};
|
||||
bashrcExtra = "eval `ssh-agent`";
|
||||
};
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
lfs.enable = true;
|
||||
userName = "Aaron Honeycutt";
|
||||
userEmail = "aaronhoneycutt@protonmail.com";
|
||||
aliases = {
|
||||
undo = "reset HEAD~1 --mixed";
|
||||
amend = "commit -a --amend";
|
||||
feature = "commit -m feat: -m new-feature";
|
||||
fix = "commit -m fix: -m issue#";
|
||||
};
|
||||
extraConfig = {
|
||||
color = {
|
||||
ui = "auto";
|
||||
};
|
||||
color.status = {
|
||||
added = "green bold";
|
||||
changed = "yellow bold";
|
||||
untracked = "red bold";
|
||||
};
|
||||
push = {
|
||||
autoSetupRemote = "true";
|
||||
};
|
||||
init = {
|
||||
defaultBranch = "main";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
programs.nix-index = {
|
||||
enable = true;
|
||||
enableBashIntegration = true;
|
||||
};
|
||||
|
||||
programs.vscode = {
|
||||
enable = true;
|
||||
package = pkgs.vscodium;
|
||||
extensions = with pkgs.vscode-extensions; [
|
||||
yzhang.markdown-all-in-one
|
||||
];
|
||||
};
|
||||
|
||||
programs.gh.enable = true;
|
||||
|
||||
# Let Home Manager install and manage itself.
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
{ unstable, config, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = [
|
||||
unstable.legacyPackages."${pkgs.system}".rustc
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue