working on fixing

This commit is contained in:
Bryan Ramos 2023-06-06 09:29:16 -04:00
parent 164c765a83
commit 4dab7a6a37
10 changed files with 67 additions and 34 deletions

18
flake.lock generated
View file

@ -57,11 +57,27 @@
"type": "github"
}
},
"nur": {
"locked": {
"lastModified": 1686049354,
"narHash": "sha256-yvMTBhMd+p2JzlxXFE/TFyVog+yzOL2MuLkmLsSXWe8=",
"owner": "nix-community",
"repo": "NUR",
"rev": "a27b5b81ea6dcf5a69df5a7921ad833c2ea48b33",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "NUR",
"type": "github"
}
},
"root": {
"inputs": {
"disko": "disko",
"home-manager": "home-manager",
"nixpkgs": "nixpkgs"
"nixpkgs": "nixpkgs",
"nur": "nur"
}
}
},

View file

@ -1,4 +1,4 @@
{ description = "Fully Declarative and Reproducible System";
{ description = "Fully Declarative YOLO";
inputs =
{ nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
@ -26,20 +26,19 @@
};
};
me = "bryan";
desktop = "socratesV2";
in
{ nixosConfigurations.${desktop} = nixpkgs.lib.nixosSystem {
{ nixosConfigurations.desktop = nixpkgs.lib.nixosSystem {
inherit pkgs;
inherit system;
modules = [
(import ./sysConfig { inherit me desktop; })
./sysConfig/desktop
nur.nixosModules.nur
disko.nixosModules.disko
home-manager.nixosModules.home-manager{
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.${me} = import ./homeConfig/home.nix { inherit me; };
home-manager.users.bryan = import ./homeConfig/home.nix;
}
];
};

View file

@ -1,16 +1,14 @@
{ me, config, ... }:
{ pkgs, config, ... }:
{
programs.home-manager.enable = true;
imports = ./modules/default.nix;
home.stateVersion = "22.11";
home = {
username = me;
homeDirectory = "/home/${me}";
};
home.username = "bryan";
home.homeDirectory = "/home/bryan";
imports = ./modules;
config.modules = {
modules = {
gui.enable = true;
browsers.enable = true;
alacritty.enable = true;

View file

@ -7,7 +7,7 @@ let
in
{ options.modules.alacritty = { enable = mkEnableOption "alacritty"; };
config = mkIf cfg.enable {
programs.alacritty = import ./alacritty.nix { inherit pkgs; };
programs.alacritty = import ./config/alacritty.nix { inherit pkgs; };
home.packages = with pkgs; [
terminus-nerdfont

View file

@ -13,8 +13,8 @@ in
initExtra = import ./config/prompt.nix;
profileExtra = import ./config/bashprofile.nix;
bashrcExtra = import ./bashrc.nix;
shellAliases = import ./alias.nix;
bashrcExtra = import ./config/bashrc.nix;
shellAliases = import ./config/alias.nix;
};
services.gpg-agent.enableBashIntegration = true;

View file

@ -1,4 +1,4 @@
{ pkgs, lib, config, me, ... }:
{ pkgs, lib, config, ... }:
with lib;
let
@ -9,7 +9,7 @@ in
config = mkIf cfg.enable {
programs.firefox = {
enabled = true;
profiles.${me} = import (config/${me}.nix) { inherit pkgs; };
profiles.bryan = import config/bryan.nix { inherit pkgs; };
};
home.packages = [

View file

@ -1 +1,15 @@
{ imports = ./.; }
{
imports = [
./alacritty/default.nix
./bash/default.nix
./browsers/default.nix
./corn/default.nix
./fun/default.nix
./git/default.nix
./gpg/default.nix
./gui/default.nix
./neovim/default.nix
./security/default.nix
./utils/default.nix
];
}

View file

@ -13,7 +13,7 @@ in
vimAlias = true;
extraLuaConfig = import ./config/init.nix;
generatedConfigs.lua = import ./config/config.nix;
generatedConfigs = {lua = import ./config/config.nix;};
plugins = import ./config/plugins.nix { inherit pkgs; };
extraPackages = import ./config/lsp.nix { inherit pkgs; };
};

View file

@ -53,7 +53,7 @@
};
# Virtualisation
nix.system-features = "kvm";
nix.settings.system-features = "kvm";
environment.systemPackages = pkgs.virt-manager;
virtualisation.libvirtd = {

View file

@ -1,4 +1,4 @@
{ pkgs, lib, desktop, me, ... }:
{ pkgs, lib, ... }:
{ system.stateVersion = "22.11";
environment.defaultPackages = [ ];
@ -8,10 +8,12 @@
extraOptions = "experimental-features = nix-command flakes";
settings = {
auto-optimise-store = true;
trusted-users = [ "bryan" ];
};
gc = {
automatics = true;
options = "weekly";
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
};
environment.systemPackages = with pkgs; [ nix-init pavucontrol ];
@ -30,10 +32,10 @@
};
# Users
users.users.${me} = {
users.users.bryan = {
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" "home-manager" "input" "video" "audio" "kvm" "libvirtd" "docker" ];
openssh.authorizedKeys.keyFiles = [ /etc/ssh/authorized_keys ];
openssh.authorizedKeys.keyFiles = [ /home/bryan/.ssh/authorized_keys ];
};
security.sudo = {
@ -48,7 +50,7 @@
cron = {
enable = true;
systemCronJobs = [
"0 0 * * * ${me} /home/${me}/Documents/scripts/lnbackup_script.sh"
"0 0 * * * bryan /home/bryan/Documents/scripts/lnbackup_script.sh"
];
};
};
@ -77,7 +79,7 @@
# Networking
networking = {
hostName = desktop;
hostName = "socratesV2";
useDHCP = lib.mkDefault true;
networkmanager.enable = true;
firewall = {
@ -89,6 +91,10 @@
services.openssh = {
enable = true;
startWhenNeeded = true;
settings.PasswordAuthentication = false;
settings = {
permitRootLogin = false;
X11Forwarding = true;
PasswordAuthentication = false;
};
};
}